Forum Discussion
TJacobs
8 years agoFrequent Visitor
PowerBi cumulative calculation goes wrong
Hi all, I'm in a loss in this matter, I've tried many DAX formulas and read many forums but unfortunately I didn't found the solution. This is the issue I've created a calculated Line Chart...
- 8 years ago
Hi TJacobs,
Based on my test, the formula below should work in your scenario. :smileyhappy:
Sales Cumulative = CALCULATE ( SUM ( 'Blad1 (2)'[Turnover total]), FILTER ( ALLSELECTED('Blad1 (2)'), 'Blad1 (2)'[Date_Month] <= MAX('Blad1 (2)'[Date_Month]) ) )Regards
v-ljerr-msft
8 years agoMicrosoft Employee
Hi TJacobs,
Based on my test, the formula below should work in your scenario. :smileyhappy:
Sales Cumulative =
CALCULATE (
SUM ( 'Blad1 (2)'[Turnover total]),
FILTER (
ALLSELECTED('Blad1 (2)'),
'Blad1 (2)'[Date_Month] <= MAX('Blad1 (2)'[Date_Month])
)
)
Regards
TJacobs
8 years agoFrequent Visitor
Yep! now it's working!
Thanks! :)