Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi
I have the following measure
I need to able to show month on month rolling avg in a visual
The total 1.2 is correct for the last 12 months - how do I show this month on month rather than just actuals for each month
Thank you in advance
Solved! Go to Solution.
Sorry - I cant get it to work 😞
Hi @KG1 ,
Please try the following formula:
Measure =
CALCULATE (
[Total NLTI's] / [Total Working Hours] * 10 ^ 5,
FILTER ( ALLSELECTED ( SHEQ ), SHEQ[Month] <= MAX ( SHEQ[Month] ) )
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @KG1 ,
Please try the following formula:
Measure =
CALCULATE (
[Total NLTI's] / [Total Working Hours] * 10 ^ 5,
FILTER ( ALLSELECTED ( SHEQ ), SHEQ[Month] <= MAX ( SHEQ[Month] ) )
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Great - thank you - that worked perfectly
@KG1 , try like
Rolling 12 =
var _max = maxx(allselcted(date),date[date]) // or today()
var _min = date(year(_max), month(_max)-12,1)
return
CALCULATE(AverageX(values('Date'[Month Year]) , [NLTI Calc]) ,filter(date, date[date] <=_max && date[date] >=_min))
and for Gt in all rows
Rolling 12 GT =
var _max = maxx(allselcted(date),date[date]) // or today()
var _min = date(year(_max), month(_max)-12,1)
return
CALCULATE(AverageX(values('Date'[Month Year]) , [NLTI Calc]) ,filter(date, date[date] <=_max && date[date] >=_min) , allselected() )
Sorry - I cant get it to work 😞
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
104 | |
96 | |
80 | |
67 | |
62 |
User | Count |
---|---|
137 | |
106 | |
104 | |
81 | |
63 |