How to Use an Excel Slicer to Filter Tasks by Person and Time
Question details
The user needs to transform a complex schedule into a normalized table format in order to filter tasks by person and time using an Excel slicer.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Managing and analyzing a team schedule with multiple names, times, and task values that cannot be easily filtered in its current format.
- Observed behavior
- The current schedule format is a matrix that is not suitable for direct slicer filtering. It requires restructuring using Power Query before a PivotTable and slicer can be effectively applied.
Ensure your schedule data is formatted as an official Excel Table (press Ctrl+T) and contains clear headers for names and times before importing it into Power Query.
Unpivot Data with Power Query and Apply a Task Slicer
Use Power Query to normalize your wide schedule data into a flat list, allowing you to easily summarize and filter it using a PivotTable and slicer.
To effectively filter tasks by person and time, a matrix-style schedule must first be flattened into three distinct columns: Name, Time, and Task. Power Query handles this transformation seamlessly using the 'Unpivot' feature.
Select any cell inside your schedule table, navigate to the 'Data' tab on the Excel ribbon, and click 'From Table/Range' to open the Power Query Editor.
In the Power Query window, click on the 'Name' column header to select it. Right-click the header and choose 'Unpivot Other Columns'. This instantly transforms your matrix into a flat list.
Double-click the newly generated 'Attribute' column header and rename it to 'Time'. Double-click the 'Value' column header and rename it to 'Task'.
Click the 'Close & Load' button on the Home tab of the Power Query Editor. Your restructured data will appear in a new worksheet.
Select the new data, go to the 'Insert' tab, and click 'PivotTable'. In the PivotTable Fields pane, drag 'Name' and 'Time' into the Rows area. Finally, go to the 'PivotTable Analyze' tab, click 'Insert Slicer', and check the box for 'Task' to start filtering.

Filter and Analyze Data Seamlessly in WPS Spreadsheet
WPS Spreadsheet provides robust data management capabilities, including powerful PivotTables and Slicers. You can easily flatten your schedules and apply dynamic filters without slowing down your workflow.
- 1. Open your workbook: Launch WPS Spreadsheet and open your schedule workbook.
- 2. Format your flat data: Ensure your schedule is organized with distinct columns for 'Name', 'Time', and 'Task'.
- 3. Insert a PivotTable: Highlight your data table, navigate to the 'Insert' tab, and select 'PivotTable'.
- 4. Arrange your rows: In the PivotTable field list, drag the 'Name' and 'Time' fields into the 'Rows' area to structure your schedule.
- 5. Add the Task Slicer: Click anywhere inside the PivotTable, go to the 'Options' tab on the ribbon, and click 'Insert Slicer'. Select 'Task' to instantly filter your schedule.

Frequently Asked Questions
What does 'Unpivot' mean in Power Query?
Unpivoting is the process of transforming data from a wide matrix format (where times might be spread across multiple columns) into a long, flat format consisting of discrete rows (e.g., Name, Time, and Task). This normalized structure is essential for summarizing and filtering data using PivotTables.
Why is the 'Insert Slicer' option grayed out in my spreadsheet?
The 'Insert Slicer' option is typically disabled if your file is saved in an older format like .xls, or if you haven't clicked inside a valid Table or PivotTable. Ensure your document is saved as a modern Excel Workbook (.xlsx) and that your active cell is inside the PivotTable.
Can I connect a single Task slicer to multiple PivotTables?
Yes. If you have multiple PivotTables built from the same data source, right-click the slicer, select 'Report Connections' (or 'PivotTable Connections'), and check the boxes for all the PivotTables you want to control. This is ideal for building unified, interactive dashboards.




