exam questions

Exam PL-300 All Questions

View all questions & answers for the PL-300 exam

Exam PL-300 topic 2 question 80 discussion

Actual exam question from Microsoft's PL-300
Question #: 80
Topic #: 2
[All PL-300 Questions]

You have a Power BI model that contains the following data.



The Date table relates to the Sales table by using the Date columns.

The model contains the following DAX measure.

Total Sales = SUM(Sales[Sale])

You need to create another measure named Previous Quarter to display the sales one quarter before the selected period.

Which DAX calculation should you use?

  • A. CALCULATE ( [Total Sales], DATEADD (Date[Date], -1, QUARTER ) )
  • B. CALCULATE ( [Total Sales], DATESQTD (Date[Date] ) )
  • C. TOTALQTD ( [Total Sales], Date[Date] )
  • D. CALCULATE ( [Total Sales], PARALLELPERIOD (Date[Date], 1, QUARTER ) )
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
tranquanghuy2111
Highly Voted 1 year, 5 months ago
DATEADD is correct. PARALLELPERIOD also calculate one quarter before, but the out come is the total sales of three months of previous quarter not only one day or one month of previous quarter
upvoted 20 times
ZillowGosia
1 year, 4 months ago
A is correct.
upvoted 7 times
...
...
Koalakueh
Highly Voted 1 year, 4 months ago
Selected Answer: A
we can use PARALLELPERIOD() as well. It's just that the option for that is 1 year later rather than 1 year earlier
upvoted 8 times
539d541
6 months, 3 weeks ago
I think the answer D is 1 quarter later, not earlier as required. Other than that I think you're correct that it would have been ok too
upvoted 1 times
...
LeeTheRed
1 year, 3 months ago
Good observation!
upvoted 1 times
...
...
5bf040d
Most Recent 3 days, 4 hours ago
Selected Answer: A
The correct answer is A because the question mentioned previous quarter, so that, -1 Parallelperiod will work but if it would have 1 instead of -1 CALCULATE ( [Total Sales], PARALLELPERIOD (Date[Date], -1, QUARTER ) )
upvoted 1 times
...
jaume
3 months, 3 weeks ago
Selected Answer: A
B. QTD would return "Quarter To Date" result not previous year C. Again it's about QTD D. if you doubt about the PARALLELPERIOD, note the step is 1 not -1 so it would be not the previous quarter but next one A. with DATADD function using a negative (-1) step, we are referring to the previous quarter
upvoted 2 times
...
rcaliandro
7 months ago
Selected Answer: A
A - CALCULATE ( [Total Sales], DATEADD (Date[Date], -1, QUARTER ) )
upvoted 2 times
...
shahrzadkhb
9 months ago
The answer is correct.
upvoted 1 times
...
0e18c76
10 months, 1 week ago
Totaly right. For this kind of situation, using DATEADD is the best approach. It is dynamic.
upvoted 1 times
...
Abhi_1526
1 year ago
Selected Answer: A
-1 so A
upvoted 3 times
...
Dani_eL
1 year ago
Selected Answer: A
DATEADD ( from date, direction(before/after), interval (in days, months, quarters, years) )
upvoted 2 times
...
TestSavvySage123
1 year, 3 months ago
Option A is correct Here is chatgpt solution::--Previous Quarter = CALCULATE ( [Total Sales], DATEADD ( Date[Date], -1, QUARTER ) )
upvoted 1 times
...
Mal42
1 year, 4 months ago
Selected Answer: A
Given answer is right
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago