Forum Discussion

pfarahani's avatar
pfarahani
Helper II
5 years ago
Solved

Calculate Percentage Change from Previous Row

Hello,   I am trying to create a DAX measure to get the Percentage Change from Month to Month. Problem is I do not have a traditional Dates table, my Dates table is more like a String table with Da...
  • amitchandak's avatar
    5 years ago

    pfarahani , Try like this example , Date here us your Month year table

     

     

    This Month = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[index]=max('Date'[index])))
    Last Month = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[index]=max('Date'[index])-1))

     

    diff = [This Month]-[Last Month]
    diff % = divide([This Month]-[Last Month],[Last Month])