Skip to main content

Function List

NameTypeDescription
blankReturns a blank (null) value.
exploreExplores data by applying filters and aggregations.
unnestExpands an array or nested structure into multiple rows.
average_xAggregationCalculates the average of values in a column.
concatenate_xAggregationConcatenates multiple text values into a single string.
count_rowsAggregationReturns the number of rows in a table.
count_xAggregationCounts the number of non-null values in a column.
cumulativeAggregationCalculates a cumulative sum or other cumulative aggregation.
max_xAggregationReturns the maximum value in a column.
min_xAggregationReturns the minimum value in a column.
sumAggregationReturns the sum of all values in a column.
sum_xAggregationCalculates the sum of values in a column.
dateDate and TimeConverts a year, month, and day into a date.
date_addDate and TimeMoves the given date by a specified interval.
date_diffDate and TimeReturns the number of units (unit specified in Interval) between the input two dates.
date_rangeDate and TimeGenerates a range of dates between two dates.
date_valueDate and TimeConverts a text string to a date value.
dayDate and TimeExtracts the day from a date value.
floor_dateDate and TimeTakes a date-time and rounds it down to the nearest date-time value of the specified time unit.
formatDate and TimeConverts a value to text in the specified format.
hourDate and TimeExtracts the hour from a datetime value.
monthDate and TimeExtracts the month from a date value.
nowDate and TimeReturns the current date and time.
quarterDate and TimeExtracts the quarter from a date value.
weekDate and TimeExtracts the week number from a date value.
weekdayDate and TimeReturns a number representing the day of the week of the date provided.
yearDate and TimeExtracts the year from a date value.
dimensionExpressionsConvert an measure to the dimension.
allFilterRemoves all filters from the current context.
all_rowFilterReturns all rows from the current context without filtering.
all_selectedFilterReturns all selected values from the current context.
calculateFilterEvaluates an expression in a context modified by filters.
create_relationshipFilterCreates a relationship between two tables.
cross_filterFilterApplies filters across related tables.
filterFilterReturns a table that has been filtered.
keep_filtersFilterEvaluates an expression in a context modified by filters.
relatedFilterRetrieves related data from a related table.
related_xFilterRetrieves and aggregates related data from a related table.
selected_valueFilterReturns the selected value from the current filter context.
country_nameGeoReturns US Country Name
andLogicalThe AND function returns true if all of the provided arguments are logically true, and false if any of the provided arguments are logically false.
caseLogicalEvaluates multiple conditions and returns the value corresponding to the first condition that is true.
ifLogicalReturns one value if a logical expression is TRUE and another if it is FALSE.
in_arrayLogicalChecks if a value exists in an array.
is_blankLogicalChecks if a value is blank (null, empty string, or whitespace).
is_emptyLogicalChecks if a value is empty (null or empty string).
is_in_rangeLogicalChecks if a value is within a specified range.
notLogicalReturns the logical opposite of a boolean value.
orLogicalThe OR function returns true if any of the provided arguments are logically true, and false if all of the provided arguments are logically false.
absMathReturns the absolute value of a number.
ceilingMathRounds a number up to the nearest integer.
convertMathConvert an expression to the specified data type.
intMathConverts a value to an integer number.
randMathReturns a random number between 0 and 1.
asTable manipulationRenames a column or expression with an alias.
ascTable manipulationSorts a column in ascending order.
combineTable manipulationCombines multiple tables into a single table.
descTable manipulationSorts a column in descending order.
fill_inventory_gapsTable manipulationFills gaps in inventory data by generating missing date/product combinations.
generate_seriesTable manipulationGenerates a series of values between a start and end value.
left_joinTable manipulationPerforms a left join between two tables.
order_byTable manipulationSorts a table by one or more columns in ascending or descending order.
pivot_indexTable manipulationCreates a pivot table with indexed values.
select_columnsTable manipulationSelects specific columns from a table.
summarize_columnsTable manipulationCreates a summary table based on specified columns and optional filter expressions.
top_nTable manipulationReturns the top N rows based on a specified column.
unionTable manipulationCombines rows from multiple tables.
init_capTextCapitalizes the first letter of each word in a string.
json_array_elementsTextExpands a JSON array into individual elements.
json_pathTextAllows to navigate and retrieve specific data from JSON objects or arrays based on a specified path or query.
leftTextReturns the leftmost characters from a string.
lenTextReturns the length of the given string.
lowerTextConverts a string to lowercase.
regexp_matchTextMatches a string against a regular expression pattern.
rightTextReturns the rightmost characters from a string.
str_containsTextChecks if a string contains a specified substring.
str_posTextReturns the position of a substring within a string.
str_replaceTextReplaces occurrences of a substring within a string.
str_splitTextSplits a string into an array based on a delimiter.
upperTextConverts a string to uppercase.
user_agentTextParses user agent strings to extract browser and device information.
overWindowApplies a window function over a partition of rows.
row_numberWindowAssigns a sequential row number to each row in a result set.