Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
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 (?) , you can switch to a simple comment.
Switch to a voting comment New
tranquanghuy2111
Highly Voted 1 year, 1 month 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 19 times
ZillowGosia
1 year ago
A is correct.
upvoted 6 times
...
...
Koalakueh
Highly Voted 1 year 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 7 times
539d541
2 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
11 months, 2 weeks ago
Good observation!
upvoted 1 times
...
...
jaume
Most Recent 1 day, 11 hours 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 1 times
...
rcaliandro
3 months ago
Selected Answer: A
A - CALCULATE ( [Total Sales], DATEADD (Date[Date], -1, QUARTER ) )
upvoted 2 times
...
shahrzadkhb
5 months, 1 week ago
The answer is correct.
upvoted 1 times
...
0e18c76
6 months, 2 weeks ago
Totaly right. For this kind of situation, using DATEADD is the best approach. It is dynamic.
upvoted 1 times
...
Abhi_1526
8 months, 3 weeks ago
Selected Answer: A
-1 so A
upvoted 3 times
...
Dani_eL
9 months ago
Selected Answer: A
DATEADD ( from date, direction(before/after), interval (in days, months, quarters, years) )
upvoted 2 times
...
TestSavvySage123
1 year 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 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 ...