Forum Discussion

Jackisover's avatar
Jackisover
Icon for Advocate I rankAdvocate I
3 years ago
Solved

Evolution rate only for common months

Hello guys,   I'm trying to display an evolution rate which compares datas over 2 years. BUT, I only want common months to be part of the calculation. (In 2022, I have datas for 6 months, and in 20...
  • v-yinliw-msft's avatar
    v-yinliw-msft
    3 years ago

    Hi Jackisover ,

     

    You can try this method:

    For the 04/01/2022, you can do this:

    MeasureN = CALCULATE(SUM(file[Data N]), FILTER('file','file'[Date] <> DATE(2022,4,1)))
    MeasureN-1 = CALCULATE(SUM(file[Data N-1]), FILTER('file', 'file'[Date N-1] <> MIN('file'[Date N-1])))
    Result = DIVIDE([MeasureN] - [MeasureN-1], [MeasureN-1])

    The result is:

    Hope this helps you.

     

    Best Regards,

    Community Support Team _Yinliw

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