exam questions

Exam 70-779 All Questions

View all questions & answers for the 70-779 exam

Exam 70-779 topic 1 question 79 discussion

Actual exam question from Microsoft's 70-779
Question #: 79
Topic #: 1
[All 70-779 Questions]

You have the data model shown in the exhibit. (Click the Exhibit tab.) You need to create a hierarchy from DimproductSubcategory[ProductSubcategoryName] and DimProduct[ProductName].

What should you do before you create the hierarchy?

  • A. Create a relationship between the tables. To DimProductSubcategory, add a calculated column named ProductName that uses the LOOKUPVALUE (DimProduct[ProductName],DimProduct[ProductKey],[ProductKey]) DAX formula.
  • B. To DimProduct, add a calculated column named ProductSubcategoryName that uses the LOOKUPVALUE(DimProductSubcategory [ProductSubcategoryName],DimProductSubcategory[ProductCategoryKey],[ProductSubcategoryKey]) DAX formula.
  • C. Create a relationship between the tables. To DimProduct, add a calculated column named ProductSubcategoryName that uses the RELATEDTABLE (DimProductSubcategory[ProductSubcategoryName]) DAX formula.
  • D. To DimProduct, add a calculated column named ProductSubcategoryName that uses the VALUES(DimProductSubcategory[ProductSubcategoryName]) DAX formula.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Reference:
https://www.daxpatterns.com/parent-child-hierarchies/

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
tho
Highly Voted 5 years, 7 months ago
RELATEDTABLE returns a table, thus C is incorrect. B is the correct answer, VALUELOOKUP doesn't require a relationship between table.
upvoted 23 times
RutRut
5 years, 4 months ago
B is correct. Tested.
upvoted 4 times
...
Arklur
5 years, 3 months ago
Yep, "B" is correct, "C" would be correct if RELATED was used, not RELATEDTABLE.
upvoted 5 times
...
...
thecov
Highly Voted 5 years, 8 months ago
I think should be C. We need a relationship first.
upvoted 9 times
...
FrdFrd
Most Recent 4 years, 5 months ago
Correct Answer is B A is adding a column to DimproductSubcategory table which lacks the product detail. By no way this can be correct C would have been correct if instead of RELATEDTABLE function, RELATED had been used. D is incorrect. VALUES will return a TABLE where a single value (the subcategory for each product) is expected. It will produce an #ERROR B is correct. VALUELOOKUP is used correctly and it does not need a relationship to exist between the tables
upvoted 4 times
...
CDL
4 years, 8 months ago
1, if relationship exists, (option C: not correct) To DimProduct, add a calculated column named ProductSubcategoryName that uses the : RELATED(DimProductSubcategory[ProductSubcategoryName]). 2, if no relationship, (option B: not correct neither, the 2nd argument, A also wrong becoz the second argument.) To DimProduct, add a calculated column named ProductSubcategoryName that uses the LOOKUPVALUE(DimProductSubcategory [ProductSubcategoryName],DimProductSubcategory[ProductSubcategoryKey],[ProductSubcategoryKey]). Reference Link: https://docs.microsoft.com/en-us/dax/lookupvalue-function-dax
upvoted 1 times
...
mssql
4 years, 8 months ago
Both c and B have an error. C has an error in RELATEDTABLE instead of RELATED B has an error in the columns used in the formula
upvoted 1 times
...
Symone
4 years, 9 months ago
RELATEDTABLE is probably a mistake. I've seen another place that has this properly defined as RELATED. Therefore, the correct answer should be C
upvoted 1 times
...
claudia_learner
5 years, 1 month ago
How can B be correct? - LOOKUPVALUE expects a scalar value as the third argument. Here, the coloumn [ProductSubcategoryKey] is the third argument. If I try this formula, it gives me exactly this error.
upvoted 2 times
...
amar111
5 years, 2 months ago
The answer should be A . Hierarchy should be created in Subcategory table because this table is up in hierarchy .
upvoted 3 times
...
tdu7
5 years, 3 months ago
C is not correct. RELATEDTABLE can return a calculated column, however it takes a table name as the parameter, in this case, if RELATEDTABLE('DimProductSubcategory') then correct.
upvoted 1 times
...
mcsetc
5 years, 4 months ago
B is correct, but it has a typo. Should be... LOOKUPVALUE(DimProductSubcategory [ProductSubcategoryName],DimProductSubcategory[ProductSubcategoryKey],[ProductSubcategoryKey])
upvoted 8 times
...
SN22
5 years, 4 months ago
The answer should be C
upvoted 2 times
...
cs3122
5 years, 5 months ago
I'm going with C on this one. Create the relationship first, since the keys already exist.
upvoted 1 times
...
mohroshdy
5 years, 6 months ago
B is the correct answer as VALUELOOKUP doesn't require any relationship between the tables
upvoted 9 times
PowerBIconsultant12
4 years, 8 months ago
True, but B is incorrect for sure => please look carefully at the formula => The formule in B mistakenly connects [ProductCategoryKey] to [ProductSubcategoryKey] => this should have matching [ProductSubcategoryKey] with [ProductSubcategoryKey]. C is also incorrect => it creates a table because it uses RELATEDTABLE instead of RELATED. Therefore the answer is A
upvoted 2 times
wanjinyou
4 years, 8 months ago
I think A is correct. B Dax Formula is incorrect. The correct is LOOKUPVALUE(DimProductSubcategory [ProductSubcategoryName],DimProductSubcategory[ProductSubcategoryKey],[ProductSubcategoryKey])
upvoted 1 times
...
...
...
trantrongw
5 years, 7 months ago
I am sure that the answer is C.
upvoted 1 times
...
Oye
5 years, 7 months ago
Yes, C. Relationship first.
upvoted 1 times
PowerBIconsultant12
4 years, 8 months ago
C is incorrect. The formula uses RELATEDTABLE instead of RELATED and therefore creates a tables which is not what we want here.
upvoted 2 times
...
...
The_Marv
5 years, 7 months ago
I agree
upvoted 1 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 ...