cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lburgess
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
v-monli-msft
Community Support
Community Support

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
v-monli-msft
Community Support
Community Support

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

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

 

Thanks!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (40,629)