Hi! can anyone please help me figure out the following PQL?
I have cases that have a lot of the same activity.
Imagine the activity is "Walk The Dog" and there are activities with the following dates:
- 1/1/2023
- 1/8/2023
- 1/15/2023
- 1/25/2023
I would like a query that returns the largest number of days between consecutive events
So in this example:
- 1/1/2023->1/8/2023 = 7 days
- 1/8/2023->1/15/2023 = 7 days
- 1/15/2023-1/25/2023 = 10 days
I would like the query to return '10'
I am having trouble with trying to connect the dots with the documentation on calc throughput. Not sure how to approach it.