Skip to main content
The format parameter sets the default display format for a ‘s values. s can use one of Omni’s named formats, an Excel-style string, a Mustache template, or a conditional format that selects a format dynamically. Formats can also be set on a per-query basis from visualization configuration, using the same format types. See Formatting values for more information on format types and examples.
Formats are applied after the SQL runs, so they do not impact grouping. To handle grouping with truncation, use ROUND() or FLOOR().

Syntax

format accepts either a string or a conditional object:

Properties

Use the tabs to view the properties for string values and conditional objects.
format
string
required
The format definition. This can be any valid format type:
  • A named format (e.g., currency_2, percent_1)
  • An Excel-style string (e.g., '#,##0.00 "kg"')
  • A reference to a model-level custom format
See Formatting values for the full reference on all format types, including named formats, Excel-style strings, conditional formats, model constants, locale settings, and more.

Examples

Currency format
Big number format
Custom Excel-style format with units
Custom format reference
Conditional format