For the complete documentation index, see llms.txt. This page is also available as Markdown.

Calculated Columns

There are various calculations and commands which can be executed through these custom fields.

The 'Calculated Columns' editor can be used to create a custom function for a particular field.

📋 Steps to Create a Calculated Columns

  1. Click on columns

  2. Click on the 'Add Custom Column' icon.

  1. Click on 'Calculated Columns'

  2. Enter the field name in the respective space provided.

  3. Click on the blank space below to write a custom function. The function needs to be written in PostgreSQL.

Note: Click on Show Documentation to view various functions that you can use. It is recommended to use this feature with basic knowledge of PostgreSQL.

Hint: Type a keyword for the field to receive suggestions to add t the editor.

These are the commands available under the 'String' format along with its Syntax.

  • Character Length

  • All characters in Lower Case

  • All letters in Upper Case

  • String Concatenation 2

These are the commands available under the 'Number' format along with its Syntax.

  • Adding two or more field values

  • Subtracting two or more field values

  • Multiplying two or more field values

  • Dividing two field values

  • Limit or Truncate the decimal values to 'n' number of decimal places.

  • Greaater Than ( > ) : Returns 'true' if first condition is greter than second condition, else return 'false'

  • Lesser Than ( < ) : Returns 'true' if the first condition is greter than the second condition, else return 'false'

  • Greater than or Equal to ( >= ) : Returns 'true' if the first condition is greater than or equal to the second condition, else return 'false'

  • Lesser than or Equal to ( <= ) : Returns 'true' if the first condition is less than or equal to the second condition, else return 'false'

  • Equal to ( = ) : Returns 'true' if the first condition is equal to the second condition, else return 'false'

  • Not Equal to ( != ) : Returns 'true' if both conditions are not equal else, return 'false'

  • Display Current date

  • Extracts only Day from Order Date

  • Extracts only Month from Order Date

  • Extracts only Year from Order Date

Trunc: Trunc removes the fractional part of the number and rounds numbers down to the nearest integer based on the value of the fractional part of the number.

Round: The round() function rounds a number to a specified number of decimal places.

Float: Float is used to store approximate values, not exact values. It has a precision from 1 to 53 digits.

Concat: Concat() function adds two or more expressions together.

Last updated