Deep dive into Power BI reporting with the new date picker slicer option (Preview)
Report authors often need date filters that automatically keep reports focused on the most relevant data without requiring ongoing maintenance. The new date picker slicer makes this easier by supporting dynamic relative date ranges that move forward as data refreshes, while still allowing report viewers to explore different date ranges, individual dates, and custom periods when needed.
Most reports have a date and report viewers want to see the latest data or pick their own date ranges. The date picker style of the slicer visual gives report authors and report viewers options to do it all.
Set up a relative range, such as last 30 days from the last date available. Anchor it on the last date, first date, or today with offset options to do last 30 days, starting 5 days back, if you want. This relative range automatically moves forward as your data refreshes and more data comes in. Publish the report and it’s the default relative range.
Your report viewers remain free to explore beyond what you have set up as the default relative range. They can pick their own relative range or pick their own date range. They can pull up a single calendar to pick the start and end date or even a single date to filter the other visuals. The slider is also available, giving you a quick way to adjust the range. The slider has an improvement too; you can set the start and end then move the whole range back and forth to offset the range manually!
The slicer lets you know what is happening. There are two summaries available. The top summary shows you the date range the data column is filtered to. If a relative range falls outside of the available data, it only shows the dates inside the available data, and an informational tooltip explains the date range is incomplete. The lower summary shows you the relative or manual range you have selected. That way you always know what you entered and what you are seeing.
The functionality is robust and so is the formatting. Choose to show the lower summary or not. Choose to show the slider or not. Choose the styling of the calendar button, the summaries, and slider. The dates themselves also follow the date formatting you have specified for that column, or you can choose a new format going to General > Data format! As the calendar to enter the relative and manual range is an overlay, you can make this powerful slicer take up minimal space on your report, freeing you up to showcase your other visuals.
How to enable the date picker for your report
You can enable Date picker in the Slicer visual via Visual > Slicer settings > Options in the Format pane. This only shows up when you have a date column added to the slicer.
If you don’t see it, be sure to turn on the preview. Go to File > Options and settings > Options > Preview features and select Date picker slicer. During preview, you can create Date picker slicers only in Power BI Desktop. After you publish a report, you can view and edit these slicers in the Power BI service.
Walkthrough: Show the last full month based on the latest date
Many reports bring data in as it comes but when you show the most current month, it shows a sharp decline as the month isn’t complete yet.
Figure: A report showing a sharp drop in the current month because the month is still incomplete, demonstrating why a rolling full-month date range is useful.
Let’s configure the range to show the last 24 full months.
- Select the calendar button to the left of the visual
- Select relative
- Set it so it says, “Date is in the Last 24 Months (Calendar) from Last date offset by 0 Months (Calendar)”
- Select Apply
Figure: The date picker configured to show the last 24 full calendar months from the latest available date, so the report updates automatically as new data arrives.
Now you have a relative range that will move forward automatically when the full month is complete, and you can compare your month’s year over year completely.
Figure: The report now compares complete months year over year, with the slicer summaries showing both the filtered date range and the selected relative range.
The summaries tell you both what dates are showing and the relative range you picked. The calendar icon shifts to the relative calendar icon, and the slider gives you an indication of the portion of the range you are viewing.
When you check the filters on the visuals they show the relative range, not the static range. If I pin this to a dashboard, it continues to show that relative range as new data arrives.
Walkthrough: How to handle date range beyond the values
Let’s look at an example where the date extends into the future. This is common with a date table that is ready for future or forecast data.
Here my units sold stop on April 14th, so there is a sharp decline again for the partial month. The dates extend through mid-July so the relative range is valid but not what I want for this scenario.
Figure: A date table that extends beyond the available sales data can make the relative range include future dates, creating an incomplete comparison period.
You can account for this by using the filter pane and filters on this visual.
- Select the date picker slicer
- Open the Filter pane
- Drag over the Units sold column or measure
- Set filter type to Advanced filter and set show items when the value is not blank, then Apply filter
Figure: Filtering the slicer to dates where units sold is not blank limits the relative range to dates with actual data.
Now the last date adjusts to the last date with units sold and filters the relative range to the last full month with units sold. The visual now shows again full months to compare to.
Walkthrough: Format the slicer to be more compact
This date slicer can be formatted to take up just a single line!
Figure: The date picker slicer can be formatted into a compact single-line control while still giving viewers access to relative and manual date ranges.
- Select the date slicer
- Open the Format pane
- Turn off the slicer header, note this also takes the clear all button off the visual so be sure to add a clear all slicers button.
- Turn off the slider
- Expand Text and turn off Summary
- Expand Date Range and change font size to 18.
- Expand Button and turn off Border, expand icon set it to Blue and 30 size
- Go to Insert ribbon and choose Buttons dropdown and “Clear all slicers”, then change it to use icon instead of text.
- Position the slicer and button above the visual to have a minimal date picker experience.
Figure: The date picker slicer can be formatted into a compact single-line control showing the selected range and can be utilized with the clear all slicers button to offer a quick way to clear selections.
Selecting the calendar button on the right lets you pick a relative or manual range for your slicer without taking up a lot of space.
Walkthrough: The report viewer can use the full functionality
Report viewers get the most out of this date slicer. They can pick their own relative range, choose a manual range, a single date, or clear the slicer easily.
- Pick a different relative range, then reset back to the published relative range when I want
Figure: Report viewers can change the published default by choosing their own relative range.
- Pick a manual range from the calendar
Figure: Report viewers can change the published default by choosing their own manual range.
- Pick a single date by selecting the same date twice.Figure: Report viewers can change the published default by choosing their own single date.
- Use the slider to quickly adjust the range.
Figure: Report viewers can change the published default by choosing their own range using the slider.
If the report author leaves the Filter pane visible, viewers can also modify or clear filters on the slicer itself, such as removing the "is not blank" restriction added earlier.
Once they are done, they can reset the filters at the top of the page. If you find they would prefer it to reset automatically each time the report loads, you can also toggle on not keeping viewer filters persisted.
In the web this can be enabled in reading view, File > Settings.
Figure: Viewer filter persistence controls whether report consumers return to their previous slicer choices or start from the report’s default settings, can be turned on in in the web report editing experience.
And in Desktop it can be found in the Options dialog in current file report settings.
Figure: Viewer filter persistence controls whether report consumers return to their previous slicer choices or start from the report’s default settings, can be turned on in Desktop via the Options dialog.
Comments
Post a Comment
Hi User,
Thanks for visiting My Blog and please provide your valuable feedback and subscribe for more updates. Please don't post any spam content or comments.
Thank You