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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors