Forum Discussion
TimmK
Helper IV
4 years agoRemove Months from Cumulative Total
I use the following measure to get my cumulative total: Measure = CALCULATE([Cash],FILTER(ALL('Date'),'Date'[Date]<=MAX('Date'[Date]))) It generally works fine. However, in the visual months are...
tamerj1
Community Champion
4 years agoTimmK
Then try
Measur =
IF (
MIN ( 'Date'[Date] ) <= TODAY (),
CALCULATE ( [Cash], 'Date'[Date] <= MAX ( 'Date'[Date] ), ALL ( 'Date' ) )
)
*Edited
Changed MAX to MIN in the IF statement
TimmK
Helper IV
4 years agoThank you very much. 🙂
It works with MAX.
I adapted the solution a bit and now it works as it should:
IF(
MAX( 'Date'[YM] ) > FORMAT( TODAY(), "YYYYMM" ),
BLANK(),
CALCULATE([Cash], FILTER( ALL( 'Date' ), 'Date'[Date] <= MAX( 'Date'[Date] ) )
))