Sub topic 9
Slice by Date and Period
Assume you already have a clean Data sheet, a date column named Order Date, at least one pivot table, and a chart based on that pivot table. You also need basic knowledge of cells, ranges, and simple formulas.
A date slicer lets a viewer limit the dashboard to a time window without editing the source table. For example, a viewer can show orders from January through March 2026, or only orders after a chosen date.
Make sure the date column contains real dates
A slicer can compare real date values. It may not correctly compare dates stored as plain text.
A real date is a number displayed with a date format. You can test a value with a formula such as:
=ISNUMBER(B2)TRUE usually means that Google Sheets recognizes B2 as a date or another number. If the result is FALSE, convert the value before using it for date filtering.
For example, if B2 contains text in the form 2026-01-05, use:
=DATEVALUE(B2)Copy the result, then use Edit > Paste special > Values only to replace the original date column if needed. Format the column with Format > Number > Date.
Add a date slicer
- Select the source range or a cell inside the source table.
- Choose Data > Add a slicer.
- In the slicer settings, choose the source range that contains
Order Date. - Set Column to
Order Date. - Open the slicer menu and choose a filter condition.
- Select a condition such as Date is between, Date is after, or Date is before.
- Enter the date or dates for the period you want to show.
The slicer filters the rows in its selected data range. Pivot tables and charts that use that range can respond to the slicer. A chart based on a different range will not change.
Create a month or quarter period
A date slicer is useful for a continuous range. A viewer may instead need a period label such as 2026-01 or Q1 2026. Add helper columns to the source table when those labels are useful filter choices.
If B2 contains the order date, create a month-start column with:
=DATE(YEAR(B2), MONTH(B2), 1)Create a quarter label with:
="Q"&ROUNDUP(MONTH(B2)/3, 0)&" "&YEAR(B2)Fill the formulas down. Format the month-start column as yyyy-mm. You can then create a slicer using either helper column.
| Filtering need | Best slicer column | Example condition |
|---|---|---|
| Any continuous date window | Order Date | Date is between |
| A calendar month | Month Start | Is 2026-01-01 |
| A reporting quarter | Quarter | Is Q1 2026 |
A month-start date is usually safer than a text label because it remains a date value and sorts chronologically. Quarter labels may sort incorrectly across years unless the year is included.
Check the time boundary
“Between” filters can include or exclude boundary dates depending on the selected condition. Test the first and last day of a period with a small sample. If your data includes timestamps, a value such as 2026-03-31 15:30 may not behave like a date-only value.
For timestamp data, create a date-only helper column:
=INT(B2)Format the result as a date, then use that column for the slicer.
Exercise
A slicer set to show January 2026 produces no rows. The visible dates look like 2026-01-05, but =ISNUMBER(B2) returns FALSE. What should you check first?
Show answer
Check whether the dates are stored as text. Convert them with DATEVALUE or re-enter them as real dates, then format the column as Date and test the slicer again.