SAQL Functions
Use functions to perform complex operations on your data.
-
Aggregate functions perform computations across all values of a grouped field.
-
Use SAQL date functions to perform time-based analysis.
-
When you enable the time zone feature, you can use the fields of the
DateTimeandDateOnlytype to access date information in the specified time zone. For example, if a user in New York runs a SAQL query, they see date information displayed in Eastern Standard time. -
Work with Custom Fiscal Year Data
After inheriting custom fiscal years, SAQL queries support custom fiscal year data.
-
Use SAQL string functions to format your measure and dimension fields.
-
To perform numeric operations in a SAQL query, use math functions.
-
Use SAQL windowing functionality to calculate common business cases such as percent of grand total, moving average, year and quarter growth, and ranking.
-
Use
coalesce()to get the first non-null value from a list of parameters, or to replace nulls with a different value.