Forum Discussion
henryvu93
Helper I
8 years agoProblem with Calculated Column
Hi guys, I have a table with the sample like this: Date Customer 1/1/2015 A 1/1/2015 B 1/1/2015 C 1/1/2015 D 1/1/2015 E 1/1/2015 F 1/1/2015 G 1/1/2015 H ...
- 8 years ago
Hi,
Try this formula
=CALCULATE( AVERAGEX(VALUES(Customer[Date]), [Churn Rate]), DATESBETWEEN ( Customer[Date], EDATE(MIN(Customer[Date]),-11),MAX(Customer[Date])))
Hope this helps.
henryvu93
Helper I
8 years agoHi Ashish_Mathur.
Thanks. Please find the link below for your reference.
https://drive.google.com/open?id=14ba6G8fCo6E98m3Jh-6aOA7P7b6qL-eG
Regards,
Henry
Ashish_Mathur
Super User
8 years agoHi,
Try this formula
=CALCULATE( AVERAGEX(VALUES(Customer[Date]), [Churn Rate]), DATESBETWEEN ( Customer[Date], EDATE(MIN(Customer[Date]),-11),MAX(Customer[Date])))
Hope this helps.
- henryvu938 years ago
Helper I
- Ashish_Mathur8 years ago
Super User
You are welcome.