Skip to main content

Power BI

Needs Votes

Make functions refreshable when the data source is a parameter of the function

Vote (1047) Share
Bernd Loigge's profile image

Bernd Loigge on 14 Aug 2015 03:16:28

Like discussed here: http://community.powerbi.com/t5/Integrations-with-Files-and/Refreshing-queries-with-functions-doens-t-work/td-p/2450 - queries where data access happens inside a function and where the data source is dependent on parameters to the function should be refreshable.

Comments (117)
Bernd Loigge's profile image Profile Picture

81cefa4d a6b2-441d-a26c-a6fb04b07d3a on 06 Jul 2020 00:15:07

RE: Make functions refreshable when the data source is a parameter of the function

It works in Power Plattform Dataflow!

Bernd Loigge's profile image Profile Picture

a3309361 99be-ea11-a812-000d3a8ddfb2 on 06 Jul 2020 00:13:40

RE: Make functions refreshable when the data source is a parameter of the function

This is an essential feature to automate large datasets creation! Ff this is hard to code can an alternative be provided? Is there anyway to work around this?

Bernd Loigge's profile image Profile Picture

95f8a164 f7ff-4966-a83f-8dac0e62a9a0 on 06 Jul 2020 00:13:39

RE: Make functions refreshable when the data source is a parameter of the function

Come on Microsoft, this is essential functionality and it been asked for nearly 5 years.
What is the issue that it cannot be implemented?

Bernd Loigge's profile image Profile Picture

530a2707 a6f4-4daf-bd75-cdab03531cf5 on 06 Jul 2020 00:13:30

RE: Make functions refreshable when the data source is a parameter of the function

Please make this work in POWER BI service so i can auto-refresh dynamic web contents queries

Bernd Loigge's profile image Profile Picture

81cefa4d a6b2-441d-a26c-a6fb04b07d3a on 06 Jul 2020 00:12:48

RE: Make functions refreshable when the data source is a parameter of the function

We have a SaaS multi-tenant system with 1000 On-premise SqlServer databasees with the same schema in each database, one database for each tenant. I am building a common dataset for all tenants, so that we can do reporting on top of all the tenants.

This can only be done with a function where the datasource takes “Server” and “Database” as a parameter. We have a table with all tenants listed, with columns for “Server” and “Database” where the tenant “lives”. Then we loop through all the tenants for each entity, call the function with the Server and database as parameters, and appends the data for each tenant into one dataset.

This is working PERFECT in Power BI Desktop! But I was very frustrated when I published the working dataset and report to Power BI Service. It would not refresh! We got an error message saying that referencing a “Dynamic data source” was not allowed. This is just because of the parameter in the data source in the M-function. So, in my case Power BI is useless!

Same problem exists in the Data Flow! I moved all my queries into a Data Flow, and same problem happened! I got the same error when I tried to save the data flow with the M-function that had parameters with “Server” and “Database” in the data source. So, Power BI Data Flow was also useless for me!

I’m sure this “Dynamic data source”-issue is a big problem for many companies! I really hope this serious weakness is being prioritized now!

Bernd Loigge's profile image Profile Picture

63d5638f e25e-4b98-9056-24657fd6ff51 on 06 Jul 2020 00:11:46

RE: Make functions refreshable when the data source is a parameter of the function

This is a much needed feature for Power BI users working on advanced reports!

Bernd Loigge's profile image Profile Picture

6069dee5 586c-414b-bd3f-709a46413b44 on 06 Jul 2020 00:10:48

RE: Make functions refreshable when the data source is a parameter of the function

Any update?

Bernd Loigge's profile image Profile Picture

bbe421a1 8c58-4d4b-915d-a038914aab7f on 06 Jul 2020 00:09:54

RE: Make functions refreshable when the data source is a parameter of the function

Any update on this?

Thanks

Bernd Loigge's profile image Profile Picture

12ca8002 13e0-4549-be92-931997114cc6 on 06 Jul 2020 00:09:40

RE: Make functions refreshable when the data source is a parameter of the function

It's 2020 already and this is still a problem. Would appreciate action on this!

Bernd Loigge's profile image Profile Picture

b6ad8ed9 6f6c-4ce1-b16f-f4438061cdae on 06 Jul 2020 00:07:13

RE: Make functions refreshable when the data source is a parameter of the function

It still does not work. Please make it work.