Forum Discussion
Calculating Cumulative Monthly Totals
- 9 years ago
Waseem, oh i'm sorry for missing in quickly typing. there is misssing filter in the expression:
Cumulative_Actual = CALCULATE ( SUM ( 'TB'[Actual_KD] ), filter( ALL ( 'Dates' ), 'Dates'[Date] <= MAX( 'Dates'[Date] )) )please kindly try again with calculated measure
Waseem, oh i'm sorry for missing in quickly typing. there is misssing filter in the expression:
Cumulative_Actual =
CALCULATE (
SUM ( 'TB'[Actual_KD] ),
filter( ALL ( 'Dates' ),
'Dates'[Date] <= MAX( 'Dates'[Date] ))
)please kindly try again with calculated measure
tringuyenminh92 Many Thanks.
You made my day. Cheers
- AndreSatziack8 years ago
Helper I
Hello @Waseem
I have the same problem, can you help me too? I used the same code, but this not worked for me :smileyfrustrated:
Thank you very much ;)
I have following table structure.
- tringuyenminh928 years ago
Memorable Member
Hi AndreSatziack,
You should create Dates table by using Calendar() or CalendarAuto() method, and making relationship between your transaction table with this Dates table. Then apply above formula. please notice that we put filter on Dates table, not on transaction table.
In case this is still not working, please share your current working file and i could quickly check it for you.
- AndreSatziack8 years ago
Helper I
Hello tringuyenminh92 and Waseem,
Thank you for your help :)
I tried to create but it did not work, it follows the same files I'm using to create the BurnDown graphic.
Thanks again for the help :)
- Waseem8 years ago
Helper III
You need to create a date table first and give it name "Date". You can create this table as below:
Date = CALENDARAUTO()
Then type following formula to crate a "New Measure":
Cumulative = IF(COUNTROWS(Relatorio_Completo_2017)<0,CALCULATE(SUM(Relatorio_Completo_2017[Hours]),FILTER(ALL('Date'),'Date'[Date}<=MAX{'Date'[Date]))),BLANK())..
Hope it helps
Cheers