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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Oros
Post Prodigy
Post Prodigy

Running total

Hello,

 

I have the following simple table.  How do you create a measure for RUNNING TOTAL that is based on date column?  Thanks.

Oros_0-1689773215739.png

 

I will have a date slider. 

Oros_1-1689773229957.png

For example, if I select January 3-5, I will see only this

Oros_2-1689773284135.png

 

 

 

 

1 ACCEPTED SOLUTION
HaneeshaThan
Frequent Visitor

Use this formula when calculating running total measure 

Running Total = Calculate ( SUM('sample'[QTY]), FILTER( ALL('sample'[Date ]),'sample'[Date ] <= MAX('sample'[Date ])))

See the sample below for a visual with running total column

 

 Capture.PNG

Hope it helps.

 

View solution in original post

7 REPLIES 7
NMOORE
Helper II
Helper II

Although I'm quite confdent with DAX I still use the power BI built in measure for running totals. You can't go wrong. Instead of selecting measure, select 'New Quick measure' a few items down. Go down to Running Total on the list. add the desired columns - manipulate the DAX where required. I often add other variables which only start showing data when it's revelant etc.

HaneeshaThan
Frequent Visitor

Are you summarizing the QTY column ? 

Capture.PNG

This is with out QTY summarised 

C2.PNG

This is with

c1.PNG

So recheck what is happening to your fields.

Ahmedx
Super User
Super User

Share sample pbix file to help you.

HaneeshaThan
Frequent Visitor

Use this formula when calculating running total measure 

Running Total = Calculate ( SUM('sample'[QTY]), FILTER( ALL('sample'[Date ]),'sample'[Date ] <= MAX('sample'[Date ])))

See the sample below for a visual with running total column

 

 Capture.PNG

Hope it helps.

 

Hi @HaneeshaThan ,

 

This works!  Thanks.

Hi @HaneeshaThan ,

 

Thank you very much for your quick reply.  Unfortunately the formula does not work.  I am getting the same Running Total as the QTY.  Any ideas?  Thanks again.

 

Oros_0-1689793891975.png

 

vaso
Frequent Visitor

@OrosHi, did you find any solution?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.