Mukta Tripathi Posted July 15, 2021 Share Posted July 15, 2021 I have the following data structure where a subject is going through drug infusion, mulple times within a visit. I would like to create the Time Point column as shown below Subject # Visit Name Infusion Date Time Time Point 10001 Day 1 15-Jul-2021 10:10:00 1 10001 Day 1 15-Jul-2021 10:40:00 2 10001 Day 1 15-Jul-2021 12:00:00 3 10001 Month 1 15-Aug-2021 09:00:00 1 10001 Month 1 15-Aug-2021 13:30:00 2 Thanks! Link to comment Share on other sites More sharing options...
Kirsten Smith (she/her) Posted July 16, 2021 Share Posted July 16, 2021 You'll want to start with something like: Rank([infusion Date time],"asc",[subject],[Visit]) 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