Skip to content

What Is Pivot?

A Pivot Table is a data summarization tool that automatically sorts, counts, totals, or averages data stored in one table and displays the results in a second, organized table.

In RevoGrid, the Pivot plugin takes a “flat” list of records and transforms it into a multidimensional view where you can see relationships between different data points at a glance.

The Transformation: From Facts to Insights

Section titled “The Transformation: From Facts to Insights”

Imagine you have a list of sales transactions. Each row represents a single event:

DateRegionCategorySales
2024-01-01NorthElectronics$500
2024-01-02SouthElectronics$300
2024-01-03NorthFurniture$1,200
2024-01-04NorthElectronics$450

This “flat” view is great for data entry, but hard to read for analysis. A Pivot transforms it by choosing axes:

  1. Row Axis: Grouping data vertically (e.g., by Region).
  2. Column Axis: Grouping data horizontally (e.g., by Category).
  3. Values: The numbers you want to calculate (e.g., Sum of Sales).
RegionElectronicsFurnitureGrand Total
North$950$1,200$2,150
South$300$0$300
Grand Total$1,250$1,200$2,450

To work with Pivot, you need to think in terms of three primary axes:

Rows define the vertical structure. If you add multiple fields to rows (e.g., ['Region', 'Manager']), Pivot creates a nested hierarchy. Users can “drill down” from Region to see the individual Managers within that region.

Columns define the horizontal structure. Unlike normal grid columns, Pivot columns are often generated based on the data. If you put Quarter in columns, Pivot will automatically create a column for every unique quarter found in your dataset.

Values are the “meat” of the table. They are the numeric fields that get crunched using Aggregators (like sum, avg, min, max, or count). Every cell in a Pivot table is the result of an aggregation of all raw records that match that specific row and column intersection.

  • Massive Data: RevoGrid’s virtualization allows you to pivot millions of rows without crashing the browser.
  • Dynamic Discovery: Users can drag and drop fields to explore data from different angles.
  • Enterprise Features: Subtotals, Grand Totals, and Drill-down are built-in and optimized.
  • Server-Side Scaling: For datasets too large for the browser, RevoGrid can connect to an OLAP Backend to perform the heavy lifting on the server while maintaining a smooth UI.

To understand how these concepts map to actual code, read about Dimensions or explore the Mental Model in the Overview.