exam questions

Exam PL-300 All Questions

View all questions & answers for the PL-300 exam

Exam PL-300 topic 2 question 43 discussion

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

HOTSPOT -
You have a Power BI report that contains a measure named Total Sales.
You need to create a new measure that will return the sum of Total Sales for a year up to a selected date.
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.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: TOTALYTD -
TOTALYTD evaluates the specified expression over the interval which begins on the first day of the year and ends with the last date in the specified date column after applying specified filters.
Syntax: TOTALYTD (
<Expression>,
<Dates>
[, <Filter>]
[, <YearEndDate>]
Expression - The expression to be evaluated.
Dates - The name of a column containing dates or a one column table containing dates.
Example:
TOTALYTD ( -- 2007-01-01 : 2007-05-12
[Sales Amount],
'Date'[Date]
Box 2: 'Date'[Date]
Reference:
https://dax.guide/totalytd/

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
lukelin08
Highly Voted 2 years, 6 months ago
Answer is correct
upvoted 51 times
LeeTheRed
1 year, 4 months ago
Not quite, the last closing bracket should be at the end.
upvoted 2 times
...
...
Orkhannnn
Highly Voted 2 years, 5 months ago
Answer is correct.
upvoted 15 times
...
jaume
Most Recent 5 months ago
Position of the second parenthesis (closin parenthesis) IN FRONT of the second argument is totally misleading; since TOTALYTD function requires two mandatory arguments, you can assume this is an error and this parenthesis should be AFTER the second argument.... TOTALYTD and Date[Date] should work in this scenario.
upvoted 2 times
...
rcaliandro
8 months ago
Answer is correct TOTALYTD, 'Date'[Date]
upvoted 2 times
...
JudT
1 year ago
Correct! Could Be: CALCULATE( [Total Revenue], TOTALYTD('Date'[Date]) )
upvoted 2 times
...
Igetmyrole
1 year, 7 months ago
TOTALYTD `Date`[Date] TOTALYTD: is being used to calculate the sum of "Total Sales" year-to-date up to the selected date. `Date`[Date]: provides the date context for the calculation.
upvoted 12 times
...
Shalaleh
1 year, 11 months ago
Answer is correct.
upvoted 1 times
...
LambdaBld
2 years ago
Why can't we use LASTDATE instead of date ?
upvoted 4 times
ajvela
1 year, 12 months ago
because the requirement is the sum of Total Sales for a year up to a selected date.
upvoted 2 times
Nemesizz
1 year, 11 months ago
So including the most recent year in the data right?
upvoted 1 times
...
...
...
RazaTheLegend
2 years ago
Answer is correct
upvoted 2 times
...
vysh07
2 years, 1 month ago
can someone explain why can't we use SUM function?
upvoted 1 times
814145c
6 days, 9 hours ago
SUM is syntactically incorrect, it requires just one column. SUM(<Column>)
upvoted 1 times
...
1sourabhpatel1
2 years, 1 month ago
it already using the measure
upvoted 5 times
...
...
jsking
2 years, 3 months ago
Answer is correct
upvoted 2 times
...
Patrick666
2 years, 4 months ago
TotalYTD; 'Date'[date]
upvoted 4 times
...
iccent2
2 years, 4 months ago
Answer is Correct!
upvoted 3 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