This content has been marked as final. Show 2 replies
I have the following table with two columns: TestID (for userID) and AppointmentDate of when the user visited the practice.
I need help is to create a flag that will flag if 5 or more visits took place within am 180 day period regardless of when the AppointmentDate (meaning it does not have to be first appointment date it can be appointment date that had 4 more visits after all under 180 days combined).
I have used above function to calculate the difference in days between the preceding and the following date (not sure if that helps).
but I am stuck going forward. Please help.
|TestId||AppointmentDate||Count(AppointmentDate)||AppointmentDate - Above(AppointmentDate)|