Complete the code to create a simple measure that sums the Sales column.
Total Sales = SUM([1])The SUM function adds all values in the Sales[Amount] column to calculate total sales.
Complete the code to calculate the average sales per order.
Average Sales = AVERAGE([1])The AVERAGE function calculates the mean of the Sales[Amount] values.
Fix the error in the measure to calculate total sales for 2023 only.
Total Sales 2023 = CALCULATE(SUM(Sales[Amount]), Sales[Year] [1] 2023)
In DAX, the single equals sign '=' is used for comparison inside CALCULATE filters.
Fill both blanks to create a measure that counts customers from a specific city.
Customer Count = CALCULATE(COUNT(Customers[CustomerID]), Customers[City] [1] "[2]")
The measure counts customers where the City equals 'New York'.
Fill both blanks to create a measure that calculates total sales for products priced above 100.
High Value Sales = CALCULATE(SUM(Sales[Amount]), Products[Price] [1] [2])
This measure sums sales where product price is greater than 100.
