RowExpression.Column

Updated on

RowExpression.Column is a Power Query M function that represents access to a column within a row expression. The function returns an abstract syntax tree (AST) for the column access.

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

Syntax

RowExpression.Column( columnName as text ) as record

Description

Returns an abstract syntax tree (AST) that represents access to column columnName of the row within a row expression.

Examples

Creates an AST representing access of column “CustomerName”.

RowExpression.Column( "CustomerName" )

 /* Output: 
[
    Kind = "FieldAccess",
    Expression = RowExpression.Row,
    MemberName = "CustomerName"
]
 */ 

Other functions related to RowExpression.Column are:

BI Gorilla Youtube Channel

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