Forum Discussion
harshagraj
5 years agoPost Partisan
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) ...
amitchandak
5 years agoSuper 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
5 years agoPost Partisan
Hello Amit unfortunately I am getting NAN errors if i do that 😞