Documentation Index
Fetch the complete documentation index at: https://docs.omni.co/llms.txt
Use this file to discover all available pages before exploring further.
Syntax
query:
calculations:
<calculation_name>:
sql: ${<view_name>.<field_name>} <OMNI SQL TABLE FUNCTION>
Properties
An object containing the individual parameters that make up a query view’s query definition.
A list of calculation definitions, each with a calculation_name and child sql parameter.Hide calculations properties
The name of the calculation.Hide calculation_name properties
Examples
Calculation that adds 2 to users.age
query:
fields:
users.age: age
users.created_at[year]: created_at_year
age_calc: age_plus_two
calculations:
age_calc:
sql: ${users.age} OMNI_FX_PLUS 2