Complete the code to calculate total sales using DAX.
Total Sales = SUM([1])The SUM function adds all values in the Sales[Amount] column to get total sales.
Complete the code to calculate average sales per customer.
Average Sales = DIVIDE(SUM(Sales[Amount]), [1])DISTINCTCOUNT counts unique customers to divide total sales by number of customers.
Fix the error in this DAX measure to calculate sales growth percentage.
Sales Growth % = DIVIDE(SUM(Sales[Amount]) - CALCULATE(SUM(Sales[Amount]), [1]), CALCULATE(SUM(Sales[Amount]), [1]))
SAMEPERIODLASTYEAR returns the same period last year for correct year-over-year comparison.
Fill both blanks to create a measure that counts customers with sales over 1000.
High Value Customers = CALCULATE(DISTINCTCOUNT(Sales[CustomerID]), FILTER(ALL(Sales), Sales[Amount] [1] [2]))
The filter keeps sales where amount is greater than 1000 to count those customers.
Fill all three blanks to create a measure that calculates total sales for the current year.
Total Sales CY = CALCULATE(SUM(Sales[Amount]), [1](ALL(Sales[Date]), [2](Sales[Date]) = YEAR([3]())))
Use FILTER to filter dates where YEAR equals the current year from TODAY function.