Hi @Krays23 ,
Reason of this different result is in the context of Filter Outliers and the way how this measure is created
Filter Outliers =
VAR CurrentSelection = SELECTEDVALUE('Is Outlier'[Selection])
VAR CurrentClass = [Is Outlier]
RETURN
SWITCH(
TRUE(),
CurrentSelection = "Show Outliers Only" && CurrentClass = "Show Outliers Only", 1,
CurrentSelection = "Remove Outliers" && CurrentClass = "Remove Outliers", 1,
CurrentSelection = "All",1,
0
)
based on
Is Outlier =
SWITCH(
TRUE(),
'Key Measures'[Actuals in Hours] < 'Key Measures'[Lower Quartile], "Show Outliers Only",
'Key Measures'[Actuals in Hours] > 'Key Measures'[Upper Quartile], "Show Outliers Only",
"Remove Outliers"
)
So it depends of the context / environment of calculation.
In card is calculated based on totals.
So the table and your card give same results only if you choose Outliners = All
If you would like to include Filter Outliers in your card / Total context you need a change your measure little bit
TTEst Current Standard (Avg Hrs) =
CALCULATE(
AVERAGEX(
FILTER (
ADDCOLUMNS(VALUES( Sheet[Shipset number] ), "@Filter_Outliers", [Filter Outliers]),
[@Filter_Outliers]=1)
,[Strata Current Standard (Hrs)]))
move [Filter Outliers] inside Averagex formula
You can check at pbix file:
SS Sold_All Programs EDNA (Dan)_Additional_measure.pbix (2.5 MB)
Hoping you find this useful and meets your requirements that you’ve been looking for.