Forum Discussion

RafalK's avatar
RafalK
Advocate IV
10 years ago
Solved

Running Total on a non-date column

Hi guys, I am having some real problems with calculating a running-total in Power BI. Main problem here is that my running total should be based on a calculated measure.   Here is the problem: C...
  • v-sihou-msft's avatar
    v-sihou-msft
    10 years ago

    RafalK

     

    Please try with following Calculated Measure for the cumulative sales. It should be able to reduce the calculation.

    Cumulative_Sales_Measure =
    CALCULATE (
        SUM ( Table1[Sales] ),
        FILTER ( ALL(Table1), Table1[Sales] >= MAX ( Table1[Sales] ) ),
        VALUES ( Table1[Brand] )
    )

    Regards,