Shri G Posted June 12, 2023 Share Posted June 12, 2023 Hi All,I have to display most recent data of user which falls within 5 min of login of that particular user for specific access type.For example, if the user A's first login is at 8:33:59 AM for access type Home and If the same User A login at 8:35:59 AM and 8:38:59 AM again for access type Home, then the data of most recent login need to be displayed if user has multiple login within 5 min of first login. So here need to display the recent login which is 8:38:59 AMExample Data :Expected Output:Can somebody please help me with this?Thanks,Shri Link to comment Share on other sites More sharing options...
Heleen Snelting Posted June 12, 2023 Share Posted June 12, 2023 We have updated the topics to match the question. Link to comment Share on other sites More sharing options...
Heleen Snelting Posted June 12, 2023 Share Posted June 12, 2023 Hi @Shri G I am responding with an answer from Gaia Paolini, we are having some issues getting the script posted for you as well but will try in a separate answer."I cannot find a way of doing this with Spotfire calculated columns, as it seems to need a recursive approach.I could get the same results as you by producing a new table using a TERR data function. See e.g. this link for info on setting up data functions: You will have to install the R data.table library:from top menu > Tools > TERR Tools > Package Management > Load the CRAN repository then type 'data.table' in availablepackages,select it from the results below, click Install.To create the datafunction:from top menu > Data > Data Function properties > Registernew make sure the language is TERRcopy and paste the script belowset dt as input parameter of type Tableset dt1 as output parameter of type Tableclick on Run on top/right and assign the input and output tables." Link to comment Share on other sites More sharing options...
Heleen Snelting Posted June 12, 2023 Share Posted June 12, 2023 Hi @Shri G here is the script - hopefully this format works for you.Heleen Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now