In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

SQL Server ASCII Function Equivalent

kpuser
7 - Meteor

In SQL Server, this query...

kpuser_2-1578342265032.png

...yields these results:

kpuser_3-1578342286120.png

 

How do I duplicate this in Alteryx?

1 REPLY 1
CharlieS
17 - Castor
17 - Castor

The CharToInt( function will convert the character to the Unicode integer value 

 

CharToInt(Substring("3CJUNCC3",2,1))

 

The expression above gives us 74. The other difference you'll notice is the substring position will change to "2" in Alteryx. 

 

Alternative code sets can be referenced using the ConvertToCodePage( and ConvertFromCodePage( functions and the libraries mentioned in the documentation linked below:

https://help.alteryx.com/current/CodePages.htm

Labels
Top Solution Authors