Use an Excel Slicer to Show Separate Location Lines in a Chart
Question details
Show a separate attendance line for each location selected in an Excel slicer.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- An attendance dashboard uses a slicer to select locations such as Facebook and YouTube for a line chart.
- Observed behavior
- Selecting multiple locations combines their attendance values into one line instead of showing a separate line for each location.
Check that the source data identifies the date, location, and attendance value for each record. If locations are stored in separate columns, consider rearranging the data into Date, Location, and Attendance columns for the PivotTable setup below.
Create a PivotChart with Location as the Series Field
Use this setup to give each location its own line and let a slicer filter the visible locations.
A slicer filters existing data; it does not turn a combined total into separate chart series. The PivotChart must use Location as its series field before the slicer can control which location lines appear.
Select the source data, choose Insert > PivotTable, and select where to place the PivotTable.
In the PivotTable Fields pane, drag Date to Rows, Location to Columns, and Attendance to Values. Check the value field settings to make sure attendance is summarized as intended.
Click the PivotTable, choose Insert > PivotChart, and select a line chart. Confirm that the chart shows a separate series for each location.
Click the PivotTable, choose PivotTable Analyze > Insert Slicer, select Location, and click OK.
Use the slicer's Multi-Select button or hold Ctrl while clicking locations such as Facebook and YouTube. The PivotChart should show a separate line for each selected location.

Create Attendance Charts in WPS Spreadsheets
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface. Open compatible Excel workbooks and create attendance charts in WPS Spreadsheets, making it easy to move existing files into your workflow.

Frequently Asked Questions
Why does selecting two locations produce only one line?
The chart is likely plotting a combined attendance total rather than separate location series. In the PivotTable Fields pane, place Location in Columns and Date in Rows so each location becomes a chart series.
Can a slicer create chart series automatically?
No. A slicer filters data already available to the chart. Set up the source data or PivotChart with separate location series first, then use the slicer to filter them.
How do I select more than one location in the slicer?
Click the slicer's Multi-Select button and select the locations you want, or hold Ctrl while clicking multiple slicer items.
What should I check if the slicer does not change my chart?
Select the slicer and open Slicer > Report Connections or PivotTable Connections. Make sure the PivotTable used by the PivotChart is selected, and confirm that the slicer filters the Location field.




