Expression.Identifier

This function returns the source code of an identifier name in M language.

Syntax

Expression.Identifier(name as text) as text

About

This function returns the source code of an identifier name in M language.

Explanation

Retrieve the M source code representation of an identifier by using the following syntax in Power Query M: Expression.Identifier("MyIdentifier"). This will output the identifier "MyIdentifier". To obtain the M source code representation of an identifier that contains a space, use the syntax Expression.Identifier("My Identifier"). This will output "#""My Identifier""".