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 1 year, 4 months ago
Should be CALCULATE, not SUMMARIZE
upvoted 58 times
...
554b579
Highly Voted 1 year, 4 months 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
...
a89bfbf
Most Recent 1 month ago
I dissagree with the second answer. It says that "You need to write a DAX query that will be executed by using the XMLA endpoint." Therefore...it uses EVALUATE, so it can return a Table. A 1 Row and 1 Column table, but a Table (because the external tool requires it) Therefore it should be { _LYSales }
upvoted 2 times
...
97b39d5
5 months, 1 week 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
11 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
1 year, 1 month 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
1 year, 1 month ago
No right sequence is : RETURN _LYSales
upvoted 1 times
...
...
282b85d
1 year, 2 months ago
EVALUATE VAR _LYSales = CALCULATE ( [Total Sales], SAMEPERIODLASTYEAR ( 'Orders'[Order Date] ) ) RETURN _LYSales
upvoted 6 times
...
Murtaza_007
1 year, 2 months ago
Calculate & _ LY
upvoted 1 times
...
dp600
1 year, 3 months ago
CALCULATE, _LYSales
upvoted 2 times
...
Nefirs
1 year, 3 months 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 ...