Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Month Difference DAX

Hello all,

 

Can anyone please help me in sorting the monthly values to percentages.

Month Diff. =

VAR pre_month =

    CALCULATE (

        SUM ( 'Append2'[Rate in EUR/FEU]),

        FILTER (

            ALLEXCEPT (

                'Append2',

                'Append2'[Lane],

                'Append2'[Attribute]),

                'Append2'[Index] = SELECTEDVALUE ( 'Append2'[Index] ) - 1 ) )

RETURN IF(SELECTEDVALUE('Append2'[Index])=1,0,SUM ( 'Append2'[Rate in EUR/FEU] ) - pre_month)

2 Replies