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 August 31st. Request your voucher.

Reply
AllanBerces
Post Prodigy
Post Prodigy

Running Total from a measure

Hi Good day,

How to create runing total from a measure. I try the quick measure but it just copy the data, the running total value should be -1 day from current date. (Let say toaday is Feb 27 the value of running total should be up to Feb 26.)  Daily earned is from a measure

AllanBerces_0-1709019553885.png

Thank you in advance

 

6 REPLIES 6
Musadev
Resolver III
Resolver III

Hi @AllanBerces 

I have used a column instead of measure, you need to do mecessary changes for your data.
Here is the DAX code.

Running Total = 
VAR CurrentDate = MAX('tbl2'[date])-1
RETURN
    CALCULATE(
        SUM(tbl2[Earning]),
        FILTER(
            ALL(tbl2[date]),
            tbl2[date] <= CurrentDate
        )
    )

Here is the output for my custom data. 

Musadev_0-1709020437172.png

Good Luck!

 

Hi Musadev,

Thank you for your reply, but cant add column on my table. 

 

Thank you

 

Are you missing some records or not able to map them with your data?
If you have similar table data and columns as shared in the query, i will update my data and will share it with you. 

My Earning is from other table and measure and filter as per each category.

 

Can you share the Datamodel image with relationships? 

Hi

My daily earning is from Daily SQL, and i used the measure to get the daily earnd. If theres a way to create calculated column, just to have an outcame i needed pls do the needful. 

AllanBerces_1-1709080186033.png

 

AllanBerces_0-1709080085091.png

Thank you in advance hope to help me on this.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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