Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Calculate running total from existing measures?

Hi,

I'm new to Power BI and have this requirement. I have a table with all the columns from measures. Column 2(Monthly Turnover LY) is calculated using a measure. Now, I want to write another measure to calulate the running total of Column 2(Monthly Turnover LY). I tried using SUM but its not working on measure. Is there a way to calculate a running total on a existing measure? Need something like the below table. Any guidence would be much appreciated. 

 

 

 

MonthMonthly Turnover LY(Measure)Monthly Turnover LY Running Total(Measure?)Monthly Turnover(Measure)Monthly Turnover Running Total?
April10102020
May20303050
June20504090

 

4 REPLIES 4
Anonymous
Not applicable

Thanks for your suggestion. I tried what you said but the running total is returning the same value as Net revenue. I'll expain it a bit more with the actual case. (I've edited the table in the original post )

There are two measures written already to calculate Monthly Turnover and Monthly Turnover Last year.

 

Monthly Turnover:

Monthly Turnover = CALCULATE([Net Revenue], DATESMTD('Date'[Date]))
 
Monthly Turnover Last Year:
Monthly Turnover LY = CALCULATE([Monthly Turnover], DATEADD(FILTER(DATESMTD('Date'[Date]), 'Date'[Date] < TODAY()), -1,YEAR))
 
New Requirement: 
To calculate Running Total of Monthlty Turnover and Monthly Turnover Last Year.

@Anonymous,

 

Try these measures:

 

Monthly Turnover LY Running Total = 
CALCULATE (
    [Monthly Turnover],
    FILTER (
        ALL ( 'Date' ),
        'Date'[Month Num] <= MAX ( 'Date'[Month Num] )
            && 'Date'[Year]
                = MAX ( 'Date'[Year] ) - 1
    )
)

Monthly Turnover Running Total = 
CALCULATE (
    [Monthly Turnover],
    FILTER (
        ALLSELECTED ( 'Date' ),
        'Date'[Month Num] <= MAX ( 'Date'[Month Num] )
    )
)

 

DataInsights_0-1622558673201.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi @Anonymous 

Have you realized your old requirement? If yes, kindly share your solution so that others have same problem can refer to it.

If not, based on your new requirement, I guess you've created the PBI file, so could you kindly share the PBI file after removing sensitive information? Or a sample file with simple data and simple structure.  so that we can work on it quickly. Thanks.

 

Best Regards,

Community Support Team _ Tang

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

DataInsights
Super User
Super User

@Anonymous,

 

Try this measure. It assumes a date table with columns Date, Month, and Month Num. The date table has a relationship with the data table based on the date column. The visual uses Month from the date table.

 

Running Total = 
CALCULATE (
    [Net Revenue],
    FILTER (
        ALLSELECTED ( DimDate ),
        DimDate[Month Num] <= MAX ( DimDate[Month Num] )
    )
)

 

DataInsights_1-1622330795624.png

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.