Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask 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