Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Ergonaut
New Member

First Acquisition Date

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

Cohort analysis.PNG

1 ACCEPTED 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

View solution in original post

3 REPLIES 3
v-xicai
Community Support
Community Support

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.