Complete the code to calculate total sales for the year 2023.
TotalSales2023 = CALCULATE(SUM(Sales[Amount]), Sales[Year] = [1])The filter inside CALCULATE must specify the year 2023 to sum sales for that year.
Complete the code to calculate total sales for the year 2023 and product category 'Bikes'.
TotalSalesBikes2023 = CALCULATE(SUM(Sales[Amount]), Sales[Year] = 2023, Sales[Category] = [1])
The filter must specify the product category 'Bikes' to calculate sales only for that category.
Fix the error in the code to calculate total sales for 2023 and category 'Bikes'.
TotalSales = CALCULATE(SUM(Sales[Amount]), Sales[Year] = 2023, Sales[Category] [1] 'Bikes')
In DAX, the correct operator for filter conditions is a single equals sign '='.
Fill both blanks to calculate total sales for 2023 and category 'Bikes' using FILTER function.
TotalSalesFiltered = CALCULATE(SUM(Sales[Amount]), FILTER(Sales, Sales[Year] = [1] && Sales[Category] = [2]))
The FILTER function needs the year 2023 and category 'Bikes' to filter the Sales table correctly.
Fill all three blanks to calculate total sales for 2023, category 'Bikes', and region 'West'.
TotalSalesRegion = CALCULATE(SUM(Sales[Amount]), Sales[Year] = [1], Sales[Category] = [2], Sales[Region] = [3])
All three filters must be specified correctly to calculate sales for year 2023, category 'Bikes', and region 'West'.