Forum Discussion
Anonymous
5 years agoNot applicable
MAT Calculation
Dear all, I'm totally novice using the DAX. I would like to calculate a MAT value from the today (ex. we are in P7) over the last 13 periods. We will make P7 2021 - P72020 Years Periods % ...
- 5 years ago
Hi Anonymous ,
Try the following formula:
Measure = [% Grade A] - CALCULATE( [% Grade A], FILTER( ALLSELECTED(rclms_qa[Years]), rclms_qa[Years] = MAX(rclms_qa[Years]) - 1 ) )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,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-kkf-msft
Community Support
5 years agoHi Anonymous ,
Try the following formula:
Measure =
[% Grade A] - CALCULATE(
[% Grade A],
FILTER(
ALLSELECTED(rclms_qa[Years]),
rclms_qa[Years] = MAX(rclms_qa[Years]) - 1
)
)
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.
Anonymous
5 years agoNot applicable
Great - it works. Thanks v-kkf-msft