Index of ATL functions
KEY FOR THE TABLE
Name = The name of the function.
Builder = Whether a function is supported in Arria NLG Studio’s Function Builder. If a function is marked ✓, it is available in the Function Builder in most project types (a few marked ✓ are not in the Function Builder for JSON projects). Functions that are not available in the Function Builder in any project type are marked x; these functions can, of course, be used by constructing function calls in ATL.
Description = A brief description of the function. For a more detailed description, including parameter descriptions and examples of usage, click on the function name.
Row, Table, Context, JSON = 'Describe Each Row', 'Describe the Table', 'Describe Row in Context', and 'Describe a JSON Object' (project types). In these columns, a function marked ✓ is available in the project type and a function marked x is not available.
Name | Builder | Description | Row | Table | Context | JSON |
---|---|---|---|---|---|---|
✓ | Abbreviates a large number and displays it with an appropriate suffix. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns a number's absolute value. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the absolute difference between two numbers. | ✓ | ✓ | ✓ | ✓ | |
✓ | Adds key–value pairs to an ATL object. | ✓ | ✓ | ✓ | ✓ | |
✓ | Adds a duration to a datetime object. | ✓ | ✓ | ✓ | ✓ | |
✓ | Detects anomalies in a seasonal context using the selected time granularity. | ✓ | ✓ | ✓ | ✓ | |
✓ | Detects subsets of contiguous values that are extremely high or extremely low. | ✓ | ✓ | ✓ | ✓ | |
✓ | Applies Grubbs’ test to detect anomalies (statistical outliers) in a series of numbers. | ✓ | ✓ | ✓ | ✓ | |
✓ | Converts a reserved-list value to a Boolean value. | ✓ | ✓ | ✓ | ✓ | |
✓ | Converts the input value to a datetime object. | ✓ | ✓ | ✓ | ✓ | |
✓ | Converts a duration from seconds to days. | ✓ | ✓ | ✓ | ✓ | |
✓ | Converts a duration from seconds to hours. | ✓ | ✓ | ✓ | ✓ | |
x | Converts a JSON string to a JSON object. | ✓ | ✓ | ✓ | ✓ | |
✓ | Converts the input value to a list. | ✓ | ✓ | ✓ | ✓ | |
✓ | Converts a duration from seconds to milliseconds. | ✓ | ✓ | ✓ | ✓ | |
✓ | Converts a duration from seconds to minutes. | ✓ | ✓ | ✓ | ✓ | |
✓ | Converts a duration from seconds to months. | ✓ | ✓ | ✓ | ✓ | |
✓ | Converts a numeric string to a number. | ✓ | ✓ | ✓ | ✓ | |
✓ | Converts a non-string value to a string. | ✓ | ✓ | ✓ | ✓ | |
asTable (deprecated) | ✓ | Converts the output of a script to a table region. Function deprecated — see topic for details. | x | ✓ | ✓ | x |
✓ | Converts a duration from seconds to weeks. | ✓ | ✓ | ✓ | ✓ | |
✓ | Converts a duration from seconds to years. | ✓ | ✓ | ✓ | ✓ | |
averageVal (deprecated) | x | Calculates the average value for a set of numbers. This function has been superseded by mean. | ✓ | ✓ | ✓ | ✓ |
✓ | Selects a cell from a table. | x | ✓ | ✓ | x | |
✓ | Selects a cell from a table region. | x | ✓ | ✓ | x | |
✓ | Returns the character at the given index. | ✓ | ✓ | ✓ | ✓ | |
✓ | Randomly selects and outputs one of the input expressions. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns a list of column names in a table. | x | ✓ | ✓ | x | |
✓ | Selects columns from a table. | x | ✓ | ✓ | x | |
✓ | Selects columns from a table region. | x | ✓ | ✓ | x | |
✓ | Concatenates the input values into a single list. | ✓ | ✓ | ✓ | ✓ | |
✓ | Generates a log entry for the console log area in Preview Mode. | ✓ | ✓ | ✓ | ✓ | |
✓ | Tests if the input data contains a specific item. | ✓ | ✓ | ✓ | ✓ | |
✓ | Counts how many times a given value appears in the input data. | ✓ | ✓ | ✓ | ✓ | |
✓ | Generates a countable noun phrase in grammatically correct form. | ✓ | ✓ | ✓ | ✓ | |
✓ | Converts the input country name to its adjective form. | ✓ | ✓ | ✓ | ✓ | |
✓ | Adds a 'the' determiner to the input country name, if one is required. | ✓ | ✓ | ✓ | ✓ | |
✓ | Creates an ATL object from the given keys and values. | ✓ | ✓ | ✓ | ✓ | |
currency (deprecated) | x | Formats a number as a currency expression. This function has been superseded by currencyFormat. | ✓ | ✓ | ✓ | ✓ |
✓ | Formats a number as a currency expression. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the absolute difference (in seconds) between two datetime objects. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns a number representing the day part of a datetime object. | ✓ | ✓ | ✓ | ✓ | |
✓ | Ensures Studio interprets the input string as HTML. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the difference between two numbers. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the change direction for a series of numbers. | ✓ | ✓ | ✓ | ✓ | |
✓ | Divides one number by another. | ✓ | ✓ | ✓ | ✓ | |
✓ | Converts a duration given in seconds to a list of seven duration values. | ✓ | ✓ | ✓ | ✓ | |
✓ | Encodes HTML tags in a string so they aren't processed as HTML. | ✓ | ✓ | ✓ | ✓ | |
✓ | Tests if a string ends with the given suffix. | ✓ | ✓ | ✓ | ✓ | |
x | Filters a list or list-like object. | ✓ | ✓ | ✓ | ✓ | |
x | Filters a table or table region. | x | ✓ | ✓ | x | |
✓ | Flattens a list of lists into a single list. | ✓ | ✓ | ✓ | ✓ | |
x | Loops through a list (or array) and applies a function to all items. | ✓ | ✓ | ✓ | ✓ | |
x | Loops through a column and applies a function to all cell values. | x | ✓ | ✓ | x | |
x | Loops through a row and applies a function to all cell values. | x | ✓ | ✓ | x | |
x | Loops through all columns and applies a function to all cell values. | x | ✓ | ✓ | x | |
x | Loops through all rows and applies a function to all cell values. | x | ✓ | ✓ | x | |
✓ | Formats a datetime object using a format pattern or locale. | ✓ | ✓ | ✓ | ✓ | |
✓ | Formats the input duration as a text string. | ✓ | ✓ | ✓ | ✓ | |
formatNumber (deprecated) | x | Formats a number using the given pattern. This function has been superseded by numberFormat. | ✓ | ✓ | ✓ | ✓ |
✓ | Returns a frequency distribution list. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the gender of the input name (e.g. 'male' for 'John'). | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns a datetime object for current date and time. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns a randomly selected integer. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns a randomly selected decimal number. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the timezone ID (or offset) for a datetime object. | ✓ | ✓ | ✓ | ✓ | |
x | Groups JSON arrays with matching values in one or more fields. For each group, the function then aggregates the data for one or more fields. | ✓ | ✓ | ✓ | ✓ | |
x | Groups JSON objects with matching values in one or more fields. For each group, the function then aggregates the data for one or more fields. | ✓ | ✓ | ✓ | ✓ | |
✓ | Groups table rows with matching values in one or more columns. For each group, the function aggregates the data for one or more columns. | x | ✓ | ✓ | x | |
x | Calculates the variance between the sum-aggregated values for two measures (base and comparison), then breaks the variance down by one or more grouping dimensions. | x | x | x | ✓ | |
x | Calculates the variance between the sum-aggregated values for two measures (base and comparison), then breaks the variance down by one or more grouping dimensions. | x | ✓ | ✓ | x | |
✓ | Tests if the input object contains the given key name. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns a number representing the hours part of a datetime object. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the first index at which a given value is found. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the inflected form of a noun. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the inflected form of a verb. | ✓ | ✓ | ✓ | ✓ | |
✓ | Capitalizes the first letter of the input string. | ✓ | ✓ | ✓ | ✓ | |
✓ | Tests if a name is recognized by countryAdjective and countryDeterminer. | ✓ | ✓ | ✓ | ✓ | |
✓ | Tests if the input string can be parsed to create a datetime object. | ✓ | ✓ | ✓ | ✓ | |
x | Tests if a string, list, table cell, or JSON object is empty. | ✓ | ✓ | ✓ | ✓ | |
x | Tests if a string, list, table cell, or JSON object is not empty. | ✓ | ✓ | ✓ | ✓ | |
✓ | Tests if the input value can be parsed as a number. | ✓ | ✓ | ✓ | ✓ | |
✓ | Tests if the data type of the input value is a list. | ✓ | ✓ | ✓ | ✓ | |
✓ | Tests if the data type of the input value is a number. | ✓ | ✓ | ✓ | ✓ | |
✓ | Tests if the data type of the input value is a string. | ✓ | ✓ | ✓ | ✓ | |
✓ | Joins a set of strings to form a single string. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns a list of all keys in a JSON or ATL object. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the length of a variable — e.g. the number of values in a list. | ✓ | ✓ | ✓ | ✓ | |
✓ | Presents the input values as a punctuated list. | ✓ | ✓ | ✓ | ✓ | |
✓ | Converts all input strings to lowercase. | ✓ | ✓ | ✓ | ✓ | |
x | Makes a data list from zero or more values. | ✓ | ✓ | ✓ | ✓ | |
x | Loops through a list, applies a function to each value, and returns a new list. | ✓ | ✓ | ✓ | ✓ | |
x | Loops through rows in a table or table region, applies a mapping function to the values in one or more columns, and returns the amended table. | ✓ | ✓ | ✓ | x | |
✓ | Finds all cells containing the maximum value. | x | ✓ | ✓ | x | |
✓ | Returns the maximum value in a set of numbers. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the mean (average value) for a set of numbers. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the median value for a set of numbers. | ✓ | ✓ | ✓ | ✓ | |
✓ | Finds all cells containing the minimum value. | x | ✓ | ✓ | x | |
✓ | Returns a number representing the minutes part of a datetime object. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the minimum value in a set of numbers. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the mode for a set of values. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns a number representing the month part of a datetime object. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the number for the input month name — e.g. 3 for March. | ✓ | ✓ | ✓ | ✓ | |
now (deprecated) | x | Returns the current time. This function has been superseded by getCurrentTime. | ✓ | ✓ | ✓ | ✓ |
✓ | Returns the month name for the input number — e.g. March for 3. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the weekday name for the input number — e.g. Tuesday for 2. | ✓ | ✓ | ✓ | ✓ | |
✓ | Formats a number using the given pattern or locale. | ✓ | ✓ | ✓ | ✓ | |
x | Returns the number of columns in your table. | x | ✓ | ✓ | x | |
x | Returns the number of rows in your table. | x | ✓ | ✓ | x | |
✓ | Converts a number to words. | ✓ | ✓ | ✓ | ✓ | |
x | Pairs values from two lists, applies a function to each pairing, and returns a new list of values. | ✓ | ✓ | ✓ | ✓ | |
✓ | Parses a string to create a datetime object. | ✓ | ✓ | ✓ | ✓ | |
✓ | Converts a duration string to a number representing the duration in seconds. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the Pearson correlation coefficient for two series of numbers. | ✓ | ✓ | ✓ | ✓ | |
✓ | Calculates a percentage value — (base/whole) * 100. | ✓ | ✓ | ✓ | ✓ | |
✓ | Calculates the percentage change between two numbers. | ✓ | ✓ | ✓ | ✓ | |
✓ | Calculates the percentage change across a series of numbers. | x | ✓ | ✓ | x | |
✓ | Returns the nth percentile for a set of numbers. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the result of a number raised to a power. | ✓ | ✓ | ✓ | ✓ | |
✓ | Defines the display precision for a number. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the result of multiplying two or more numbers. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the correct pronoun for the input name. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the rank of a value in a set of numbers. | ✓ | ✓ | ✓ | ✓ | |
✓ | Generates text from lex rules and input data. | x | x | x | ✓ | |
x | Reduces a list of values to a single value. | ✓ | ✓ | ✓ | ✓ | |
✓ | Removes key–value pairs from an ATL object. | ✓ | ✓ | ✓ | ✓ | |
✓ | Performs a rolling correlation analysis for two series of numbers. | ✓ | ✓ | ✓ | ✓ | |
✓ | Calculates the nth root of a number. | ✓ | ✓ | ✓ | ✓ | |
✓ | Rounds a number to a specific number of decimal places. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns a list of row names in a table. | x | ✓ | ✓ | x | |
✓ | Selects rows from a table. | x | ✓ | ✓ | x | |
✓ | Selects rows from a table region. | x | ✓ | ✓ | x | |
✓ | Returns a number representing the seconds part of a datetime object. | ✓ | ✓ | ✓ | ✓ | |
✓ | Sets the timezone ID (or offset) for a datetime object. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the sign of a number (1 if positive, -1 if negative, and 0 if zero). | ✓ | ✓ | ✓ | ✓ | |
x | Sorts a list or list-like object such as a JSON array. | ✓ | ✓ | ✓ | ✓ | |
x | Sorts a table region by the values in one column. | x | ✓ | ✓ | x | |
x | Sorts a table region by a single column's values in ascending order. | x | ✓ | ✓ | x | |
x | Sorts a table region by a single column's values in descending order. | x | ✓ | ✓ | x | |
x | Sorts a table region by a single column's values in alphabetical order. | x | ✓ | ✓ | x | |
x | Sorts a table region by a single column's values in reverse-alphabetical order. | x | ✓ | ✓ | x | |
x | Sorts a table region by the values in one row. | x | ✓ | ✓ | x | |
x | Sorts a table region by a single row's values in ascending order. | x | ✓ | ✓ | x | |
x | Sorts a table region by a single row's values in descending order. | x | ✓ | ✓ | x | |
x | Sorts a table region by a single row's values in alphabetical order. | x | ✓ | ✓ | x | |
x | Sorts a table region by a single row's values in reverse-alphabetical order. | x | ✓ | ✓ | x | |
✓ | Sorts datetime objects in chronological order. | ✓ | ✓ | ✓ | ✓ | |
✓ | Sorts datetime objects in reverse-chronological order. | ✓ | ✓ | ✓ | ✓ | |
✓ | Selects columns from a table and presents them in the selected order. | x | ✓ | ✓ | x | |
✓ | Selects columns from a table region and presents them in the selected order. | x | ✓ | ✓ | x | |
✓ | Selects rows from a table and presents them in the selected order. | x | ✓ | ✓ | x | |
✓ | Selects rows from a table region and presents them in the selected order. | x | ✓ | ✓ | x | |
✓ | Sorts month names in order of calendar month. | ✓ | ✓ | ✓ | ✓ | |
x | Sorts numeric values in ascending order. | ✓ | ✓ | ✓ | ✓ | |
x | Sorts numeric values in descending order. | ✓ | ✓ | ✓ | ✓ | |
x | Sorts string values in alphabetical order. | ✓ | ✓ | ✓ | ✓ | |
x | Sorts string values in reverse-alphabetical order. | ✓ | ✓ | ✓ | ✓ | |
✓ | Splits a string around matches for specific characters. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the standard deviation for a set of numbers. | ✓ | ✓ | ✓ | ✓ | |
✓ | Tests if a string starts with the given prefix. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns a sublist of the input list. | ✓ | ✓ | ✓ | ✓ | |
✓ | Replaces one or more text strings with another text string. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns a substring of the input string. | ✓ | ✓ | ✓ | ✓ | |
✓ | Subtracts a duration from a datetime object. | ✓ | ✓ | ✓ | ✓ | |
✓ | Sums the input values (numbers or lists). | ✓ | ✓ | ✓ | ✓ | |
✓ | Capitalizes the first letter of each word in the input string. | ✓ | ✓ | ✓ | ✓ | |
today (deprecated) | x | Returns the current date. This function has been superseded by getCurrentTime. | ✓ | ✓ | ✓ | ✓ |
x | Returns the top N values from the input data. | ✓ | ✓ | ✓ | ✓ | |
x | Returns the top N columns in a table region. | x | ✓ | ✓ | x | |
x | Returns the top N rows in a table region. | x | ✓ | ✓ | x | |
✓ | Counts the summed values required to reach a target threshold. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the total value for a set of numbers. | ✓ | ✓ | ✓ | ✓ | |
✓ | Translates a datetime object into its equivalent in a different timezone. | ✓ | ✓ | ✓ | ✓ | |
✓ | Trims leading, trailing, and internal whitespace from a string. | ✓ | ✓ | ✓ | ✓ | |
✓ | Truncates a number to its integer part. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns a list of unique values (removes duplicates). | ✓ | ✓ | ✓ | ✓ | |
✓ | Converts all input strings to uppercase. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the value in a table cell or single-value list. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns a list of all values in a JSON or ATL object. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the variance value for a set of numbers. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns the number for the input weekday name — e.g. 2 for Tuesday. | ✓ | ✓ | ✓ | ✓ | |
✓ | Returns a number representing the year part of a datetime object. | ✓ | ✓ | ✓ | ✓ | |
x | Pairs values from two lists and returns a list of pairs. | ✓ | ✓ | ✓ | ✓ | |
x | Takes a list, pairs each value with its index number, and returns a list of pairs. | ✓ | ✓ | ✓ | ✓ |