Complete the code to create a calculated measure that sums the Sales column.
Total Sales = SUM([1])The SUM function should be applied to the Sales[Amount] column to calculate total sales.
Complete the code to calculate the average sales per customer.
Average Sales per Customer = DIVIDE(SUM(Sales[Amount]), [1])To get average sales per customer, divide total sales by the distinct count of customers.
Fix the error in the code to filter sales greater than 1000.
High Sales = CALCULATE(SUM(Sales[Amount]), Sales[Amount] [1] 1000)
The filter should use '>' to select sales amounts greater than 1000.
Fill both blanks to create a measure that calculates total sales for the current year only.
Sales Current Year = CALCULATE(SUM(Sales[Amount]), [1](Sales, YEAR(Sales[Date]) = [2](TODAY())))
Use FILTER to filter Sales by YEAR of Sales[Date] equal to current year using YEAR(TODAY()).
Fill in the blank to create a measure that calculates the percentage of total sales for each product category.
Category Sales % = DIVIDE(SUM(Sales[Amount]), CALCULATE(SUM(Sales[Amount]), ALL([1])), 0) * 100
Use ALL(Products) to remove filters on products and calculate total sales for percentage.