Column Nesting ​
The * operator nests dimensions in columns. Here education contains gender as sub-columns beneath each education level.
Interactive Example ​
Try It
TABLE ROWS occupation COLS education * gender * income.sum;
Dataset:
samplesoccupation, education, gender, incomeTry Variations
Query Breakdown ​
TABLE- Declares a crosstab table statementROWS occupation- Row dimension: occupation values become row headersCOLS education * gender- Column hierarchy: education is the outer dimension, gender is nested within each education levelincome.sum- Measure: sum of income values for each cell
The * operator creates a parent-child relationship in columns where each education value spans multiple gender sub-columns beneath it.
Related Examples ​
- Row Nesting - Apply nesting to rows instead
- Column Concatenation - Use
|to show columns side-by-side instead of nested - Deep Hierarchy - Three or more levels of nesting