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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
rp2022
Helper II
Helper II

Calc Cumulative running total without using a date dimesion table an defining a special start Num

Sample Data:

Date LabelTotal $
P($100.00)
Mar-24($300.00)
Apr-24$100.00
May-24$200.00
Jun-24($150.00)
Jul-24$800.00
Aug-24$500.00
Sep-24($200.00)
Oct-24($100.00)
Nov-24$200.00
Dec-24($1,800.00)

 

Desired Output:

Date LabelTotal $Running $ 
P($100.00)($100.00) 
Mar-24($300.00)($300.00) 
Apr-24$100.00($200.00)=Prev row + Apr-24 Total $
May-24$200.00$0.00=Prev row + May-24 Total $
Jun-24($150.00)($150.00) 
Jul-24$800.00$650.00 
Aug-24$500.00$1,150.00 
Sep-24($200.00)$950.00 
Oct-24($100.00)$850.00 
Nov-24$200.00$1,050.00 
Dec-24($1,800.00)($750.00) 
1 ACCEPTED SOLUTION
vicky_
Super User
Super User

You can try something like the following:

Running $ = SUMX(FILTER(ALL('Table'), 'Table'[0] > 0 && 'Table'[0] <= SELECTEDVALUE('Table'[0])), [Total $])

I added an index column to your table since I needed a numeric column to sort by.
 vicky__0-1709850516806.png

 

View solution in original post

1 REPLY 1
vicky_
Super User
Super User

You can try something like the following:

Running $ = SUMX(FILTER(ALL('Table'), 'Table'[0] > 0 && 'Table'[0] <= SELECTEDVALUE('Table'[0])), [Total $])

I added an index column to your table since I needed a numeric column to sort by.
 vicky__0-1709850516806.png

 

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.

Top Solution Authors