Forum Discussion
rsbin
6 years agoCommunity Champion
Standard Deviation yields NaN error
Good Afternoon All & Greg_Deckler Following up on my previous thread wherein I used the following formula to calculate Standard Deviation: StdDev_EquipID = VAR __table = SUMMARIZE(GeneralSt...
AlexisOlson
6 years agoSuper User
The formula is correct. Standard deviation is undefined for a zero denominator.
If you want to show something else instead of NaN you can write that rule into your measure:
StdDev_EquipID =
VAR __table =
SUMMARIZE ( GeneralStatistics, [Date], "__EquipID", [EquipmentIDRatio] )
VAR SD =
STDEVX.P ( __table, [__EquipID] )
RETURN
IF ( ISERROR ( SD ), BLANK (), SD )