DAX Text - CODE function


Advertisements

Description

Returns a numeric code for the first character in a text string. The returned code corresponds to the character set used by your computer. For Windows Operating System, ANSI character set is used.

Syntax

CODE (<text>) 

Parameters

Sr.No. Parameter & Description
1

text

The text for which you want the code of the first character.

Return Value

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

Example

= CODE (“Results”) returns the ANSI code of ‘R’, which is 82. 
dax_functions_text.htm

Useful Video Courses


Video

Mastering DAX and Data Models in Power BI Desktop

53 Lectures 5.5 hours

Abhay Gadiya

Video

Mastering DAX Studio

Featured

24 Lectures 2 hours

Randy Minder

Video

DAX / Power BI - Customer and Sales Analysis Deep Dive

26 Lectures 4.5 hours

Randy Minder

Advertisements