Complete the DAX measure to calculate total sales.
Total Sales = SUM(Sales[[1]])The SUM function adds all values in the 'Amount' column to get total sales.
Complete the DAX formula to calculate sales for the previous year.
Sales LY = CALCULATE([Total Sales], SAMEPERIODLASTYEAR([1]))SAMEPERIODLASTYEAR needs a date column from a calendar table to work correctly.
Fix the error in the DAX measure to calculate year-over-year growth percentage.
YoY Growth % = DIVIDE([Total Sales] - [Sales LY], [1]) * 100
The denominator should be the previous year's sales to calculate growth relative to last year.
Fill both blanks to create a measure that calculates sales difference between years.
Sales Difference = [1] - [2]
Subtract previous year sales from current year sales to get the difference.
Fill all three blanks to calculate year-over-year growth with error handling.
YoY Growth % = DIVIDE([1] - [2], [3]) * 100
The formula subtracts last year's sales from current sales, then divides by last year's sales to get growth percentage. Using DIVIDE handles division by zero safely.