Forum Discussion

spena's avatar
spena
Frequent Visitor
6 years ago
Solved

compare individual data points to average trend

Hi, I need help with the DAX for what I am trying to do and I want to be able to show this in a graph once calculated. I am showing annualized churn over time, by week. There is a date slider in my ...
  • v-chuncz-msft's avatar
    v-chuncz-msft
    6 years ago

    spena 

     

    You may try the measure below.

    Measure =
    AVERAGEX ( ALLSELECTED ( 'Table'[WeekId] ), [ChurnCalc] ) - [ChurnCalc]
    

     

  • spena's avatar
    spena
    6 years ago

    Hi v-chuncz-msft thank you for the suggestion!

     

    I was able to solve this by creating the following measures:

    ChurnCalc average =
    AVERAGEX(
        ALLSELECTED('ChurnDigital'[WeekId]),
        CALCULATE([Churn])
    )
     
    Churn var to avg = ChurnDigital[Churn] - ChurnDigital[ChurnCalc average]