In a sales data model, the 'Date' dimension is used multiple times for different purposes like 'Order Date', 'Ship Date', and 'Due Date'. What is the main reason to use role-playing dimensions in this scenario?
Think about how the same dimension can represent different meanings depending on context.
Role-playing dimensions allow the same dimension table to be used multiple times in a model with different relationships, each representing a different role like 'Order Date' or 'Ship Date'. This avoids duplicating data and keeps the model clean.
Given a sales model with a single 'Date' dimension used as 'Order Date' and 'Ship Date', which DAX measure correctly calculates total sales amount filtered by 'Ship Date'?
Total Sales by Ship Date = CALCULATE(SUM(Sales[Amount]), USERELATIONSHIP(Sales[ShipDateKey], 'Date'[DateKey]))Think about how to activate an inactive relationship in DAX.
The USERELATIONSHIP function activates the inactive relationship between Sales[ShipDateKey] and 'Date'[DateKey], allowing the measure to filter by Ship Date correctly.
You have a sales report with 'Order Date' and 'Ship Date' role-playing dimensions from the same 'Date' table. You want to create a line chart showing monthly sales by 'Order Date' and a separate line chart showing monthly sales by 'Ship Date'. What is the best practice to ensure correct filtering in each chart?
Consider how slicers interact with inactive relationships and measures.
Disconnected slicers combined with DAX measures using USERELATIONSHIP allow precise control over filtering by different role-playing dimensions without conflicts.
A report shows total sales by 'Ship Date' but the numbers are the same as 'Order Date' sales. The model uses a single 'Date' table with two relationships: one active for 'Order Date' and one inactive for 'Ship Date'. The measure is:
Total Sales Ship Date = SUM(Sales[Amount])
Why is the measure showing incorrect results?
Think about which relationship is active by default in Power BI.
By default, Power BI uses the active relationship. Since 'Ship Date' is inactive, the measure must explicitly activate it using USERELATIONSHIP to filter correctly.
Your company tracks orders with multiple date roles: 'Order Date', 'Ship Date', 'Invoice Date', and 'Payment Date'. You have a single 'Date' dimension table. You need to build a Power BI model that allows users to analyze sales by any of these dates with slicers and visuals. Which approach best supports this requirement?
Consider model simplicity and flexibility for multiple date roles.
Using one 'Date' table with multiple inactive relationships and DAX measures activating the needed relationship provides a clean, flexible model without duplicating tables.