cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Community Support
Community Support

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
Highlighted
Community Support
Community Support

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

Highlighted
Frequent Visitor

Re: PowerBIntegration.Refresh() not working

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

 

Thanks!

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,875)