Forum Discussion
Powereports
Helper I
5 years agoRolling 12 months Retention
Hi Users, I have a measure which gives me the retention as below. I looking for calculating the rolling retention for 12 months from a date. My question can i use the below retention measure to ca...
- 5 years ago
you can give this a try and see the results.
You just need to make sure that you have a date table that is marked as Date Table in your model. In the below example, the "DimDate" is the Date/Calendar table.
Rolling 12 Month Retention = CALCULATE(Retention,DATESINPERIOD(DimDate[DateSecAlternateKey],MAX(DimDate[DateSecAlternateKey]),-12,MONTH)) - 5 years ago
It worked Farhan.. Thanks for the solution.
FarhanAhmed
Community Champion
5 years agoyou can give this a try and see the results.
You just need to make sure that you have a date table that is marked as Date Table in your model. In the below example, the "DimDate" is the Date/Calendar table.
Rolling 12 Month Retention = CALCULATE(Retention,DATESINPERIOD(DimDate[DateSecAlternateKey],MAX(DimDate[DateSecAlternateKey]),-12,MONTH))
- Powereports5 years ago
Helper I
It worked Farhan.. Thanks for the solution.