Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Calculate difference between cards in fully responsive report

Good afternoon,    I am trying to insert a card that calculates the difference between two existing cards. The report that I would like to show makes it possible to show the sales of four different...
  • v-lionel-msft's avatar
    v-lionel-msft
    6 years ago

    Hi Anonymous ,

     

    You can create a 'What if' parameter  and modify the [Measure2].

    Measure 2 = 
    CALCULATE(
        SUM(Sheet7[Sales]),
        FILTER(
            ALLSELECTED(Sheet7),
            Sheet7[Column] = MAX(Sheet7[Column]) && Sheet7[Year] = MAX(Sheet7[Year]) + [Parameter Value]
        )
    )

    Please refer to my .pbix file.

     

    Best regards,
    Lionel Chen

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.