Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Day over day change

hello, I have been stuck on this for a few days now. Could you please help me create a column to be added to the matrix to calculate the day over day change for a particular count.   See below. I ...
  • v-frfei-msft's avatar
    7 years ago

    Hi Anonymous ,

     

    One sample for your refe rence, here we can create a measure as below.

    Measure = 
    VAR pred =
        MAX ( [Day ] ) - 1
    VAR prev =
        CALCULATE (
            SUM ( [value] ),
            FILTER ( ALL ( Table1 ), [Day ] = pred ),
            VALUES ( Table1[Name] )
        )
    VAR change =
        MAX ( [value] ) - prev
    VAR Per =
        DIVIDE ( change, prev, 0 )
    RETURN
        IF ( prev = 0, BLANK (), Per )