PL-300 • Practice Test 27
Free PL-300 practice test — 15 questions with explanations. Set 27. No signup required.
You have a measure as shown in the exhibit. The sales amount is not accumulating correctly; instead, it shows the total sales for the selected date only. What is the problem?
Refer to the exhibit.
```dax
Total Sales =
VAR SelectedDate = MAX('Date'[Date])
VAR SalesToDate =
CALCULATE(
SUM('Sales'[Amount]),
'Date'[Date] <= SelectedDate,
ALL('Date')
)
RETURN
SalesToDate
```