Function.Invoke is a Power Query M function that invokes a given function using a specified list of arguments. The function returns the result of the invocation.
Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365
Syntax
Function.Invoke(
function as function,
args as list,
) as any
Description
Invokes the given function using the specified list of arguments and returns the result.
Examples
Invokes Record.FieldNames with one argument [A=1,B=2]
// Output: {"A", "B"}
Function.Invoke( Record.FieldNames, {[A = 1, B = 2]} )
Related functions
Other functions related to Function.Invoke are:
