Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Dear Community,
I would like to make a cohort analysis for our customers by first acquisition date. In other words I need to calculate the first acquisition date (date of first order) per customer and group the customers by year of first acquisition.
Any ideas how to calculate in DAX?
attached an example from Tableau 🙂
Thanks
Riyadh
Solved! Go to Solution.
Hi @Ergonaut ,
Could you please show us the error message in screenshot for further analysis?
Note that the formulas above are used in calculated column instead of measure.
Best Regards,
Amy
Hi @Ergonaut ,
You can create columns like DAX below.
First Acquisition Date= CALCULATE(MIN(Table1[acquisition date]),FILTER(ALLSELECTED(Table1),Table1[Customer]=EARLIER(Table1[Customer])&&Table1[Market]=EARLIER(Table1[Market]))) Year of Customer Acquisition = YEAR(Table1[First acquisition date])
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi Amy,
thanks for your prompt replay :). starting from ..EARLIER( I am getting a synthax error
Best
Riyadh
Hi @Ergonaut ,
Could you please show us the error message in screenshot for further analysis?
Note that the formulas above are used in calculated column instead of measure.
Best Regards,
Amy
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 39 | |
| 37 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 122 | |
| 111 | |
| 83 | |
| 69 | |
| 68 |