Forum Discussion
Anonymous
4 years agoNot applicable
Length Between Purchases
Hi Experts, I am trying to calculate the length between all customers first and second purchase. Here is a measure I have: VAR temptable = ADDCOLUMNS ( VALUES ( 'Table'[date] ), "RANK", R...
- Anonymous4 years ago
Hi Anonymous ,
I suggest you to create a new measure based on the original measure you created before.
Diff with correct total = SUMX(VALUES('Table'[Customer ID]),[Basic])Result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
rajulshah
4 years agoResident Rockstar
Hello Anonymous ,
Can you please share your sample data structure?
- Anonymous4 years agoNot applicable
Fact table looks like this:
Date is measure above refers to purchase date.
I hope that helps, cannot share the file for confidential reasons
- Anonymous4 years agoNot applicable
Hi Anonymous ,
I suggest you to create a new measure based on the original measure you created before.
Diff with correct total = SUMX(VALUES('Table'[Customer ID]),[Basic])Result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.