Pankaj Shah web agency director in London with over 20 years of experience in web design and project management

I hope you enjoy reading our blog posts.

If you want DCP to build you an awesome website, click here.

Pivot Table – Libre Office Calc Tutorial

Last Updated: 13/07/2026

If you’re working with rows of raw sales, customer, or transaction data and feel like you’re drowning in numbers, a pivot table is the tool that turns that mess into clear, actionable insight – in just a few clicks. In this tutorial, we’ll walk through exactly how to build pivot tables in LibreOffice Calc, using a simple weekly sales dataset as our example. The same logic applies almost identically in OpenOffice Calc and Microsoft Excel.

What You'll Need

To follow along, you just need a spreadsheet with consistent columns and rows of data. In this example, the dataset includes:

  • Date – the day the transaction occurred
  • Seller ID – the sales agent who made the sale
  • Customer ID – a unique identifier for each customer
  • Transaction ID – a unique ID for each individual sale
  • Product ID – the product that was sold
  • Product Price – the value of that product

This sample data covers one week (the 1st through the 7th) of sales activity across multiple sellers, customers, and products.

Step 1: Prepare and Label Your Spreadsheet

Before creating any pivot tables, it helps to:

  1. Open a blank spreadsheet in LibreOffice Calc and paste in your raw data.
  2. Rename the default “Sheet1” tab to something meaningful, like “Weekly Sales” – this keeps your workbook organised as you add more pivot tables later.

Step 2: Create Your First Pivot Table (Daily Sales Totals)

  1. Click the small blank box at the top-left corner of the spreadsheet (between the row and column headers) to select all your data at once.
  2. Go to Data > Pivot Table > Create.
  3. Confirm the selection range and click OK.
  4. In the Pivot Table Layout window, delete the default “Data” field.
  5. Drag Date into the Row Fields area.
  6. Drag Product Price into the Data Fields area, making sure it’s set to Sum (double-click it to change the function if needed).
  7. Click OK, then OK again.
This generates a new sheet showing the total sales for each date, plus a grand total for the week. Rename this new tab something like “Daily Sales.”

Step 3: Create a Pivot Table by Seller

Repeat the same process, but this time:

  1. Select the full “Weekly Sales” dataset again.
  2. Go to Data > Pivot Table > Create.
  3. Drag Seller ID into Row Fields and Product Price into Data Fields (as Sum).
  4. Click OK.

The result shows total sales per seller for the entire week, along with the grand total. Label this sheet “Sellers’ Total Sales.”

Step 4: Build a Detailed, Multi-Level Pivot Table

For a much richer breakdown, create another pivot table and this time drag in all of the following into the Row Fields:

  • Date
  • Seller ID
  • Customer ID
  • Transaction ID
  • Product ID
  • Product Price (as Sum, in Data Fields)

This produces a detailed hierarchy showing, for each day, which seller sold to which customer, under which transaction ID, which products were involved, and the value of each sale.

The real power move: filtering

