Forum Discussion
Filter a Measure Value
Hello All,
1. I have created a table for Measure Names to use a Filter,(CycleTime1,CycleTime2)
2.Created Two Columns CycleTime1 = Datediff(Time2,Time1,Sec), CycleTime2 = Datediff(Time3,Time2,Sec)
3.Created a Measure Cycletime
4 Replies
- amitchandak
Super User
harshagraj , Try like
UCL Filter = IF(([CycleTime])>[UCL],"Crossed UCL","Not Crossed")
or in Average , STDEV copy the calculation CycleTime , instead of using it
- harshagraj
Post Partisan
Hi thanks for the reply. I tried the UCL Filter but getting same error. I didnt understand the 2nd Point.
User Just need a UCL filter to see which are the spiked ones.
- amitchandak
Super User
harshagraj , change these measures like and check
Average = CALCULATE(AVERAGEX(CTM_Timestamps, IF(
HASONEVALUE('MeasureTable'[Measures]),
SWITCH(
VALUES('MeasureTable'[Measures]),
"CycleTime1 ,AVERAGE(CTM_Timestamps[CycleTime1]),
"CycleTime2 ,AVERAGE(CTM_Timestamps[CycleTime2]),
AVERAGE(CTM_Timestamps[CycleTime1])
))),ALLSELECTED(CTM_Timestamps))
STDEV = CALCULATE(STDEVX.P(CTM_Timestamps, IF(
HASONEVALUE('MeasureTable'[Measures]),
SWITCH(
VALUES('MeasureTable'[Measures]),
"CycleTime1 ,AVERAGE(CTM_Timestamps[CycleTime1]),
"CycleTime2 ,AVERAGE(CTM_Timestamps[CycleTime2]),
AVERAGE(CTM_Timestamps[CycleTime1])
))),ALLSELECTED(CTM_Timestamps))- harshagraj
Post Partisan
Hello Amit unfortunately I am getting NAN errors if i do that 😞