PL-300 · Question #399
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…
The correct answer is A. Yes. To enable sales analysis based on multiple date foreign keys from a single date table in Power BI, you can create measures using the USERELATIONSHIP DAX function.
Question
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: You create measures that use the USERELATIONSHIP DAX function to filter sales on the inactive relationship between the sales table and the date table. Does this meet the goal?
Options
- AYes
- BNo
How the community answered
(24 responses)- A71% (17)
- B29% (7)
Why each option
To enable sales analysis based on multiple date foreign keys from a single date table in Power BI, you can create measures using the USERELATIONSHIP DAX function.
The USERELATIONSHIP DAX function allows you to temporarily activate an inactive relationship within the context of a DAX measure. This enables a single Date table to filter sales data using different foreign keys (Due Date, Order Date, Delivery Date) in the Sales table, thus supporting diverse date-based analyses over time.
Concept tested: DAX USERELATIONSHIP for multiple relationships
Source: https://learn.microsoft.com/en-us/dax/userelationship-function-dax
Community Discussion
No community discussion yet for this question.