Complete the code to calculate the total sales amount.
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 amount.
Average Sales = AVERAGE([1])The AVERAGE function calculates the mean of the Sales[Amount] values.
Fix the error in the code to calculate the maximum sales amount.
Max Sales = MAX([1])The MAX function finds the highest value in the Sales[Amount] column. Using dates or names causes errors.
Fill the blank to calculate total sales for a specific product category.
Category Sales = CALCULATE(SUM(Sales[Amount]), Sales[Category] [1] "Electronics")
Use = to filter sales where the category is 'Electronics'. The correct syntax is Sales[Category] = "Electronics" or using IN for multiple values.
Fill all three blanks to create a measure that counts customers with sales above 1000.
High Value Customers = CALCULATE(DISTINCTCOUNT([1]), FILTER(ALL(Sales), Sales[Amount] [2] [3]))
This measure counts unique customers whose sales amount is greater than 1000. Use Customers[CustomerID] for counting, > for comparison, and 1000 as the threshold.