Expression Functions
Functions for evaluating and working with expressions.
- Diagnostics.ActivityIdReturns an opaque identifier for the currently-running evaluation.
- Diagnostics.CorrelationIdReturns an opaque identifier to correlate incoming requests with outgoing ones.
- Diagnostics.TraceWrites a trace message if tracing is enabled and returns the provided value.
- Error.RecordCreates an error record from the provided reason, message, detail, parameters, and error code values.
- Expression.ConstantReturns the M source code representation of a constant value.
- Expression.EvaluateEvaluates a Power Query M expression provided as text at runtime.
- Expression.IdentifierReturns the M source code representation of an identifier name.
- ItemExpression.FromReturns the abstract syntax tree (AST) for the body of a function, normalized into an item expression.
- RowExpression.ColumnReturns an abstract syntax tree (AST) representing access to a column within a row expression.
- RowExpression.FromReturns the abstract syntax tree (AST) for the body of a function, normalized into a row expression.
- SqlExpression.SchemaFromReturns schema information from a SQL-related expression. Intended for internal use only.
- SqlExpression.ToExpressionConverts a SQL query to M code using the provided environment of available identifiers. Intended for internal use only.