You are designing a Power BI semantic model that contains a Sales fact table with two date keys: OrderDateKey and ShipDateKey. Report authors must be able to build visuals that simultaneously compare order volume by order date and shipping performance by ship date, without writing custom DAX to activate relationships. Row-level security will also be applied. Which modeling approach should you implement?
Duplicate the Date table so there is a Date table and a Ship Date table, and create an active one-to-many relationship from each table to its corresponding date key in Sales.
Create a many-to-many relationship between the Date table and the Sales table, with cross-filter direction set to Both.
Create two inactive relationships from the existing Date table to the Sales table and require measures to use USERELATIONSHIP when needed.
Keep a single active relationship on OrderDateKey and set its cross-filter direction to Both so it implicitly filters ShipDateKey.
Power BI permits only one active relationship between any two tables. To let visuals filter the Sales fact table by both OrderDateKey and ShipDateKey at the same time, each role-playing instance of the date dimension must have its own active relationship. The recommended pattern is therefore to duplicate the Date table (for example, create a Ship Date table as a calculated or reference table) and relate each copy to the appropriate date key in Sales as a one-to-many, single-direction, active relationship. This design keeps the model simple for report authors, works with row-level security, and avoids the need for USERELATIONSHIP calls. Using inactive relationships would force every measure to enable the relationship manually, while many-to-many or bi-directional settings do not resolve the single-active-relationship constraint.
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.
Why does Power BI only allow one active relationship between two tables?
Open an interactive chat with Bash
What is a role-playing dimension, and why is it duplicated in this solution?
Open an interactive chat with Bash
How does this modeling approach work with row-level security?
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 .