exam questions

Exam DA-100 All Questions

View all questions & answers for the DA-100 exam

Exam DA-100 topic 2 question 4 discussion

Actual exam question from Microsoft's DA-100
Question #: 4
Topic #: 2
[All DA-100 Questions]

You have sales data in a star schema that contains four tables named Sales, Customer, Date, and Product. The Sales table contains purchase and ship dates.
Most often, you will use the purchase date to analyze the data, but you will analyze the data by both dates independently and together.
You need to design an imported dataset to support the analysis. The solution must minimize the model size and the number of queries against the data source.
Which data modeling design should you use?

  • A. Use the Auto Date/Time functionality in Microsoft Power BI and do NOT import the Date table.
  • B. Duplicate the Date query in Power Query and use active relationships between both Date tables.
  • C. On the Date table, use a reference query in Power Query and create active relationships between Sales and both Date tables in the modeling view.
  • D. Create an active relationship between Sales and Date for the purchase date and an inactive relationship for the ship date.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
clualaba
Highly Voted 4 years, 6 months ago
Answer is D as the inactive relationship can be activate on fly with the "userelationship" dax function. With answer C the "minimize the model size" is not respected as the number of tables increases
upvoted 120 times
eng1
3 years, 10 months ago
this doesn't meet independently and together requirements! it should be C
upvoted 3 times
Rob77
3 years, 10 months ago
Actually it does, no reason why you couldn't have both on your diagram. As for C it doesn't support this neither of these requirements: The solution must minimize the model size and the number of queries against the data source
upvoted 2 times
...
...
Angell
2 years, 9 months ago
Answer is definitely D. You can find this EXACTLY case on the Inactive segment on following link from Microsoft. https://docs.microsoft.com/en-us/power-bi/guidance/relationships-active-inactive
upvoted 2 times
...
hulkster0422
3 years, 9 months ago
This answer is incorrect. With this design you cannot perform a "together" analysis ie. you cannot query the data for "show total sales for orders placed in 1st week of May and shipped in 2nd"
upvoted 4 times
...
...
Evert23
Highly Voted 4 years, 6 months ago
However regarding to the minimize the model size I would say they mean D
upvoted 29 times
...
1sourabhpatel1
Most Recent 2 years, 1 month ago
If the ship date won't be used frequently for analysis, then creating an inactive relationship for the ship date and using the USERELATIONSHIP function in DAX can be a valid approach to minimize the size of the data model and simplify calculations. In this case, using an inactive relationship for the ship date can be helpful because it allows you to include the ship date in the data model without duplicating the Date table. This can save space in the data model, and it can make it easier to manage and update the Date table if necessary.
upvoted 1 times
1sourabhpatel1
2 years, 1 month ago
so d will be great choice but if you want to make morre calculation based on ship dayte then option c would be great to use
upvoted 1 times
...
...
Mobita3000
2 years, 1 month ago
A reference code is a Power Query transformation that enables you to create a new query that refers to an existing query. This means that any changes made to the source query will automatically be reflected in the reference query. This is useful when you need to use the same data or transformations across multiple queries, as it avoids duplicating data and reduces the overall model size. Therefore, option C, which involves using a reference query in Power Query and creating active relationships between Sales and both Date tables in the modeling view, would be the most suitable design. This approach would minimize the model size and enable efficient queries to analyze the data by both purchase and ship dates independently and together.
upvoted 2 times
...
halfway
2 years, 7 months ago
Selected Answer: D
The same use case is described here: https://docs.microsoft.com/en-us/power-bi/guidance/relationships-active-inactive#inactive-relationships
upvoted 2 times
...
YASTAR
2 years, 8 months ago
I vote for D because it's not increasing the model !
upvoted 1 times
...
letsgomate
2 years, 8 months ago
Selected Answer: D
I THINK D IS THE CORRECT ANSWER
upvoted 2 times
...
monique251
2 years, 9 months ago
Selected Answer: D
I would vote for D.
upvoted 1 times
...
Mazarakis
2 years, 9 months ago
Correct Answer is D. B will increase the model size. C will increase the number of queries against data source. (https://docs.microsoft.com/en-us/power-bi/guidance/power-query-referenced-queries)
upvoted 1 times
...
MassimoG
2 years, 9 months ago
Selected Answer: C
From Microsoft here: https://docs.microsoft.com/en-us/power-bi/guidance/relationships-active-inactive#refactoring-methodology Recommendations In summary, we recommend defining active relationships whenever possible. They widen the scope and potential of how your model can be used by report authors, and users working with Q&A. It means that role-playing dimension-type tables should be duplicated in your model. In specific circumstances, however, you can define one or more inactive relationships for a role-playing dimension-type table. You can consider this design when: There's no requirement for report visuals to simultaneously filter by different roles You use the USERELATIONSHIP DAX function to activate a specific relationship for relevant model calculations.
upvoted 3 times
...
Davico93
2 years, 9 months ago
Selected Answer: C
We cannot active and inactive relationship to analize both dates, so the anwer is C
upvoted 2 times
ismailqtr
2 years, 8 months ago
No you can.. using DAX expression "USERELATIONSHIP"
upvoted 1 times
R_P_S_1985
2 years, 8 months ago
But not on both dates in Single query
upvoted 1 times
...
...
...
NAVYA95
2 years, 9 months ago
Selected Answer: D
i think
upvoted 1 times
...
Davico93
2 years, 9 months ago
Selected Answer: C
We cannot have an active and an inactive relationship if we want to analyze both, so the answer must be C
upvoted 2 times
...
CreateSiteCollection
2 years, 10 months ago
What is "both Date tables" means here? Is it mean both Date table and shipdate column? Microsoft exam makers do not understand English very well.
upvoted 1 times
...
Franz58
2 years, 10 months ago
"analyze the data by both dates independently and together" To analyze both dates together we need two independent Date dimesions, therefore the answer should be B.
upvoted 2 times
Davico93
2 years, 9 months ago
I agree with you, we need another date table and to minimize the model size, we cant duplicate the one we have
upvoted 1 times
Davico93
2 years, 9 months ago
but, we cannot duplicaten the table, because it would be like 2 imports, so the answer must be C
upvoted 2 times
...
...
...
asworoski
2 years, 11 months ago
I think its D. Because the question states that "Most often, you will use the purchase date to analyze the data, but you will analyze the data by both dates independently and together." Which means we mostly use purchase_date and less often use ship_date. So If we have an active relationship with purchase_date we can use it and whenever we want to use ship_date we will use the RELATED() funtion for this relationship which basically works on the "many"(*) side of the relationship.
upvoted 2 times
...
ChrisG1454
3 years, 8 months ago
The answer is not C " The solution must minimize" ... "the number of queries against the data source" Reference: https://docs.microsoft.com/en-us/power-bi/guidance/power-query-referenced-queries
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago