Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

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