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

8f47519f 091b-46e8-b629-f8ddd9865ddb on 05 Jul 2020 23:37:36

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

Please add this functionality, we would need it for our project =(

Bernd Loigge's profile image Profile Picture

e0e22fd9 1a48-488c-88f9-338360a768a2 on 05 Jul 2020 23:37:16

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

More needs to be done to iron out the discrepancies in the execution of desktop and service M code. This idea highlights this need. In the meantime this blog:
https://blog.crossjoin.co.uk/2016/08/23/web-contents-m-functions-and-dataset-refresh-errors-in-power-bi/
provides a useful workaround to automating some uses of functions and parameters. You may find though that switching the argument 'Query' for 'RelativePath' is more effective for your project.

Bernd Loigge's profile image Profile Picture

e3cc1cb0 1cc4-4066-9ac5-8a32f1c60455 on 05 Jul 2020 23:37:10

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

This needs to be implemented

Bernd Loigge's profile image Profile Picture

e5c0843d b4de-43b1-9aa3-b8d9c58f29f4 on 05 Jul 2020 23:36:48

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

I tried building a refreshable M Query using Datachant's iterative function here: https://datachant.com/2016/06/27/cursor-based-pagination-power-query/ and Chris Webb's method to trick the Web.Contents () static analysis of the URL here: https://blog.crossjoin.co.uk/2016/08/23/web-contents-m-functions-and-dataset-refresh-errors-in-power-bi/ BUT this combo doesn't seem to work. Any modification to the Web.Contents () text string that's passed into the function breaks the GeneratedList function. HELP!

Bernd Loigge's profile image Profile Picture

e5e8df4c 5901-47e3-a267-f5a940147c49 on 05 Jul 2020 23:36:38

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

would really need this functionality in order to make my report work

Bernd Loigge's profile image Profile Picture

e4e767da b091-4b5a-82ea-dd310172b1b1 on 05 Jul 2020 23:36:17

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

this is really important

Bernd Loigge's profile image Profile Picture

f8c6888d 9d38-4ba7-8413-16152660b395 on 05 Jul 2020 23:32:43

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

I have a parameter based report, refresh works on it. I have connected the report through my own developed web api. Using a azure app function proxy. The report refreshes nightly after uploading to powerbi cloud

Bernd Loigge's profile image Profile Picture

a3309361 99be-ea11-a812-000d3a8ddfb2 on 05 Jul 2020 23:32:38

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

For one of our customer we would need this...

Bernd Loigge's profile image Profile Picture

491896aa 75cf-4df9-a4c9-1437f34eea75 on 05 Jul 2020 23:28:58

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

yes it gwould be very useful. I'm getting a lot the "You can't schedule refresh for this dataset because" error

Bernd Loigge's profile image Profile Picture

9b4f6694 36b1-4cf0-9f12-1e36e95ccef6 on 05 Jul 2020 23:27:58

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

Any updates here please? Really useful to have to this....