Popular functions

Functions are powerful tools that allow you to perform complex analysis while still having access to your entire database.Β The following list highlights the most commonly used functions in Sigma.

IfReturns the value following the first condition that is met.
CountIfCounts the number of rows in a table or group for which all given conditions are true.
SumIfSum the values in a column if all the conditions are true.
SumSum the values in a column or group.
AvgCalculate the average of a column of numbers.
MinFind the minimum value for a column or group.
MaxFind the maximum value for a column or group.
CountCount the non-Null values within a column or group.
CountDistinctCounts the number of unique values within a column or group.
ConcatCombine strings together.
ContainsReturns true if a string contains a substring.
RightReturns a substring terminating at the end of a given string.
ChooseReturns the value with the corresponding index position. When an index number is provided and a corresponding value does not exist, a Null result is returned.
BinRangeComputes the bin for a value using the provided lower bounds.
CoalesceReturns the first non-Null value from the arguments provided.
DateDiffCalculates the time difference between two dates.
TodayReturns the current UTC date.
MovingAvgCalculates the numerical average in a moving window.
CumulativeSumCalculates the sum across the values up to and including the current value.
FirstRepeats the first row value of the given column for every row in the output column.
NthRepeat the nth value of the given column for every row in a column.
LeadShift a column upward.
Rank

Rank the rows in the table using the input column. Begins with 1. Identical values are assigned identical rank. Defaults to sort Ascending.

Identical values are assigned identical rank. Defaults to sort Ascending.