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


   function as function,
   args as list,
) as any


Invokes the given function using the specified list of arguments and returns the result.


Invokes Record.FieldNames with one argument [A=1,B=2]

// Output: {"A", "B"}
Function.Invoke( Record.FieldNames, {[A = 1, B = 2]} )

Other functions related to Function.Invoke are:

BI Gorilla Blog

Last update: August 25, 2023 | Contribute » | Contributors: Rick de Groot
Microsoft documentation:
© 2023 BI Gorilla. All rights reserved. Content derived from Microsoft documentation is property of Microsoft Corp.