UNICHAR

Updated on

UNICHAR is a DAX function that returns the Unicode character corresponding to a given numeric value.

Syntax

UNICHAR( Number )
Argument Properties Description
Number Number is the Unicode number(code point) for which you want the Unicode character.

Return Values

A character represented by the Unicode number.

Remarks

  • If XML characters are not invalid, UNICHAR returns an error.

  • If Unicode numbers are partial surrogates and data types are not valid, UNICHAR returns an error.

  • If numbers are numeric values that fall outside the allowable range, UNICHAR returns an error.

  • If number is zero (0), UNICHAR returns an error.

  • The Unicode character returned can be a string of characters, for example in UTF-8 or UTF-16 codes.

Example

The following example returns the character represented by the Unicode number 66 (uppercase A).

= UNICHAR(65)

The following example returns the character represented by the Unicode number 32 (space character).

= UNICHAR(32)

The following example returns the character represented by the Unicode number 9733 (★ character).

= UNICHAR(9733)

Other functions related to UNICHAR are:

Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/dax/unichar-function-dax

2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy