Ceiling () Function
Last updated
YouTube: How to Use the Ceiling () Function in Report Custom Columns?
In this tutorial, we’ll learn how to round values upward using the Ceiling function. This is useful for reports where you need to avoid decimals and show values as whole numbers or in specific rounded intervals.
Navigate to the Reporting section.
Open the Sales Register Detailed Report or any "Report".
Go to Setup Column Attributes.
Here, you'll see a list of available columns that can be used to build expressions.
Click on "Add/Edit Expression Columns" where you can write your expression using predefined functions.

Before adding the expression to the report, go to Other Settings.
Ensure the Script Editor is set to VBScript.

Click Save.
Note: VBScript is the default for new configurations but always verify this setting.
Every expression must start with the script header: '#@LSCRIPT

Click the (+) Plus icon to create a new expression.
Fill in the required fields:
Expression Name – A unique name for your expression.
Expression Type – Choose either Text or Numeric depending on the expected output.

Double-click the new expression name to insert it into the script editor.
Define the expression using the syntax:
Expression Name = CEILING(GROSS_AMOUNT)

Save the expression once defined.
Scroll down and check the box beside the expression name to enable it.

Save and proceed to check the effect.
Refresh the report to view the final result.

If the original gross amount column shows:
The expression column will show these values rounded up.
Last updated
9512.62 → 9513