CODE Returns a numeric code for the first character in a text string. The returned code corresponds to the character set used by your computer.
Syntax
CODE(text)
Parameters
text – The text for which you want the code of the first character.
Return Value
A numeric code for the first character in a text string.
Reference Data
https://docs.microsoft.com/en-us/dax/dax-function-reference