Forum Discussion
Calculate average based on column values and selected value in slicers
- Anonymous4 years ago
Hi v-kalyj-msft,
I am attaching the screenshot of my sample data in excel, When I am using simple average dax formula, I am getting correct results for first two tables in screenshot but when i am selecting multiple location in slicer(washinton+London) the value is not matching.
I have attached both screen shot for excel and for PBI also
ExcelPBI
Anonymous , try measure like
Average OEE_1 = Switch(selectedvalue(Slicer[value),
"Product Type", AVERAGEX(VALUES(Deliver_O[ProductType]), CALCULATE('Measure'[Average O])),
"Location" , AVERAGEX(VALUES(Deliver_O[Location]), CALCULATE('Measure'[Average O])),
"Week", AVERAGEX(VALUES(Deliver_O[Week]), CALCULATE('Measure'[Average O]))
)
- Anonymous4 years agoNot applicable
Thanks Amit,
In first line "slicer" is greyed out for me, I am not sure if I am doing something wrong or not.
Those Product type, location in commas are to display something?