Complete the code to create a new measure that sums the Sales column.
Total Sales = SUM([1])The SUM function needs the Sales Amount column to calculate total sales.
Complete the code to filter sales for the year 2023.
Sales 2023 = CALCULATE(SUM(Sales[Amount]), Sales[Year] = [1])
We want to filter sales for the year 2023, so the filter value must be 2023.
Fix the error in the measure to calculate average sales.
Average Sales = AVERAGE([1])The AVERAGE function must use the Sales Amount column to calculate average sales.
Fill both blanks to create a measure that counts customers from USA.
USA Customers = CALCULATE(COUNT([1]), Customers[Country] = [2])
We count CustomerID to count customers, and filter where Country equals "USA".
Fill all three blanks to create a measure that sums sales for 2023 and filters only products in category 'Electronics'.
Electronics Sales 2023 = CALCULATE(SUM([1]), Sales[Year] = [2], Products[Category] = [3])
The measure sums Sales Amount, filters year 2023, and filters category "Electronics".