Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Dear Team,
I am calculating cumulative balance using DAX, my DAX is not giving correct running totals.
Issue is happening due to this “Funding” measure part, if I ignore / comment out this Funding measure then my running totals are coming correctly. So basically my cumulative DAX is not considering this “Funding” measure. Please advise on how to correct this one? Tried many workarounds but none of them is working for my case.
DAX 1
Balance Current Month Updated =
[TB Amount Total] + [ToCollect] - [Forecasted payments v2] + [Funding]
DAX 2
Funding = IF(
[Balance Current Month] < 0,
[Balance Current Month]*-1,10000000
)
DAX 3
Cumulative Balance Updated =
VAR Result =
CALCULATE (
[Balance Current Month Updated],
FILTER ( ALLSELECTED ( 'Date' ), 'Date'[Date] <= MAX('Date'[Date] )
)
)
RETURN
Result
Solved! Go to Solution.
@DivakarKrishnan , Your questions seem the same as this one? https://community.powerbi.com/t5/DAX-Commands-and-Tips/Cumulative-Balance-Issue/m-p/1382270#M25265
Check the suggestion there
@DivakarKrishnan , Try like
Cumulative Balance Updated =
VAR Result =
var _1 = Sumx(summarize('Date', 'Date'[Month Year],"_1",[Balance Current Month Updated]),[_1])
return
CALCULATE (
_1, FILTER ( ALLSELECTED ( 'Date' ), 'Date'[Date] <= MAX('Date'[Date] )
) )
or
Cumulative Balance Updated =
VAR Result =
var _1 = Sumx(summarize('Date', 'Date'[Date],"_1",[Balance Current Month Updated]),[_1])
return
CALCULATE (
_1, FILTER ( ALLSELECTED ( 'Date' ), 'Date'[Date] <= MAX('Date'[Date] )
) )
Dear Amit @amitchandak , Tried the both but not working..
When using Month Year, i am getting same figures as Balance Current Month Updated.
When using Date, i am getting below which is not correct and huge figures.
@DivakarKrishnan , Your questions seem the same as this one? https://community.powerbi.com/t5/DAX-Commands-and-Tips/Cumulative-Balance-Issue/m-p/1382270#M25265
Check the suggestion there
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
11 | |
10 | |
10 | |
10 |
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
8 |