Forum Discussion
Anonymous
6 years agoNot applicable
Average by volume range
Hi Everyone, I have a fact table with location Ids and turnaround times, and measures that calculates the average turnaround time as well as counts the work order quantity. I have another table t...
- Anonymous6 years ago
Hi Anonymous ,
Please try to create the below 2 measures:
TatAvgStdDevFiltererd = var selectedValue = MIN('SelectedVolumn'[30DayVolume]) var ds = [30DayStdev] return AVERAGEX(FILTER(all('StDevModel'),'StDevModel'[30DayVolume]>selectedValue&&'StDevModel'[30DayVolume]<selectedValue+ds),[AvgTat])WoQtyAvgStdDevFiltererd = var selectedValue = MIN('SelectedVolumn'[30DayVolume]) var ds = [30DayStdev] return AVERAGEX(FILTER(all('StDevModel'),'StDevModel'[30DayVolume]>selectedValue&&'StDevModel'[30DayVolume]<selectedValue+ds),[WoQty])Best Regards
Rena
Anonymous
6 years agoNot applicable
Hi there,
Would anyone have come up to a solution for this?
Thanks,
Anonymous
6 years agoNot applicable
Hi Anonymous ,
Please try to create the below 2 measures:
TatAvgStdDevFiltererd =
var selectedValue = MIN('SelectedVolumn'[30DayVolume])
var ds = [30DayStdev]
return
AVERAGEX(FILTER(all('StDevModel'),'StDevModel'[30DayVolume]>selectedValue&&'StDevModel'[30DayVolume]<selectedValue+ds),[AvgTat])WoQtyAvgStdDevFiltererd =
var selectedValue = MIN('SelectedVolumn'[30DayVolume])
var ds = [30DayStdev]
return
AVERAGEX(FILTER(all('StDevModel'),'StDevModel'[30DayVolume]>selectedValue&&'StDevModel'[30DayVolume]<selectedValue+ds),[WoQty])Best Regards
Rena