PL-300 Visualize and analyze the data Practice Question
You need to create a visual that displays the sales trend over the last 12 complete months. Which approach should you use?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Use a relative date filter on the date field set to 'Last 12 months'.
A relative date filter on the date field set to 'Last 12 months' dynamically restricts the visual to the trailing 12 complete months, automatically updating as the data refreshes. This is the intended Power BI feature for time-relative filtering and works directly on the date column without extra modeling. Option A's calculated column flag would be static and require manual maintenance, and it would not automatically roll forward. Option B's slicer is a manual selection control, not a relative date filter, so it won't reliably show the last 12 months. Option C's measure could compute a 12-month total, but it would not by itself filter the visual to show the monthly trend across those 12 months.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Create a calculated column that flags last 12 months.
Why it's wrong here
A calculated column that flags the last 12 months is generated during data load or refresh, so its values become static once computed. As time progresses, the column's flagging logic does not automatically shift to reflect the new current date, causing outdated results unless the dataset is refreshed. Moreover, even after a refresh, the column only marks rows based on the refresh-time boundary, whereas a relative date filter dynamically recalculates the window at query time.
- ✗
Add a slicer for the last 12 months.
Why it's wrong here
A slicer for the last 12 months only adds a visual control that lets users manually choose a date range, but it does not automatically filter the report to the last 12 months. The requirement demands that the visual itself displays the sales trend for the trailing year without any user interaction, so relying on a slicer leaves the visual unfiltered until a user explicitly selects the option. Additionally, a slicer typically requires the user to know the specific date range or use a preset, which does not guarantee a consistent, dynamic last-12-month view.
- ✗
Write a measure that calculates sales for last 12 months and use it in a visual.
Why it's wrong here
Writing a measure that calculates sales for the last 12 months provides a single scalar value, such as total sales, but it does not constrain the rows displayed in a trend visual. A line or column chart needs each data point (e.g., each month) to be filtered to the last 12 months, and a measure has no effect on which dates are included in the visual's axis. Without a separate date filter, the visual will still show all dates in the underlying table, and the measure will just return a value for the entire period or be evaluated in the visual's context, not automatically restrict the trend to the trailing year.
- ✓
Use a relative date filter on the date field set to 'Last 12 months'.
Why this is correct
A relative date filter on the date field set to 'Last 12 months' directly applies a dynamic query-time filter that includes exactly the trailing 12 complete months (or periods) relative to the current date. This filter automatically shifts as time advances, so the visual always reflects the most recent 12 months without requiring manual updates or user interaction. It is the correct approach because it operates at the filter level, ensuring every visual using that date field is restricted to the desired window while still allowing the underlying measures to calculate correctly within that context.
Go deeper
Related to this question
About these practice questions
One of 524 original PL-300 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This PL-300 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PL-300 exam.