Your Power BI semantic model contains a Sales fact table with OrderDateKey, ShipDateKey, and DueDateKey foreign keys. You must let report authors filter visuals by order date, ship date, or due date without increasing the model's storage footprint. What should you do to implement the required role-playing date dimensions?
Enable bidirectional cross-filtering on the existing date relationships and rely on visual-level filters to choose the required date context at runtime.
Create a single Date table, create one active and two inactive relationships from it to the three date key columns, and use CALCULATE with USERELATIONSHIP in measures to invoke the needed relationship.
Add three calculated date columns to the Sales table and apply DAX time-intelligence functions directly on those columns in visuals.
Create three duplicate copies of the Date table and relate each copy to one of the date key columns in Sales.
Create one Date dimension table and relate it three times to the Sales fact table-one active relationship for the default date (for example, OrderDateKey) and two inactive relationships for ShipDateKey and DueDateKey. Because only one relationship can be active simultaneously, use CALCULATE combined with USERELATIONSHIP (or calculation groups) in measures to activate the desired inactive relationship when needed. This approach keeps a single copy of the Date table, so it adds no extra rows to the model, yet still enables independent filtering for each business date. Duplicating the Date table would increase storage. Adding date columns to the fact table or relying solely on bidirectional cross-filters does not provide the required role-playing behavior.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a role-playing dimension in Power BI?
Open an interactive chat with Bash
How does USERELATIONSHIP function work in Power BI?
Open an interactive chat with Bash
Why is it better to use inactive relationships instead of duplicating the Date table?
Open an interactive chat with Bash
Microsoft Power BI Data Analyst
Model the Data
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .