Complete the code to calculate the year-to-date total sales.
Total Sales YTD = TOTALYTD(SUM(Sales[Amount]), [1])The TOTALYTD function needs a date column to calculate year-to-date totals correctly. Here, Sales[Date] is the correct date column.
Complete the code to calculate the quarter-to-date total sales.
Total Sales QTD = TOTALQTD(SUM(Sales[Amount]), [1])TOTALQTD needs the date column to calculate the total for the current quarter. Sales[Date] is the correct choice.
Fix the error in the code to calculate month-to-date total sales.
Total Sales MTD = TOTALMTD(SUM(Sales[Amount]), [1])The TOTALMTD function requires a date column to calculate month-to-date totals. Using Sales[Date] fixes the error.
Fill both blanks to calculate year-to-date sales filtered by product category.
Total Sales YTD Category = CALCULATE(TOTALYTD(SUM(Sales[Amount]), [1]), Sales[Category] [2] "Bikes")
The first blank needs the date column Sales[Date] for TOTALYTD. The second blank is the equals sign = to filter the category to "Bikes".
Fill all three blanks to calculate quarter-to-date sales for a specific customer.
Total Sales QTD Customer = CALCULATE(TOTALQTD(SUM([1]), [2]), Sales[Customer] [3] "John Doe")
The first blank is the sales amount column Sales[Amount] to sum. The second blank is the date column Sales[Date] for TOTALQTD. The third blank is the equals sign = to filter for customer "John Doe".