Call a Function
The complete syntax to call a function is:
<value_type>.<selected_function>(<argument 1>, <argument 2>, ...)
Where:
-
<value_type>is the type of the value on which you want to add a transformation or combination.For example,
String,Integer,Date,Boolean, … -
The period (
.) separates the value type from the function.Tip: Typing a period opens a list of applicable functions. <selected_function>is the function that you select to transform data.<argument>corresponds either to a column name or to a value that you specify.
Important:
To specify a value:
|
Example: String.concat("my", country, " ", sales)
In this example:
countryandsalesare variables displaying the content of thecountryand thesalescolumns."my"and" "are hard-coded values.
Example: You have a name column containing a combination of first names
and last names separated by a blank space. To keep the first names only, enter an expression
that retrieves the substring before the blank space separator used between the first name
and the last name.
String.substringBefore(name, " ")