Expression.Identifier

Updated on

Expression.Identifier is a Power Query M function that generates the M source code representation of an identifier name. The function returns a text value representing the M code.

Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365

Syntax

Expression.Identifier( name as text ) as text

Description

Returns the M source code representation of an identifier name.

Examples

Get the M source code representation of an identifier.

// Output: "MyIdentifier"
Expression.Identifier( "MyIdentifier" )

Get the M source code representation of an identifier that contains a space.

// Output: "#""My Identifier"""
Expression.Identifier( "My Identifier" )

Other functions related to Expression.Identifier are:

Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/powerquery-m/expression-identifier