Skip to content

Home / Statistical Tools / Analysis Tools / Pareto / Examples / GroupBy

GroupBy

Use GroupBy to create separate Pareto charts for each segment in your data, making it easy to compare defect patterns across production lines, shifts, or time periods.

Goal

Create separate Pareto charts for each production shift, comparing which defects are most common on each shift.

Sample Data

Download Pareto_GroupBy.xlsx

Excel Protected View

When you open downloaded files, Excel displays a Protected View warning. You must click Enable Editing before you can use Quantum XL with the file.

Excel Protected View warning

Alternatively, you can copy the sample data from the table below and paste it directly into a new Excel workbook.

Sample data in Excel showing Defect Type and Shift columns

Defect Type Shift
Scratch Day
Dent Day
Scratch Night
Crack Day
Scratch Day
Dent Night
Crack Night
Chip Day
Scratch Night
Dent Day

Each row represents one defect observation tagged with the shift when it occurred.

Steps

  1. Launch the analysis

    From the Excel ribbon, select QXL Stat Tools → Analysis Tools → Pareto.

  2. Select your data

    Select cells A1:B11 (the header row plus all 10 data rows).

    Data selection showing cells A1:B11

  3. Configure the analysis

    In the Pareto Analysis dialog:

    • Select the GroupBy radio button (instead of Excel)
    • Data Columns: Uncheck "Shift"
    • GroupBy: Move "Shift" to the GroupBy Order list

    Click Finish to generate the charts.

    Pareto Analysis dialog with GroupBy configured

How GroupBy Works

When you add a GroupBy column, Quantum XL creates a separate chart for every unique value in that column. In this example, the "Shift" column has two unique values—"Day" and "Night"—so we get two charts.

Result

Quantum XL creates two Pareto charts, one for each shift:

Day Shift:

Pareto chart for Day shift

Night Shift:

Pareto chart for Night shift

Common Vertical Axis

Enable All Charts Share Common Vertical Axis Scale in the Pareto Options tab to make visual comparisons between charts easier.