Chart & Visualization Issues

Create an Excel Pareto Chart with a Customer Slicer

John WilsonJohn Wilson Nov 14, 2026 870 views

Question details

Create a Pareto chart that tracks complaint categories and can be filtered by customer or displayed for the entire company.

Create a Dynamic Excel Pareto Chart with a Customer Slicer
Product
Microsoft Excel
Device & OS
not provided
Scenario
Complaint data is stored across multiple columns, and new customer records need to be included as they are added.
Observed behavior
The chart needs complaint totals, a running percentage, and an 80% threshold while retaining its chart type and formatting when the customer filter changes.
Before you start

Ensure each source row identifies a customer and that the complaint columns use consistent values or indicators. Use an Excel edition that supports Power Query, the Data Model, and slicers; available features vary by version.

Solution 1Recommended

Build a Data Model PivotTable and a linked Pareto combo chart

Use this approach to refresh new records and filter the same formatted chart by customer.

The example measures below assume that the normalized table is named Complaints and has a Complaint column containing one complaint category per row. If your source columns are category names with yes/no or numeric indicators, use the unpivoted Attribute as the category and filter the Value column to retain only reported complaints.

Use a regular combo chart linked to the PivotTable rather than relying on a PivotChart combo type, which may not be supported. The slicer filters the PivotTable, and the linked chart retains its chart type and formatting.

1
Create a source table

Select the source data and choose Insert > Table. Confirm that the customer field and all complaint columns are included.

2
Unpivot complaint columns

Select a cell in the table and choose Data > From Table/Range. In Power Query, select the complaint columns and choose Transform > Unpivot Columns. Remove blank or non-complaint values, rename the category field Complaint, and retain the customer field.

3
Load the Data Model

Choose Home > Close & Load To, select Only Create Connection, and check Add this data to the Data Model. Name the resulting query Complaints.

4
Create the measures

In Power Pivot > Manage, select the Complaints table and create these measures in the calculation area: Complaint Total := COUNTROWS(Complaints); Running % := VAR CurrentCategory = SELECTEDVALUE(Complaints[Complaint]) VAR CurrentTotal = [Complaint Total] VAR Categories = ALLSELECTED(Complaints[Complaint]) VAR RunningTotal = SUMX(FILTER(Categories, [Complaint Total] > CurrentTotal || ([Complaint Total] = CurrentTotal && Complaints[Complaint] <= CurrentCategory)), [Complaint Total]) RETURN DIVIDE(RunningTotal, CALCULATE([Complaint Total], Categories)). Format Running % as a percentage. This calculation breaks equal-count ties alphabetically.

5
Build and sort the PivotTable

Choose Insert > PivotTable and use the Data Model. Put Complaint in Rows and both measures in Values. Sort complaint totals from largest to smallest; for equal totals, sort complaint names alphabetically to match the running-percentage calculation. Turn off grand totals for the chart source.

6
Add the customer slicer

Select the PivotTable, choose PivotTable Analyze > Insert Slicer, and select the customer field. Click a customer in the slicer to filter, or use the slicer's Clear Filter button to show the entire company.

7
Create the combo chart

Create a helper range linked to the PivotTable's complaint labels, totals, and running percentages. Add a fourth series containing 80% for each populated category. Select the helper range and choose Insert > Combo Chart: set complaint totals to clustered columns and both percentage series to lines on the secondary axis. Format the secondary axis from 0% to 100%.

8
Allow for changes and refresh

Extend the helper range to cover expected categories or use dynamic named ranges for the chart series, excluding blank rows and totals. Add new records inside the source Excel table, then choose Data > Refresh All. Check the sort order and chart range after a refresh.

Build a Data Model PivotTable and a linked Pareto combo chart
Keep category ordering consistent: The running percentage assumes descending complaint totals with alphabetical ordering for ties. Verify the order after filtering or refreshing, especially when categories have equal totals.
Free Microsoft Office alternative

Work with complaint spreadsheets in WPS Office

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for Microsoft Excel files. Open existing workbooks and continue everyday spreadsheet work with less disruption when moving between applications.

Open and edit Microsoft Excel XLSX and XLS filesUse charts and filters to explore complaint dataWork in a familiar, easy-to-use spreadsheet interfaceAccess a free, lightweight Office alternative
microsoft office alternative - wps office

Frequently Asked Questions

How do I show all customers again?

Click the Clear Filter icon on the customer slicer. The PivotTable and its linked chart will return to the full company view.

How do new complaint records appear in the chart?

Add the records inside the source Excel table, then choose Data > Refresh All. Ensure the chart's helper range or dynamic named ranges cover any new complaint categories.

Why use a regular chart instead of a PivotChart?

A regular combo chart can display complaint totals as columns and percentage series as lines on a secondary axis. PivotChart combo chart support may be limited, so linking a regular chart to the PivotTable helps preserve the intended layout.

What does the 80% line show?

It is a constant reference line on the secondary percentage axis. Compare it with the running-percentage line to see where the cumulative share reaches 80%.

Why does the running percentage look wrong after filtering?

Check that complaint categories are sorted by total from largest to smallest and alphabetically for ties. Also confirm that the chart is linked to the filtered PivotTable values and excludes grand totals.