Your users ask for one category down the side and another across the top, and the grid turns into a pivot table, with one or more measures in its cells.
Pivot total revenue with country as rows and category as columns.
pivot rows: countrypivot columns: category, ascendingpivot values: revenue sumRevenue by category across years
pivot rows: categorypivot columns: orderDate-year, ascendingpivot values: revenue sumA filter and two levels across the top in one question:
Only orders in DE on or after April 1, 2025 and before October 1, 2025. Pivot total revenue with category as rows and order date year then order date quarter as columns, both descending.
filter country equals DEfilter orderDate on or after 2025-04-01filter orderDate before 2025-10-01pivot rows: categorypivot columns: orderDate-year, orderDate-quarter, descendingpivot values: revenue sum"Revenue by category", with a single category, is grouping, not a pivot: see Grouping.
rows are the fields down the side, columns the fields across the top, each with a direction, and values the measures, each with one function from Aggregation.orderDate-year, orderDate-quarter) are only for pivot rows and columns. To filter by a year, the answer puts a range on the date itself.| Setting | Where | With MUI's stock resolver | With the Gridsay helper |
|---|---|---|---|
disablePivoting | Grid prop | The derived year and quarter columns are not sent, and the grid applies a pivot answer as grouping. | Sent. A question that needs a pivot is declined. |
pivotable: false | Column | Not sent. The grid pivots by that column anyway. | Sent. Pivoting by that column is declined. |
getPivotDerivedColumns | Grid prop | Replaces the derived date columns; Gridsay uses the ones you define. | The same. |
| Leaving pivot mode | Grid | The grouping and totals from before the pivot can come back over the answer. | The new answer is what stays. The pre-pivot view shows for a moment first. |
A measure appears once in a pivot. Two functions on the same column are declined:
Pivot country as rows and category as columns. Show BOTH sum of revenue and average revenue as separate measures.
Revenue can be summed or averaged here, not both; pick one.
Your user reads this sentence. The table stays as it was.With the helper and pivotable: false on the customer column:
Pivot total revenue with customer as rows and category as columns.
Customer cannot be used as pivot rows.
Your user reads this sentence. The table stays as it was.If an answer still pivots after one correction, the sentence is "Pivoting is switched off for this table." or, naming the column, The `customer` column can't be used in a pivot.