Solid pivot table

Pivot mode with row and grand totals for Solid, inside the same grid your users already know.

Grid Pro

v1 launch

$349

Per developer, paid once, lifetime updates

A working starting point

npm install @birchui/solid @birchui/core @birchui/grid-pro
Show pivot-table.jsx
pivot-table.jsx
import { Show, createSignal } from 'solid-js';
import { BirchGrid } from '@birchui/solid';
import { PivotModule } from '@birchui/grid-pro';

const sales = [
  { id: 'SO-10421', region: 'Europe', country: 'France', year: 2026, revenue: 1890.5 },
  { id: 'SO-10422', region: 'Europe', country: 'Germany', year: 2025, revenue: 459 },
  { id: 'SO-10423', region: 'North America', country: 'Canada', year: 2026, revenue: 712.25 },
];

const columns = [
  { field: 'region', header: 'Region' },
  { field: 'year', header: 'Year', type: 'number' },
  { field: 'revenue', header: 'Revenue', type: 'number' },
];
const modules = [PivotModule];
const pivot = {
  enabled: true,
  rows: ['region'],
  columns: ['year'],
  values: [{ colId: 'revenue', aggFunc: 'sum' }],
  totals: true,
};

export function PivotTable() {
  const [ready, setReady] = createSignal(false);

  return (
    <section aria-busy={!ready()}>
      <Show when={!ready()}>
        <p>Preparing the pivot table…</p>
      </Show>
      <BirchGrid
        style={{ height: '520px' }}
        onReady={() => setReady(true)}
        licenseKey={'LQ1.your-key'}
        modules={modules}
        columns={columns}
        rows={sales}
        pivot={pivot}
      />
    </section>
  );
}

Measured in Chrome: pivoting 100,000 rows takes 52–93 ms. For an end-user report builder, see Pivot Studio.

How it fits Solid

Pivot mode turns rows into columns such as 2026 › Q1 › Revenue, with row and grand totals and sorting by any pivot column. It is part of Grid Pro, so a Solid team that needs pivoting buys one product, not an enterprise suite.

The Solid adapter tracks every prop in one effect and batches changed keys into a single update() call. The pivot table itself is never recreated.

Handlers are read when an event fires, so a reactive handler is always current and never resubscribes. Solid’s server build renders the container with a hydration key; the browser adopts it and creates the widget in onMount.

Questions

Can Solid users drag fields to build their own pivot?

Grid Pro pivots from options you set in code. Pivot Studio adds a drag-and-drop field list, drill-through and saved reports.

Can I export the pivot to Excel?

Yes. The Excel module exports the current view, pivot columns and totals included, as a styled xlsx file.

Does the Solid pivot table support SolidStart SSR?

Yes. The container is server-rendered with a hydration key and the widget mounts in the browser only.

How do I get the API in Solid?

Pass a variable or a callback as ref. It receives the typed API once the widget exists.