Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

How visualze a alert or warning stats?

I'm making a bug stats dashboard for a couple IoT sensors. So I have a sensor that report temprature, Co2, each of them have normal range for example temperature have normal range between -40 to 100 ...
  • v-lili6-msft's avatar
    v-lili6-msft
    7 years ago

    HI, Anonymous 

    The logic of your two rules are repeated, Since ">=-40 &&<125" contains ">=-39 &&<120" , and in the logical operations for conditional formatting, it will calculate rules from the bottom up. So for your setting, the value between -39 and 120 will be "Red".

    and for your case, you could try this way:

    Step1:

    Add a measure 

    conditional = IF([Averge Temperarure Value]<=-40||[Averge Temperarure]>126,1,0)

    ( [Averge Temperarure Value] is an average measure

    Averge Temperarure Value = CALCULATE(AVERAGE(Table1[Temperarure]))

    )

    Step2:

    Then use this measure to set conditional formatting for Averge Temperarure column

     

    Best Regards,

    Lin