Forum Discussion

akowalski's avatar
akowalski
Frequent Visitor
8 years ago
Solved

Measure calculating difference to previous period

Hello, I have a problem calculating a measure that calculates difference to previous period(year). Years are selected in a slicer (generally 2 but would be great if the code worked with more periods...
  • v-yuta-msft's avatar
    v-yuta-msft
    8 years ago

    Hi akowalski ,

     

    In your DAX formula, Min() and Max() are calculated in a same row context which have only one row every iteration, so the filter result is nothing. The aggregation function like Min(), Max() or Sum() should be calculated in every filter context.

     

    Regards,

    Jimmy Tao