Forum Discussion
Calculating Averages when using a Calculate and Filter Measure
I have a similar problem, did you get an answer on this?
- SimonJacobs9 years ago
Helper I
Not yet.
- v-micsh-msft9 years ago
Microsoft Employee
Hi Simon,
I just tested with your data example and create the measures with the formula below:
Percent Sum := sum(BrandTrackerData[Value])
Percent Average := average(BrandTrackerData[Value])
Index := [Percent Sum] / [Percent Average]
Create a table, and some Slicer visuals in the Report View, the filter works as below.
So could you please share some screenshot regarding what you would like to achieve here?
Regards
- SimonJacobs9 years ago
Helper I
Hi Michael,
Thank you for your reply. The measures you've included look the same as what I have so I've pasted some screenshots below to clarify the issue I'm having.
The Percent Sum and Percent Average measures calculate OK because the Percent Sum is filtered based on all 4 slicers (so only based on Brand 2 below) whereas the Percent Average is not filtered on the Brand slicer and therefore calculated across Brands 1 to 3. The issue is the Index measure - it comes out as 1 for all age groups. I suspect this is because the chart has to either be controlled or not controlled by the brand slicer meaning that both measures are either on just the selected brand, or on all brands and thus both measures give the same number and an index of 1... Does that make sense?
In the example below what I want to see for the 16-24 index value is 0.17 (1/6)
Thanks,
Simon