How to Create a Pareto Diagram [80/20 Rule] in LibreOffice Calc

In this LibreOffice tip, youโ€™ll learn to create the famous Pareto chart in Calc.
Warp Terminal

The Pareto Principle, also known as the 80/20 Rule, The Law of the Vital Few and The Principle of Factor Sparsity, illustrates that 80% of effects arise from 20% of the causes โ€“ or in laymanโ€™s terms โ€“ 20% of your actions/activities will account for 80% of your results/outcomes.

Although the original observation is related to economics, it can be widely adopted and used across all aspects of business, economics, mathematics, and processes. In computer science, the Pareto principle can be used in software optimization.

Let me show you how to create a Pareto diagram in LibreOffice spreadsheet tool, i.e. Calc.

Creating Pareto diagram in LibreOffice Calc

Pareto Libreoffice

To be able to create a Pareto diagram, you need these three basic elements:

  • The factors, ranked by the magnitude of their contribution
  • The factors expressed numerically
  • The cumulative-percent-of-total effect of the ranked factors

First, enter the data in a spreadsheet. Now letโ€™s get started!

Step 1: Sort the data

Mark all rows from first to the last and at the Data tab click on the Sort option. At the Sort Criteria tab choose Sort key 1 and change the entry to Number of Errors or whichever name you choose. Make sure to tick Descending and finally OK.

sort data in libreoffice spreadsheet

Step 2: Create the Cumulative Percentage values

To calculate the cumulative percent of a total, you will need one formula for the first cell (C5) and a different formula for cells C6 and below.

Generic formula for the first cell

=amount/total

In the example shown, the formula in C5 is: =B5/$B$15

Generic formula for the remaining cells:

=(amount/total)+previous cell result

In the example shown, the formula in C6 is: =(B6/$B$15)+C5

By dragging the fill handle down, you will get the correct formulas for the remaining cells.

Get Cumulative Percent in LibreOffice

Step 3: Create the Pareto diagram

To create the chart go to Insert tab and then click on the Chart option.

In the upcoming Chart Wizard choose the chart type Column and Line with Number of lines set to 1 and click Next.

Enter chart in LibreOffice spreadsheet Calc

Select the correct data range $A$4:$C$14 by either using your mouse in the data range selector or by entering it manually. Leave the settings Data series in columnsFirst row as labelFirst column as label and click Next.

Enter data range for your chart in LibreOffice

The following Data Series window should have everything filled in correctly, click Next.

Enter data series in the chart in LibreOffice to create Pareto diagram

In the last window enter titles and remove the legend:

  • Title: Pareto chart
  • X axis: Error Type
  • Y axis: Number of Errors
  • Untick Display legend
  • click Finish.
Creating Pareto diagrams in LibreOffic

And this is the result:

Pareto chart in LibreOffice

If the red line appears without any value, select it, then right click > Format Data Series > Align Data Series to Secondary y-Axis > Click OK.

Step 4: Fine tune the chart

The range of the secondary y-axis is set to 0 โ€“ 120 , it needs to be up to 100.

Double click on the secondary y-axis . In the Scale tab, untick Automatic and enter 100 as the maximum value. Then click ok.

Fine tune Pareto chart in LibreOffice

All done!

Finally, Pareto chart in LibreOffice spreadsheet

Conclusion

Using a Pareto chart to analyze problems in a business project allows focusing efforts towards the ones offering the most considerable improvement potential.

This is one of the many real-life scenario where I have used LibreOffice instead of other proprietary office software. I hope to share more LibreOffice tutorials on Itโ€™s FOSS. Meanwhile, you can learn these rather hidden LibreOffice tips.

15 LibreOffice Tips to Get More Out of it
LibreOffice is an excellent office suite. These LibreOffice tips will enable you to use it more effectively.

Which LibreOffice functionality do you use the most? Let us know at the comments below!

About the author
Dimitrios

Dimitrios

Dimitrios is an MSc Mechanical Engineer but a Linux enthusiast in heart. His machines are powered by Arch Linux but curiosity drives him to constantly test other distros. Challenge is part of his per

It's FOSS

Making You a Better Linux User

It's FOSS

Great! Youโ€™ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.