Skip to main content
Formats can also be set on a per-query basis using visualization configuration, using the same format types.
Grouping is not impacted when format is used, as formatting is applied after SQL runs. To handle grouping with truncation, use ROUND() or FLOOR().

Syntax

<dimension_name>:
  format: <format_name>

Properties

dimension_name
object
The name of the dimension. Dimension names must:
  • Be unique within the view
  • Start with a letter
  • Contain only alphanumeric characters and underscores

Examples

Currency format
sale_price:
  format: currency_2
Big number format
revenue:
  format: big_2
Time format with timeframe metadata
created_at:
  timeframe_metadata:
    month:
      format: "%Y-%m-%d"