RowExpression.From
This function returns the abstract syntax tree (AST) for the body of a function, which is normalized into a row expression. The function must be a lambda with only one argument. All references to the ...
This function returns the abstract syntax tree (AST) for the body of a function, which is normalized into a row expression. The function must be a lambda with only one argument. All references to the function parameter are substituted with RowExpression.Row. References to columns are substituted with RowExpression.Column(columnName). The AST is simplified to include only nodes of specific types: Constant, Invocation, Unary, Binary, If, and FieldAccess. An error will occur if a row expression AST cannot be generated for the function body. This function is the same as ItemExpression.From.
The function returns the Abstract Syntax Tree (AST) for the body of the function where each CustomerID equals "ALFKI". It is used in Power Query as MRowExpression.From each CustomerName equals "ALFKI".
Output:
- Kind: Binary
- Operator: Equals
- Left: RowExpression.Column("CustomerName")
- Right:
- Kind: Constant
- Value: "ALFKI"