exam questions

Exam DP-600 All Questions

View all questions & answers for the DP-600 exam

Exam DP-600 topic 1 question 102 discussion

Actual exam question from Microsoft's DP-600
Question #: 102
Topic #: 1
[All DP-600 Questions]

HOTSPOT
-

You have a Fabric tenant that contains a semantic model. The model contains data about retail stores.

You need to write a DAX query that will be executed by using the XMLA endpoint. The query must return the total amount of sales from the same period last year.

How should you complete the DAX expression? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

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
MM_GG
Highly Voted 11 months, 2 weeks ago
Should be CALCULATE, not SUMMARIZE
upvoted 57 times
...
554b579
Highly Voted 11 months, 1 week ago
CALCULATE([Total Sales], SAMEPERIODLASTYEAR('Order'[Order Date])) The entire expression calculates the sales amount for the same period last year based on the current date context. The SUMMARIZE function creates a summary table based on grouping and aggregation.
upvoted 14 times
...
97b39d5
Most Recent 5 days, 5 hours ago
CALCULATE & {_LYSales} CALCULATE returns a scalar. EVALUATE can't return a scalar, it needs a table. ROW CONSTRUCT {} transforms a scalar into a table.
upvoted 1 times
...
seaverick
6 months ago
right ans -> CALCULATE I tried in DAX.do with Contoso data and return an error (In query, I have changed [Total Sales] by [Sales Amount] and Orders[Orde Date] by Sales[Order Date]): EVALUATE VAR _LYSales = SUMMARIZE ([Sales Amount],SAMEPERIODLASTYEAR (Sales[Order Date])) RETURN _LYSales Error: Query (2, 42) Function SUMMARIZE expects a column name as argument number 2. Technical Details: RootActivityId: 435f1c64-89c5-4587-9d79-187541b1e1e3 Date (UTC): 9/15/2024 8:04:33 AM
upvoted 6 times
...
Lucetmi
9 months ago
Be careful, EVALUATE in DAX queries always returns the result of a table expression, then _LYSales is a wrong answer (scalar value). The correct answers are then: CALCULATE, {_LYSales}
upvoted 10 times
fatinaliaka
8 months, 3 weeks ago
No right sequence is : RETURN _LYSales
upvoted 1 times
...
...
282b85d
9 months, 2 weeks ago
EVALUATE VAR _LYSales = CALCULATE ( [Total Sales], SAMEPERIODLASTYEAR ( 'Orders'[Order Date] ) ) RETURN _LYSales
upvoted 6 times
...
Murtaza_007
9 months, 4 weeks ago
Calculate & _ LY
upvoted 1 times
...
dp600
10 months, 3 weeks ago
CALCULATE, _LYSales
upvoted 2 times
...
Nefirs
10 months, 3 weeks ago
CALCULATE & _LYSales
upvoted 7 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