Complete the DAX formula to calculate total sales filtered by product category.
Total Sales = CALCULATE(SUM(Sales[Amount]), Sales[Category] = [1])In DAX, text values must be enclosed in double quotes. So to filter by category 'Bikes', use "Bikes".
Complete the DAX formula to calculate sales only for the year 2023.
Sales 2023 = CALCULATE(SUM(Sales[Amount]), Sales[Year] [1] 2023)
In DAX, the equality operator is '=', not double equals '=='.
Fix the error in this DAX formula to correctly filter sales for the 'East' region.
East Sales = CALCULATE(SUM(Sales[Amount]), Sales[Region] [1] "East")
DAX uses '=' for equality comparison, not double equals '==' or other operators.
Fill both blanks to create a measure that calculates total sales for products priced above 100.
High Price Sales = CALCULATE(SUM(Sales[Amount]), Sales[Price] [1] [2])
The filter condition should check if Price is greater than 100, so use '>' and '100'.
Fill all three blanks to create a measure that calculates total sales for the 'West' region in 2022.
West 2022 Sales = CALCULATE(SUM(Sales[Amount]), Sales[Region] [1] [2], Sales[Year] [3] 2022)
Use '=' for equality checks and put text values in quotes. So Region = "West" and Year = 2022.