Forum Discussion
dapm11
3 years agoFrequent Visitor
AVEDEV Function equivalent in DAX?
Hello All, I'm hoping some may be able to help, I'm looking to create a DAX measure that replicates the AVEDEV (excel function). I want to find the AVEDEV of the "Fail Rate 2" measure with an av...
johnt75
Super User
3 years agoTry
Ave dev =
VAR Avg180Days =
AVERAGEX (
WINDOW (
-179,
REL,
0,
REL,
ALL ( 'Date'[Date] ),
ORDERBY ( 'Date'[Date], ASC )
),
[Fail Rate 2]
)
VAR CurrentFailRate = [Fail Rate 2]
VAR RESULT =
ABS ( CurrentFailRate - Avg180Days )
RETURN
Result