Action.Return is a Power Query M function that creates an action returning a specified value without performing any additional tasks.
Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365
Syntax
Action.Return( value as any ) as any
Description
Creates an action that performs no action when executed and returns value
as its result.
Examples
Creates an action that, when executed, performs no action and returns the value "hello world!"
as its result.
Action.Return( "hello world!" )
Related articles
Learn more about Action.Return in the following articles:
- M Mysteries: The Mysterious Type Action—An M-Internal Means to Write Data Modifications to External Systems
In his article “M Mysteries: The Mysterious Type Action,” Ben Gribaudo explores Power Query’s hidden capability to perform data modifications—such as inserts, updates, and deletes—using the undocumented ‘action’ type. Although Power Query is primarily designed for data retrieval and transformation, Gribaudo reveals that it possesses internal functions that can interact with external data sources to modify data. These functions, however, are not intended for general use and require the Power Query SDK for implementation. » Read more
Related functions
Other functions related to Action.Return are:
- Action.DoNothing
- Action.Sequence
- Action.Try
- Action.View
- Action.ViewError
- Action.ViewFunction
- Action.WithErrorContext
2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy