Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Turning Formula Dynamic

I have this formula and table; The formula works as intended as long as I hard code the Month & Year as you can see in the formula. I'm trying to set it up so it always looks back two mont...
  • v-jiascu-msft's avatar
    v-jiascu-msft
    8 years ago

    Hi Anonymous,

     

    Try the formula below please.

    January Revenue =
    CALCULATE (
        SUM ( 'Client Revenue'[Revenue_Amount__c] ) * 12,
        FILTER (
            'Client Revenue',
            'Client Revenue'[Month & Year] = FORMAT ( EDATE ( TODAY (), -2 ), "mm-yyyy" )
        )
    )

    Best Regards,

    Dale