Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

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 % ...
  • v-kkf-msft's avatar
    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,
    Winniz

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.