Once this detailed pivot table is built, you can click the drop-down filter on any field – like Seller ID – and select just one value (e.g., Seller ID #1). The table instantly recalculates to show only that seller’s transactions, days worked, and total sales – matching the totals from your simpler “Sellers’ Total Sales” table.

You can do the same for:

  • Customer ID – see exactly what a specific customer purchased, on which days, and from which sellers.
  • Product ID – see how many times a specific product sold, on which days, and to whom.

This lets you slice the exact same dataset from countless angles without rebuilding anything manually.

Step 5: Create a Pivot Table by Product

One more useful view: drag Product ID into Row Fields and Product Price into Data Fields (Sum). This shows you total sales per product, making it easy to spot your best- and worst-performing items at a glance.

Step 6: Visualise Your Data with Charts

Pivot tables aren’t just for numbers – you can turn any of them into a chart instantly:

  1. Select your pivot table data.
  2. Go to Insert > Chart.
  3. Choose a chart type – column charts work well for comparing sellers or daily totals, while pie charts are great for showing proportional breakdowns (e.g., which seller contributed the biggest “slice” of total sales).

Why Pivot Tables Matter

Without a pivot table, extracting this same level of insight from raw data would mean manually filtering and calculating totals row by row – a slow, error-prone process. With a pivot table, you get:

  • Instant totals by day, seller, customer, or product
  • One-click filtering to drill into specific segments
  • Visual charts built directly from summarised data
  • A reusable structure you can apply to any consistent dataset – sales, expenses, personal budgets, mortgage payments, you name it

Final Thoughts

Pivot tables are one of the most powerful – and underused – features in LibreOffice Calc. Once you understand the basic drag-and-drop workflow (Row Fields, Data Fields, and filters), you can turn any spreadsheet of raw data into a clear analytical summary in seconds. Start with a simple one-column breakdown, then work your way up to the more advanced multi-field pivot table for deeper insights.

Author

Picture of Pankaj Shah

Pankaj Shah

Pankaj Shah is the founder of DCP Web Designers, an award-winning London-based web design and digital marketing agency. With over 20 years of experience, he specialises in WordPress web design, WooCommerce, SEO and helping businesses build effective online solutions.
Tell Us Your Thoughts

This website (dcpweb.co.uk) uses cookies to improve your browsing experience and help us understand how our site is used. By continuing to browse this website, you agree to our use of cookies.

To learn more about how we collect, use, and protect your data, please read our Privacy Policy.

DCP Web Designers is one of London’s most established web design companies.

Since 2004, we have designed and developed websites for companies across a wide range of industries, from local service businesses to ecommerce brands and professional organisations.

Our focus is on creating websites that not only look professional, but also perform well in search engines, attract the right audience and support long-term business growth.

If you are looking for experienced web designers who understand how to build websites that deliver real results, our team is here to help.

Privacy Policy

Last Updated: 01/07/2024

Different Colour Productions Ltd (“we,” “us,” or “our”) is committed to protecting your privacy. This Privacy Policy outlines our practices concerning the collection, use, and disclosure of personal information when you visit our website or engage with our services. By using our website and services, you consent to the terms outlined in this Privacy Policy.

1. Information We Collect

We collect various types of information to provide and improve our services. The types of information we may collect include:

1.1. Personal Information: This may include your name, email address, phone number, and any other information you provide when you contact us, request information, or subscribe to our newsletter.

1.2. Log Data: When you visit our website, we automatically collect information, such as your IP address, browser type, pages visited, and the time and date of your visit.

1.3. Cookies and Similar Technologies: We use cookies and other tracking technologies to improve your experience on our website. You can adjust your browser settings to reject cookies or be alerted when cookies are being used.

2. How We Use Your Information

We use the collected information for various purposes, including:

2.1. Providing Services: To provide web design and related services you have requested from us.

2.2. Communication: To respond to your inquiries, send updates, and provide customer support.

2.3. Analytics: To analyse and improve our website and services, as well as monitor usage patterns.

3. Information Sharing and Disclosure

We do not sell or rent your personal information to third parties. However, we may share your information with third parties under the following circumstances:

3.1. Service Providers: We may share your information with trusted service providers who help us deliver our services, such as hosting providers, analytics providers, and marketing services.

3.2. Legal Obligations: We may disclose your information when required by law, to comply with legal processes, or to protect our rights, privacy, safety, or property.

4. Your Choices

You have choices regarding your personal information:

4.1. Access and Update: You can access and update your personal information by contacting us.

4.2. Marketing Communications: You can opt out of receiving marketing communications from us by following the unsubscribe instructions in our emails or emailing [email protected]

5. Security

We take appropriate measures to protect your personal information from unauthorised access, disclosure, alteration, or destruction.

6. Links to Other Websites

Our website may contain links to third-party websites. We are not responsible for the privacy practices of these websites. We recommend reviewing their respective privacy policies.

7. Changes to this Privacy Policy

We may update this Privacy Policy from time to time to reflect changes in our practices. Any changes will be posted on this page, and the date at the top will indicate the latest update.

8. Contact Us

If you have any questions or concerns about this Privacy Policy or our practices, please contact us at: [email protected]

By using our website and services, you acknowledge that you have read and agree to this Privacy Policy. Different Colour Productions Ltd is committed to safeguarding your personal information and respecting your privacy rights.

ThreeBestRated Top 3 Website Designers in London 2026 award for DCP Web Designers Certificate