Complete the DAX formula to create a new role-playing dimension table using the CALCULATETABLE function.
NewDateRole = CALCULATETABLE(Date, [1])Using ALL(Date) removes filters and creates a full copy of the Date table for the new role.
Complete the expression to create a relationship between the Sales table and the new Date role-playing dimension.
CREATE RELATIONSHIP Sales[OrderDate] [1] DateRole[Date]The correct syntax to define a relationship uses the equality operator == between keys.
Fix the error in this DAX measure that calculates total sales using the role-playing Date dimension.
Total Sales Role = CALCULATE(SUM(Sales[Amount]), [1])To use the role-playing dimension for ShipDate, USERELATIONSHIP activates that inactive relationship.
Fill in the blank to create a measure that calculates sales filtered by the role-playing Date dimension for delivery date.
Sales by Delivery = CALCULATE(SUM(Sales[Amount]), [1](Sales[DeliveryDate], DateRole[Date]))USERELATIONSHIP activates the inactive relationship between DeliveryDate and DateRole[Date].
Fill all three blanks to define a role-playing dimension table with a filter on year and create a measure using it.
DateRole = CALCULATETABLE(Date, [1](Date, Date[Year] = 2023)) Sales 2023 Role = CALCULATE(SUM(Sales[Amount]), [2](Sales[OrderDate], DateRole[Date]), [3](DateRole))
Use FILTER to limit Date to 2023, USERELATIONSHIP to activate the role-playing relationship, and ALL to remove filters on DateRole in CALCULATE.