Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Add % Diff from two years

Dear All,    I need to add a DAX to show only the % change difference between 2 years where it always compares( Max Date / Min Date)-1   I've tried 2 things and it did return the change percent c...
  • v-jiascu-msft's avatar
    v-jiascu-msft
    8 years ago

    Hi Anonymous,

     

    It could be like below.

    Max 2way =
    CALCULATE (
        SUM ( ATM[2way AC] ),
        FILTER ( ALL ( 'Calendar' ), 'Calendar'[Year] = MAX ( 'Calendar'[Year] ) )
    )
    
    Min 2way =
    CALCULATE (
        SUM ( ATM[2way AC] ),
        FILTER ( ALL ( 'Calendar' ), 'Calendar'[Year] = MIN ( 'Calendar'[Year] ) )
    )
    

    Best Regards,

    Dale