Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Standard Deviation Flag

I am trying to get a 0 or 1 indicator if a value falls one standard deviation outside the mean for a variable period of time that can be changed.  I know this can be done for a column, but can it be done for a measure?

 

Can provide more detail if necessary

5 Replies

  • v-cherch-msft's avatar
    v-cherch-msft
    Microsoft Employee

    Hi Anonymous 

    You may create a measure like below:

    Measure_ = IF(MAX(Table2[Value])>[Standard Deviation],1,0)

    Regards,

    • Anonymous's avatar
      Anonymous
      Not applicable

      This response doesn't allow me to use a measure as Table 2[Value], it needs a column.  Is there a way to use a measure instead of a column here?

      • v-cherch-msft's avatar
        v-cherch-msft
        Microsoft Employee

        Hi Anonymous 

        You may try below measure.If it is not your case,please share some sample data and expected output which could reproduce your scenario.

        Measure_ = IF([measure1]>[Standard Deviation],1,0)

        Regards,