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
Antmkjr
Post Patron
Post Patron

Cumulative Balance Issue

I want the Cumulative Balance Updated column to be the cumulative of Balance Current Month Updated

 
 

snip.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The below formula is not working:

VAR Result_in =
Total
+ IF (
Total < 0,
Total * -1
)
RETURN
CALCULATE (
Result_in,
FILTER ( ALLSELECTED( ( ‘Date’ )), ‘Date’[Date] <= MAX ( ‘Date’[Date] ) )
)

 

 

Also the below is not working

Cumulative Balance Updated =
CALCULATE (
[Balance Current Month Updated],
FILTER ( ALLSELECTED( ( ‘Date’ )), ‘Date’[Date] <= MAX ( ‘Date’[Date] ) )
)

 

Link to pbix:

https://drive.google.com/file/d/1LcEYNZFgxKRLDbOZelNYltgxBmmg6buA/view?usp=sharing

1 ACCEPTED SOLUTION

@Antmkjr , I think across tables data is not getting added up in the context so forced that in suggested formula

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Antmkjr , Try like

Cumulative Balance Updated = 
VAR Result =
     CALCULATE (
            sumx(SUMMARIZE('Date','Date'[MonthnYear],"_1",[Balance Current Month Updated]),[_1]),
            FILTER ( ALLSELECTED ( 'Date' ), 'Date'[Date] <= MAX('Date'[Date] )
            ))
    
RETURN
    Result
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks, that works ! But why was my formula not working?

@Antmkjr , I think across tables data is not getting added up in the context so forced that in suggested formula

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.