Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

cumulative monthly total

Hi Folks,    I have written a measure that calculates cumulative monthly totals.   Total Rolling Expenses = CALCULATE ( [Total Historical Expenses], DATESYTD ( 'Calendar'[Date], "8/31" ) )   E...
  • v-easonf-msft's avatar
    v-easonf-msft
    4 years ago

    Hi, Anonymous 

    You need to check if the parentheses match. The measure should be changed as:

     

    Total Rolling Expenses =
    IF (
        MAX ( 'Calendar'[Date] ) <= TODAY (),
        CALCULATE ( [Total Historical Expenses], DATESYTD ( 'Calendar'[Date], "8/31" ) ),
        BLANK ()
    )
    

     

     

    You can also create a measure as below and apply it to visual filter pane to filter data.

     

    filter =
    IF ( MAX ( 'Calendar'[Date] ) <= TODAY (), 1, 0 )
    

     

    Best Regards,
    Community Support Team _ Eason