Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
HiraRaffia
Frequent Visitor

dynamic refresh of power bi service data source

Hi,

I want to refresh my dataset in Power BI dynamically. I tried using parameters but it is not working. Also, I tried using function to get list of instance from the static table but still no luck.

It works fine from desktop but when i schedule it in power services it fails with

 

You can't schedule refresh for this dataset because the following data sources currently don't support refresh:

  • Data source for Query1

 

What I want to achieve is that user define the connection string and report connect to that connection string and show the data in report. I want query to run real time against the data source picked by the user.

1 ACCEPTED SOLUTION
v-cazheng-msft
Community Support
Community Support

Hi @HiraRaffia ,

 

You could complete it with Power Query Parameter and the dataset needs to be refreshed after the modification of the parameter. For more details, you could have a look at this official document: Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Learn and make some configurations by following it.

 

After that, you need the report dataset to be refreshed for the change of the data source. You could consider Power BI Automate Flow. Here are some references.

Trigger a cloud flow from any Power BI report - Power Automate | Microsoft Learn

Refresh your Power BI dataset using Microsoft Flow | Microsoft Power BI Blog | Microsoft Power BI

Trigger flows from Power BI reports | Power Automate-blog (microsoft.com)

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please let me know. Thanks a lot!

 

Best Regards,

Community Support Team _ Caiyun

View solution in original post

1 REPLY 1
v-cazheng-msft
Community Support
Community Support

Hi @HiraRaffia ,

 

You could complete it with Power Query Parameter and the dataset needs to be refreshed after the modification of the parameter. For more details, you could have a look at this official document: Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Learn and make some configurations by following it.

 

After that, you need the report dataset to be refreshed for the change of the data source. You could consider Power BI Automate Flow. Here are some references.

Trigger a cloud flow from any Power BI report - Power Automate | Microsoft Learn

Refresh your Power BI dataset using Microsoft Flow | Microsoft Power BI Blog | Microsoft Power BI

Trigger flows from Power BI reports | Power Automate-blog (microsoft.com)

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please let me know. Thanks a lot!

 

Best Regards,

Community Support Team _ Caiyun

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors