Error
SQL runner
Run SQL pivot query
Run a SQL pivot query
POST
Error
Documentation Index
Fetch the complete documentation index at: https://lightdash-mintlify-238a1295.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
Body
application/json
Metrics/table calculations needed for sort anchor CTEs but not for display. These are merged into valuesColumns for SQL generation in PivotQueryBuilder, but excluded from pivotDetails so they don't appear as chart series.
When true, metrics are displayed as rows instead of columns. This affects column limit calculation - when metrics are rows, we don't need to divide the column limit by the number of metrics. Defaults to false for backward compatibility (SQL runner behavior).
- object
- object[]