Skip to content

Dimension Labels ​

Quoted strings after dimensions provide display labels.

Interactive Example ​

Try It
TABLE
  ROWS occupation 'Job Category' * gender 'Sex'
  COLS education 'Education Level' * income.sum
;
Dataset:samplesoccupation, education, gender, income
Try Variations

Query Breakdown ​

  • occupation 'Job Category' - Labels the occupation dimension as "Job Category"
  • gender 'Sex' - Labels the gender dimension as "Sex"
  • education 'Education Level' - Labels the education dimension as "Education Level"

Dimension labels replace field names with descriptive headers, improving table readability for end users.

Powered by Malloy and DuckDB