Early Access: The content on this website is provided for informational purposes only in connection with pre-General Availability Qlik Products.
All content is subject to change and is provided without warranty.
Skip to main content Skip to complementary content

Ord Script and chart function

Ord() returns the numeric (ASCII or Unicode) value of the first character of a string. This function is useful to evaluate or compare strings based on their underlying character codes, for example, when sorting or filtering strings with non-standard characters.

Syntax:  

Ord(text)

Return data type: integer

Arguments
Argument Description
text The original string.
Example: Chart expressions
Example Result
Ord( 'A' ) Returns the integer 65
Ord( 'Ab' ) Returns the integer 65

Example - Ord fundamentals

Example - Ord scenario

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!