Expression.Identifier

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:

BI Gorilla Youtube Channel

Last update: August 25, 2023 | Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/powerquery-m/expression-identifier
© 2023 BI Gorilla. All rights reserved. Content derived from Microsoft documentation is property of Microsoft Corp.