Skip to main content

Power BI

Under Review

Support for custom Power Query Functions in Dataflows

Vote (61) Share
Steffen Lone's profile image

Steffen Lone on 13 Nov 2018 18:17:08

We really need support for custom functions in Dataflows. This is a huge limitation to dataflows today.

Comments (4)
Steffen Lone's profile image Profile Picture

d43dfce3 6b7a-4e5a-9734-fe110f5f3997 on 06 Jul 2020 00:17:41

RE: Support for custom Power Query Functions in Dataflows

Not sure if this fits in here, but I am using some custom functions in Data Flows in order to loop over sheets in Excel.
My problem is that the first time I setup the DataFlow the function is "tied" to a query (so that changes in the query is updated in the function. However when I save and open the Data Flow again, this "binding" is lost. So it works, but not really :(

Steffen Lone's profile image Profile Picture

af0019aa 9a7e-4776-9021-7b1171cd13bc on 05 Jul 2020 23:53:09

RE: Support for custom Power Query Functions in Dataflows

By far the most common Function pattern is one generated by building a query on a folder of files. This generates a web of dependent objects including an automatically coded function. It doesnt seem possible to move this to Dataflows, which is really disappointing.

Steffen Lone's profile image Profile Picture

39819048 05f4-478b-a887-46a672f3d1a2 on 05 Jul 2020 23:37:05

RE: Support for custom Power Query Functions in Dataflows

As Oliver and Aaron have mentioned: https://ssbipolar.com/2018/12/12/custom-functions-in-power-bi-dataflows/

Steffen Lone's profile image Profile Picture

40502e40 76ce-4f42-b63d-31ddf675aac9 on 05 Jul 2020 23:36:31

RE: Support for custom Power Query Functions in Dataflows

It's unintuitive, but you can already create an M function in Dataflows. Start from a blank query, paste your code, and make sure to uncheck Load (right click on the function in the left pane).