Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Change in Month to Month

Hello, I have a Problem with my Power Query. I have a data where One column is having values and other having repetative months and other with repetative years and other with repetative sheet name. ...
  • Saap's avatar
    4 years ago

    Hi Anonymous 

    Check if your column's data types are correct.
    Check if your measures have correct spelling.
    Try to put your measures into matrix in correct way. I tried to do this and managed to create something like this:

     

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Anonymous ,

     

    Please refer this formula:

    Measure =
    VAR pre_month =
        CALCULATE (
            SUM ( 'Table'[Value] ),
            FILTER (
                ALLEXCEPT ( 'Table', 'Table'[Lane], 'Table'[Attribute] ),
                'Table'[Index]
                    = SELECTEDVALUE ( 'Table'[Index] ) - 1
            )
        )
    RETURN
        SUM ( 'Table'[Value] ) - pre_month
    

    Pbix as attachement.

     

    Best Regards,

    Jay