Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Measure for Minimum Weekly Average

I am trying to calculate the Minimum of a measure I have "Average Loading Time." Essentially, each week I look at the Average from the previous week but I would like to see the record minimum over the course of the data set. The error I am getting is because the data set has a few null loading times signifying we didn't pick up from them which we want to see also. 
So I need my Measure to calculate the minimum of AVG_LOADING while also ignoring the null values. 
 
I have tried two combos of this
 
Minimum Loading 2 =
CALCULATE(
FILTER('Orders','Orders'[AVG_LOADING]>1),
Min([AVG_LOADING]),
ALL('CALENDAR'[REPORT_DATE]))
 
Minimum Loading 2=
CALCULATE(
average(min('Orders'[Loading_time])),
ALL('CALENDAR'[REPORT_DATE]))

2 Replies