The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I want the Cumulative Balance Updated column to be the cumulative of Balance Current Month Updated
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
Solved! Go to Solution.
@Antmkjr , I think across tables data is not getting added up in the context so forced that in suggested formula
@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
Thanks, that works ! But why was my formula not working?
User | Count |
---|---|
10 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
22 | |
14 | |
14 | |
9 | |
7 |