Forum Discussion
Anonymous
6 years agoNot applicable
Moving Range Average Calculated Column
Moving Range =
VAR EarlierTime =
CALCULATE (
MAX ( 'table'[StartDate] ),
FILTER (
ALLSELECTED ( 'Table'[StartDate] ),
'table'[StartDate] < SELECTEDVALUE...
- 6 years ago
Hi Anonymous ,
You could add an index column in the query editor and refer to the following DAX:
Column = VAR a = CALCULATE ( FIRSTNONBLANK ( 'Table'[Operating Efficency], 1 ), FILTER ( 'Table', 'Table'[Index] = EARLIER ( 'Table'[Index] ) + 1 ) ) RETURN IF ( a = BLANK (), 0, ABS ( a - 'Table'[Operating Efficency] ) )Here is my test result.
Now you could calculate the average value.
v-eachen-msft
6 years agoCommunity Support
Hi Anonymous ,
You could add an index column in the query editor and refer to the following DAX:
Column =
VAR a =
CALCULATE (
FIRSTNONBLANK ( 'Table'[Operating Efficency], 1 ),
FILTER ( 'Table', 'Table'[Index] = EARLIER ( 'Table'[Index] ) + 1 )
)
RETURN
IF ( a = BLANK (), 0, ABS ( a - 'Table'[Operating Efficency] ) )
Here is my test result.
Now you could calculate the average value.