Supporting Analysis with Multiple Date Foreign Keys in Power BI
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You have a Power BI report that imports a date table and a sales table from an Azure SQL database data source. The sales table has the following date foreign keys: ✑ Due Date ✑ Order Date ✑ Delivery Date You need to support the analysis of sales over time based on all the date foreign keys. Solution: From Power Query Editor, you rename the date query as Due Date. You reference the Due Date query twice to make the queries for Order Date and Delivery Date. Does this meet the goal?
Community Insight
The scenario tests the understanding of Active vs. Inactive relationships in DAX. The common trap is confusing data preparation (Power Query) with relationship modeling (Data Model), assuming renaming creates connectivity.
This question addresses how to handle multiple date foreign keys (Due, Order, Delivery) in a Power BI data model. It establishes that simply renaming and referencing queries in Power Query is insufficient for creating the necessary relationships.
Many learners choose 'Yes' because they believe duplicating the Date table via references in Power Query automatically links it to different columns in the Sales table. This is incorrect; physical tables do not imply logical relationships without defining them in the model.
Community Discussion (64 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
The correct answer is B (No). Renaming a query and using "Reference" in Power Query Editor creates separate physical copies of the Date table in the data model. However, it does not automatically create relationships between these new Date tables and the specific date columns (Due Date, Order Date, Delivery Date) in the Sales table. To support analysis over all three dates, you must explicitly define inactive relationships (or use USERELATIONSHIP in DAX measures) between the single Date table and each of the three foreign key columns. Simply having duplicate tables doesn't solve the ambiguity or enable time intelligence across different date types.Why the Other Options Are Wrong
Option A is incorrect because the proposed solution fails to establish the required cardinality and relationship type. Without explicit relationship definitions, the model cannot filter sales by Due Date or Delivery Date based on a standard Date dimension. The "Reference" operation only duplicates data structure, not semantic connections.Community Comment Notes
Community consensus is split but leans towards B being the technically correct answer for exam purposes. User legionairemax notes that typically one active and two inactive relationships are created from one Date table. User Igetmyrole emphasizes that renaming doesn't create relationships. Some users like SamuComqi argue A is correct based on learning path experiences, but this often reflects a misunderstanding of the distinction between Power Query steps and Data Model relationships. As Dr_Do noted, "Renaming of the query doesn't make sense" for achieving the goal of supporting analysis based on specific keys.Exam Strategy
When dealing with multiple date columns, always think about Relationship Cardinality. You need one Date table linked to multiple date columns via Inactive Relationships, not multiple duplicated Date tables. Use USERELATIONSHIP() in your DAX measures to activate these relationships for specific calculations.
Frequently Asked Questions
Why can't I just duplicate the Date table in Power Query?
Duplicating tables creates separate entities. You still need to manually define relationships between each duplicate and the specific date column in the fact table.
What is the best practice for multiple date columns?
Use a single Date table and create inactive relationships to each date column in the fact table. Activate them dynamically using USERELATIONSHIP in DAX.
Related Analysis
Practice All PL-300 Questions
Access 116 questions with complete answers and detailed explanations.
View Full PL-300 Practice Test →