Forum Discussion

Lanabanana's avatar
Lanabanana
Regular Visitor
7 years ago
Solved

Calculating month-over-month while excluding blanks

Hi everyone, I'm looking to exclude blank cells from a measure I've created. I've got a formula where I'm calculating the month over month over a 15 year period for 27 products. However, some of ...
  • jdbuchanan71's avatar
    7 years ago

    Hello Lanabanana 

    Give this a try

    Month over month =
    VAR CurrMonth =
        SUM ( 'Product'[VALUE] )
    RETURN
        IF ( NOT ISBLANK ( CurrMonth ), DIVIDE ( CurrMonth, [PREV_MONTH] ) - 1 )