🔥 3-day streak
Microsoft Power BI Data Analyst104 / 205
Question 104 of 205
A Power BI model has a Sales fact table and a Product dimension with a Category column. You write a measure to show only sales that exceed the overall average, but when placed in a matrix broken down by Category, the measure incorrectly compares each category to itself rather than to all categories. The current definition is: HighValueSales = IF([Total Sales] > CALCULATE(AVERAGE(Sales[Amount])), [Total Sales]). What is the correct way to compare each category's total against the average across ALL categories?
Reviewed for accuracy · Report an issueNext question