cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
lburgess
Level: Powered On

PowerBIntegration.Refresh() not working

I have a new Power App that I am trying to integrate with a new Power BI report. The data source for both is a SharePoint Online list.  The Submit button in the form does 3 things: SubmitForm, PowerBIIntegration.Refresh, and NewForm.  The issue is that the new row is written to SharePoint but the Power BI report is not updated until I manually refresh the data in the PBI service. 

 

I've noticed that the following sequence seems to work:

1. Add the row using the Power App in the report through the PBI service.

2. Manually refresh the data source.

3. Click the Refresh button on the Report page in the PBI service.

 

Suggestions?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: PowerBIntegration.Refresh() not working

Hi @lburgess ,

 

Are you using the PowerApps custom visual for Power BI? If so, see the limitations of the PowerApps custom visual:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/powerapps-custom-visual

The PowerApps custom visual can't trigger a refresh of Power BI reports and Power BI data sources from within Power BI Desktop. If you write back data from the app to the same data source as the report, your changes won't be reflected immediately in Power BI Desktop. Changes are reflected on the next scheduled refresh.

 

If you use PowerBIIntegration.Refresh() function, you must use a source that supports DirectQuery and the data connection must be created using DirectQuery method.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: PowerBIntegration.Refresh() not working

Hi @lburgess ,

 

Are you using the PowerApps custom visual for Power BI? If so, see the limitations of the PowerApps custom visual:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/powerapps-custom-visual

The PowerApps custom visual can't trigger a refresh of Power BI reports and Power BI data sources from within Power BI Desktop. If you write back data from the app to the same data source as the report, your changes won't be reflected immediately in Power BI Desktop. Changes are reflected on the next scheduled refresh.

 

If you use PowerBIIntegration.Refresh() function, you must use a source that supports DirectQuery and the data connection must be created using DirectQuery method.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

lburgess
Level: Powered On

Re: PowerBIntegration.Refresh() not working

The issue seems to be that Power BI does not support direct query to SharePoint. 

 

Thanks!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,644)