exam questions

Exam DA-100 All Questions

View all questions & answers for the DA-100 exam

Exam DA-100 topic 2 question 11 discussion

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

HOTSPOT -
You are creating a Microsoft Power BI data model that has the tables shown in the following table.

The Products table is related to the ProductCategory table through the ProductCategoryID column.
You need to ensure that you can analyze sales by product category.
How should you configure the relationships from Products to ProductCategory? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: One-to-many -

Box 2: Both -
For One-to-many relationships, the cross filter direction is always from the "one" side, and optionally from the "many" side (bi-directional).
Note:

Reference:
https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-relationships-understand
Visualize the Data

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
dmorais
Highly Voted 4 years, 8 months ago
I think that should be many-to-one and single. Because one category have multiple products, but one product it's in one category.
upvoted 119 times
O_Anjum
3 years, 10 months ago
Many-to-one is not an option.
upvoted 8 times
Davico93
2 years, 12 months ago
but that's the correct answer "Many-to-one" and single works perfectly
upvoted 2 times
Davico93
2 years, 11 months ago
Sorry.... One-to-Many is correct!
upvoted 2 times
...
...
...
yusufuthman57
3 years, 10 months ago
One product can also fit into many Category. E.g Apple I-Watch fits into both Fashion and Health Category. Also, The question asked "How would you join Products to Category?"
upvoted 3 times
...
...
kasiatea
Highly Voted 4 years, 8 months ago
One to many and single ?
upvoted 78 times
aloulouder
4 years ago
Many to one and single, tested
upvoted 5 times
...
idavidmei
4 years, 8 months ago
I think it is actually onte to many, and both. This is because this model is in a snowflake schema rather than a star schema. Therefore for the appropriate filter to correctly filter from the product category table, you need to set both as direction for the filter.
upvoted 16 times
Annelijn
4 years, 6 months ago
When I look at the snow flake dimension example on: https://docs.microsoft.com/en-us/power-bi/guidance/star-schema There are single filters. Why should it be Both filters then for this question? I'm really struggling with this question and my exam is in 1 week!
upvoted 9 times
...
jesusdax
4 years, 1 month ago
One to many from ProductCategory to Product (sadly written as many to one in this example) And SINGLE. The snowflake goes FactTable * - 1 Product * - 1 Category. A "both" cross-filter is NOT required. The filter "Single" will autopropagate from Category all the way down to the fact table.
upvoted 15 times
BanderMansor
3 years, 6 months ago
I agree with you Sales table will not need to connect to Category, why? because all the category information already filled in product table, so Sales table will going to take the category information from Product table. Based on my opinion above : One-to-Many Single
upvoted 1 times
Davico93
2 years, 12 months ago
and should be "Many-to-One" but it's not a option
upvoted 1 times
Davico93
2 years, 11 months ago
Sorry.... I was wrong. One-to-Many is correct!
upvoted 1 times
...
...
...
...
...
Makar
4 years, 7 months ago
you can not filtered data from sales to Product and from ProductCategory to Product. One to many and both
upvoted 16 times
Analyst_BK
3 years, 11 months ago
Thanks!
upvoted 1 times
...
...
...
nikhikldfas
Most Recent 1 year, 11 months ago
https://www.youtube.com/watch?v=30OrlrKbXsw
upvoted 1 times
...
bakamon
2 years ago
the question productcat to product and vice versa has been reversed.. check PL 300 exam topic question https://www.examtopics.com/discussions/microsoft/view/84214-exam-pl-300-topic-2-question-27-discussion/
upvoted 1 times
...
user12345678
2 years, 10 months ago
Should be One-To-Many and Single. One-To-Many (same as Many-to-One but that's not an option here so you use this) Single - Generally always use Single but if you're trying to filter Sales from a field within the Products table, then you'd use both because filtering is like a pathway but because product category is a separate table then you can still filter sales by it without having to use anything from the Products Table. The only way this wouldn't work is if for some reason you linked both fact tables (Sales and Products) and Sales had no direct relationship to Product Categories but in general, you never link fact tables together. Instead, you link them both by common Dimension (Lookup) tables like the Product Category
upvoted 1 times
user12345678
2 years, 10 months ago
Just read the question again and it actually should be both haha - idk why but I thought the products was a fact table, but it isn't
upvoted 1 times
...
...
Papagena
2 years, 11 months ago
One-to-many and both. If you set "single" you can't count how many products per categories you have sold see: https://docs.microsoft.com/en-us/dax/crossfilter-function
upvoted 3 times
...
elviskftsang
2 years, 11 months ago
It is obviously many-to-many. The direction is from Products to ProductCategory. Each product category can obviously have more than one product. So it must be many-to-many or many-to-one. Since the latter is not an option, many-to-many is correct.
upvoted 3 times
S2poot
2 years, 9 months ago
Not many to many. The grain of products is 1 record per product, which means each product belongs to 1 category. Each category can have many products one to many
upvoted 1 times
...
...
BLUE_BUBBLES
3 years, 1 month ago
One to Many and Both because you are asked to analyse sales by product category. So product category has to slice the sales which means you are going against the flow so you have to set up the filter to "both".
upvoted 4 times
...
Kiran37
3 years, 9 months ago
One to Many & Single, It's Snowflake schema filter flows down to analyse data.
upvoted 1 times
...
dora_chandrasekhar
3 years, 9 months ago
one to many relationship from Product Category to product and one to many relationshiop from products to sales, so the answer is one to many relationship and single direction in order to analyze from product category
upvoted 1 times
...
ilia_smirnov
3 years, 9 months ago
Stupid donkeys gave the answers for this question. Both and Single - works both, but you should add both-directional links only if you really need it, but it isn't required here. So one-to-many, single.
upvoted 3 times
...
Yandex
3 years, 10 months ago
It is FROM products to product category, therefore the answer MUST be "Many to Many" since "Many to One" is not an option.
upvoted 2 times
...
O_Anjum
3 years, 10 months ago
"Many to Many" and "Both" A product can fall into multiple category and a category can have multiple products. For example a product called "Surface Pro" can be in two categories- "Windows Device" and "Tablet PC". Also "Windows Device" category can have multiple products.
upvoted 1 times
ilia_smirnov
3 years, 9 months ago
really? And how are you intended to count sales for products, what have more than one category?
upvoted 1 times
...
...
Vulkany
3 years, 10 months ago
In my opinion Several products can belong to the same category, (eg. apples, bananas, oranges belong to the fruit category). So the relationship between ProductCategory and Product is one-to-many. As filter propagation is always done one-to-many, ProductCategory filter propagated trough Products which in turn will filter Sales. That said... Carnality: One-to-Many Cross-filter direction: Single
upvoted 2 times
...
Analyst_BK
3 years, 11 months ago
Since we only have these options, what makes sense is one-to-many and both. The reason is the question, which is to get sales by product category. You need to filter data from sales to Product and from ProductCategory to Product. At least this is how I understood. Thanks @Markar
upvoted 1 times
...
geky123
3 years, 11 months ago
I go over this question and can't think of correct solution given the answers given. So I declare this questions as broken. If there was N:1 for Products to Categories, then the direction shall be Single, since Sales is likely to be the many sales to one product. The direction will allow it to be Single.
upvoted 2 times
...
BilJon
4 years ago
After testing most of us confirmed that "many to one" is correct but the request clearly says "configure the relationships from Products to ProductCategory" and in the available options we do not have "many to one". I believe it would be wrong to choose "one to many" instead since that one is not valid relationship.
upvoted 2 times
BilJon
4 years ago
Therefore the next best choice is "many to many"
upvoted 2 times
ilia_smirnov
3 years, 9 months ago
really? And how are you intended to count sales for products, what have more than one category?
upvoted 1 times
...
...
BilJon
4 years ago
As for direction it says only to "analyze sales by product category" (not product category by sales) which can be achieved with "single".
upvoted 2 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 ...