I am trying to use set analysis to create a visualization showing the number of purchases customers make in their first 30 days since registering, regardless of when that was (they could have registered this month, or 2 years ago, or anytime).
Relevant fields in my data include
order_date: timestamp of each order
date_registered: timestamp of when each user signed up
order_id: number assigned to each purchase
So far I have tried many variations, including:
count({$<[order_date]={">=$(=[date_registered])<=$(=[date_registered]+30)"}>}distinct order_id)
and
count({$<[order_date]-[date_registered={'<30'})}>}distinct order_id)
But no success. Any ideas or tips would be highly appreciated.