Example

{% dimension value="category" /%}

Date Grain

{% dimension value="date" date_grain="month" /%}

Image

{% dimension value="category" image="image_url" /%}
{% dimension value="category" link="concat('https://www.google.com/search?q=', category)" /%}

Attributes

value
String
required
title
String
align
String
wrap
Boolean
Whether to allow content in this dimension column to wrap across multiple lines
info
String
hide
Boolean
default:"false"
Whether to hide this column from the table display. Hidden columns are still included in queries and can be referenced by other columns.
html
Boolean
default:"false"
Whether to render the dimension value as HTML
image_options
Image display options (used when image prop is set)Example:
image_options={
  height = 0
  width = 0
  alt = "string"
  hide_label = true
}
Attributes:
  • height: number - Height of the image in pixels
  • width: number - Width of the image in pixels
  • alt: string - Alt text for the image
  • hide_label: boolean - Whether to hide the text label and show only the image
image
String
Column name or SQL expression containing the image URL for this dimension
Column name or SQL expression containing the URL for linking this dimension
Static text to use as the link label instead of the cell content
Whether to open the link in a new tab
date_grain
String
Time grain for date truncation (default: day for date columns)
fmt
String
Format code for displaying dimension values (e.g., “yyyy” for years, “mmm” for months)
sort
String
Sort direction for this dimension column. When specified, the table will be sorted by this column.

Allowed Parents