Power BI lesson: date slicers
Original diagram created for this blog.
What a date slicer does
A date slicer lets a reader choose a time range. Use Between for a start and end, Before for an upper limit, or After for a lower limit.
Create one
- Insert a Slicer and add the Date field.
- Select Between from the slicer type.
- Choose dates and watch the cards and charts update.
- Rename the page so the time period is clear.
Practice
Filter SalesPractice to one quarter, record Total Sales, then select the full year and explain why the value changes.
Worked example: January versus February
Import the SalesPractice CSV. It has two January rows worth 1200 and 400, and two February rows worth 900 and 1600. Confirm that the Date column has the Date type. Put Amount in a Card as Sum, then add a slicer using the Date column itself, not the Date hierarchy.
- Choose the slicer's Between setting and enter 1 January 2026 through 31 January 2026. Expected total: 1600.
- Move the range to 1 February through 28 February. Expected total: 2500.
- Clear the range. The full dataset totals 4100.
If Between is unavailable, check that you added a single Date column rather than a hierarchy or text column. Label the filter Choose sales dates so readers know what it controls. For date types and sorting, review the dates lesson.
Return to the Power BI hub · Microsoft slicer documentation
No comments:
Post a Comment
Please do not enter any spam link in the comment box.