The TOTALYTD function in DAX is specifically designed to calculate the total for the year-to-date period. It takes a column containing dates and a measure to aggregate over that period.
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.