OGE logoOGE

Pivot Analytics & Export

Measures can be shown as percentages of a total or as running sums, big matrices stay smooth with two-axis virtual scrolling, the whole layout persists under a stateKey, and the visible matrix exports to CSV or a typed Excel workbook with merged multi-level headers.

display modes virtual scrolling stateKey CSV / Excel
50.000 rows percent of column running total virtual
Right-click a header for sorting and filters; the second measure shows each column's share of its grand total.
FiltersDrag fields between the areas
Rows Region Country
Columns Year
Values Amount % of Column
2022
2023
2024
2025
Grand Total
₺26.216.00040.0%
₺13.139.00020.0%
₺26.225.50040.0%
₺13.115.00020.0%
₺78.695.50030.0%
₺13.118.50020.0%
₺26.232.00040.0%
₺13.085.00020.0%
₺26.241.50040.0%
₺78.677.00030.0%
₺26.191.50040.0%
₺26.276.00040.0%
₺26.239.00040.0%
₺26.266.50040.0%
₺104.973.00040.0%
Grand Total
₺65.526.000100.0%
₺65.647.000100.0%
₺65.549.500100.0%
₺65.623.000100.0%
₺262.345.500100.0%
stateKey exportCsv export-excel entry
Re-pivot or expand something, reload the page — the layout comes back.
FiltersDrag fields between the areas
Rows Region City
Columns Year
Values Amount Units
2022
2023
2024
2025
Grand Total
₺2.574.5005500
₺1.320.7501500
₺2.574.5005500
₺1.320.2504000
₺7.790.00016500
₺1.294.0002250
₺2.644.5007000
₺1.284.0004750
₺2.644.5007000
₺7.867.00021000
₺2.573.0003500
₺2.647.0004000
₺2.582.5003500
₺2.647.0004000
₺10.449.50015000
Grand Total
₺6.441.50011250
₺6.612.25012500
₺6.441.00013750
₺6.611.75015000
₺26.106.50052500

Notes

  • summaryDisplayMode: percent-of row/column/grand totals and variations against the previous column; runningTotal accumulates along an axis and resets per group.
  • [virtualScrolling]="true" windows both axes — only the visible headers and cells hit the DOM, wherever you scroll.
  • stateKey saves field layout, expansion and the panel state through the same storage token the data grid uses (OGE_STATE_STORAGE); state() / applyState() give you the snapshot programmatically.
  • getCsv() / exportCsv() flatten exactly what is on screen; @oge-ui/pivot/export-excel adds buildPivotWorkbook + exportPivotToExcel and stays out of your main bundle.