Forum Discussion
Anonymous
6 years agoNot applicable
Rolling 12 Month Counts
I need to calculate rolling average in a little different way: Step1 Get the active employee counts 12 month back i.e; 6/1/2019 counts as of today Step 2 Get active employee counts previous month ...
- 6 years ago
Hi Anonymous ,
"Step1 Get the active employee counts 12 month back", did you mean the duration is 2018/6/1-2019/6/1? If so , you could try to refer to my sample for details.
Best Regards,
Zoe ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Mariusz
Community Champion
6 years agoHi Anonymous
To get previous year count use SAMEPERIODLASTYEAR
https://docs.microsoft.com/en-us/dax/sameperiodlastyear-function-dax
For previous Month you can use PARALLELPERIOD
https://docs.microsoft.com/en-us/dax/parallelperiod-function-dax
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.