exam questions

Exam 70-779 All Questions

View all questions & answers for the 70-779 exam

Exam 70-779 topic 1 question 74 discussion

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

DRAG DROP -
You have the following table named SalesOrder Detail in a model.

You need to calculate the sum of SalesTotal for all the rows that have a quantity greater than 1.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Reference:
https://exceleratorbi.com.au/use-sum-vs-sumx/

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
HiJaak
Highly Voted 5 years, 7 months ago
After CALCULATE I think it should be SUM because SUMX would need as first parameter a table, and no values presented could be used as table.
upvoted 12 times
Samewiss
5 years, 7 months ago
i agree, should be SUM of Total Sales and order quantity >1
upvoted 14 times
dinessa
5 years, 7 months ago
I tested it and it worked.
upvoted 4 times
...
...
...
mohroshdy
Highly Voted 5 years, 6 months ago
SUMX is invalid here, so, the correct is SUM('SalesOrderDetails'[SalesTotal]) & Second choice is correct
upvoted 11 times
Arklur
5 years, 3 months ago
Yes, SUMX needs 2 parameters: first is a table and the second one is the expression to sum. SUMX ( 'SalesOrderDetails', 'SalesOrderDetails'[SalesTotal]) would be correct.
upvoted 1 times
...
...
CDL
Most Recent 4 years, 8 months ago
Go with SUM rather than SUMX. Becoz, 1, SUMX language --> SUMX(table, expression) --> and the text here is completely wrong, only SUM(<column>) valid.
upvoted 2 times
...
Agustin
4 years, 11 months ago
Tested: SUM works fine. SUMX does not work (it returns and error).
upvoted 1 times
...
Mar_tin
5 years, 1 month ago
Maybe I got the Question wrong but they want a "sum of SalesTotal for all the rows that have a quantity greater than 1." Using the formular I just get the sum of quantity greater than 1. Because the SUMX missing a column to multiply with. Wouldn't be this the correct Fomula: "SalesTotalQuantity>1:=CALCULATE(SUMX(SalesOrderDetail;[Quantity]*[SalesTotal]);SalesOrderDetail[Quantity]>1)" ?
upvoted 2 times
...
dinessa
5 years, 7 months ago
There should be comma between the two rows.
upvoted 5 times
...
Samewiss
5 years, 7 months ago
SumX can evaluate values with <>=, see the example in https://docs.microsoft.com/en-us/dax/sumx-function-dax
upvoted 3 times
...
imran
5 years, 8 months ago
wrong answer. sumx cant evaluate boolean value like < ,=> it is sum
upvoted 6 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 ...