CODE Function (DAX)

 

Returns a numeric code for the first character in a text string. The returned code corresponds to the character set used by your computer.

Operating environmentCharacter set
MacintoshMacintosh character set
WindowsANSI
CODE(text)  

Parameters

TermDefinition
textThe text for which you want the code of the first character.

A numeric code for the first character in a text string.

FormulaDescriptionResult
=CODE("A")Displays the numeric code for A65
=CODE("!")Displays the numeric code for !33

Community Additions

ADD
Show: