Hi All,
Have an interesting use case:
I want to group and make keys for customers (attached is the data I am using as an example)
I want to take a customer and make a key for them (IE starting at 1 and the "second key" would be 1)
The second time that customer has a line WITHIN 30 DAYS, the key would be 1 and a second key of 2
If another occurrence of this happened WITHIN 30 DAYS, the key would be 1 and the second key would be 3.
If the occurrence then happened outside of 30 days, they first key would go to 2 and the second key would go to 1 (ie 2.1) making a tree.
When it hits 112 customer, then I want it to go back to 1.1 for a new customer. I hope that makes sense......

TLDR; Making keys for users based on 30 day periods of last tickets 🙂