Forum Discussion
mohittimpus
Helper V
6 years agoExact 12 month rolling
Hello... I need exact 12 month rolling data. I have data from January 2019 to May 2020. In my data some month are missing in 2019 (may 2019 and june 2019). So I want include that missing month al...
- 6 years ago
Hello @mohittimpus ,
You can do this.
last 12 month average = VAR x = CALCULATE( SUM(employee[value]), DATESINPERIOD( employee[Date], MAX(employee[Date]), -12, MONTH ) ) RETURN x/12Best regards
Lionel ChenIf this post helps,then consider Accepting it as the solution to help other members find it faster.
v-lionel-msft
Community Support
6 years agoHello @mohittimpus ,
You can do this.
last 12 month average =
VAR x =
CALCULATE(
SUM(employee[value]),
DATESINPERIOD( employee[Date], MAX(employee[Date]), -12, MONTH )
)
RETURN
x/12
Best regards
Lionel Chen
If this post helps,then consider Accepting it as the solution to help other members find it faster.
- mohittimpus6 years ago
Helper V
I want to show month name may 2020-june 2019. How to show 12 month name with above measure value.