Forum Discussion

patem2024's avatar
patem2024
Frequent Visitor
1 year ago
Solved

Power BI DAX Measure Total in Matrix Shows Incorrect Value to Calculate Cumulative Total

Hi guys,   I've created the following measure to provide a view on monthly cost differences against the earliest month in the report (Oct-23 in this case). Apologies this is likely quite a simple q...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi patem2024 

     

    Thanks for the reply from Sahir_Maharaj and MFelix .

     

    The following test is for your reference, but I am not sure what total you need to display in this step.

     

    Sample:

     

    Create a measure as follows.

     

    Measure = 
    VAR _1 = MAX('Concept Savings Profile New'[Month])
    VAR _earlier = CALCULATE([Baseline Month Swing New], FILTER(ALL('Concept Savings Profile New'), [Month] < _1))
    RETURN
    IF(ISINSCOPE('Concept Savings Profile New'[Month]), _earlier + [Baseline Month Swing New], [Baseline Month Swing New])

     

     

    Output:

     

    Please feel free to let me know if you have any questions.

     

    Best Regards,
    Yulia Xu

     

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