Forum Discussion

SurfingData's avatar
SurfingData
Frequent Visitor
2 years ago

How to make a Measure change when excluding data points

I am displaying batch cost information.

I have a measure to calculate the weighted average of the batches

# Weighted Average =
   
    CALCULATE(DIVIDE([# Batch Total Cost],'# BatchMeasure Table'[# Total Yield])
)
 
If I shift and select the bars in the bar chart, it will change the weighted average.
 
Great!
 
However, if you exclude bars on the bar chart the Weighted Average DOES NOT change.
 
How to make it recalculate after the exluded bars in the same way you can just hold shift and select multiple bars
and get the proper weighted Average.

1 Reply