Chart & Visualization Issues

Use an Excel Slicer to Show Separate Location Lines in a Chart

John WilsonJohn Wilson Nov 18, 2026 868 views

Question details

Show a separate attendance line for each location selected in an Excel slicer.

Use an Excel Slicer to Show Separate Location Lines in a Chart
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.
Before you start

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.

Solution 1Recommended

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.

1
Create a PivotTable

Select the source data, choose Insert > PivotTable, and select where to place the PivotTable.

2
Arrange the fields

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.

3
Insert a line PivotChart

Click the PivotTable, choose Insert > PivotChart, and select a line chart. Confirm that the chart shows a separate series for each location.

4
Add the location slicer

Click the PivotTable, choose PivotTable Analyze > Insert Slicer, select Location, and click OK.

5
Select multiple locations

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 a PivotChart with Location as the Series Field
Check the slicer connection: If an existing slicer does not affect the chart, select the slicer and open Slicer > Report Connections or PivotTable Connections. Select the PivotTable that supplies the chart.
Free Microsoft Office alternative

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.

Create line charts to compare attendance across locations.Open and edit Microsoft Excel XLSX and XLS files.Use a familiar spreadsheet interface for an easier transition.Work with a free, lightweight office suite.
microsoft office alternative - wps office

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.