Numbers and percentages
50% is the same as 0.5. A minus sign can make a value negative.
Arithmetic
+add-subtract*multiply/divide%remainder^power
Comparisons
=equal<>not equal>greater than<less than>=greater than or equal<=less than or equal
Logical operators
Useand, or, and not.
Variable names
# suffix distinguishes duplicate names.
Segment lookups
$ after the Variable name for an absolute lookup:
Relative period references
Revenue[-1] refers to the previous month.
Date references
Formula conditions
Conditions describe where a saved formula applies:[] applies broadly across the Model. An unprefixed condition such as [Department = "Sales"] continues to match when other Dimensions are present. $[Department = "Sales"] matches exactly the named Dimension set, while $[] matches only the empty segmentation.
The leading $ belongs to a saved formula condition. In an expression, an absolute Variable reference instead places $ after its name, as in Revenue$[Department = "Sales"].
Most users choose scope through the formula editor or tell Ari where the rule should apply.
Function calls
Write functions with their supported lowercase names:Preferred spellings
Use^, =, and <> in new formulas. Older formulas may contain **, ==, or !=; those spellings remain accepted.
Use the syntax shown on this page for new formulas. If an older expression is unclear, ask Ari to explain or update it using the current supported form.