web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Refreshing Power BI Vi...
Power Apps
Unanswered

Refreshing Power BI Visuals from Power Apps Using PowerBIIntegration.Refresh(), Not Working

(0) ShareShare
ReportReport
Posted on by 19

Hello,

 

I have a Power BI report with a Power Apps interface embedded in it. The source to the Power BI report is a SQL Server table that is set up as Direct Query. While developing the report in Pro mode, everything worked perfectly. I was able to execute an update to the SQL Server table via Power Apps and have the Power BI visuals refresh automatically. However, when I had to up the licensing to Premium Per Use for access to the Power Apps interface -- because of a SQL Server connection, which is premium -- the refresh to the visual no longer work. The data gets updated and I can refresh the entire screen manually to force the visuals to refresh. However, it appears that the PowerBIIntegration.Refresh() function doesn't do that automatically. I notice the screen flickers as if a refresh happens, but nothing.

 

Has anyone else encountered this kind of scenario? I am finding that the mix of licensing between Power BI and Power Apps is forcing me into administration mode more than development.

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @ginowms0405,

    Could you please tell me that if you use the Power Apps visual for Power BI?

     

    If so , I think there is something limit you should know about this:

    • The Power Apps 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.
    • Following limitations apply when using the PowerBIIntegration.Refresh() function:
      • You must create a new app from Power Apps visual in Power BI report for this function to be available in the app.
      • You must use a source that supports DirectQuery and the data connection must be created using DirectQuery method.

     

  • Verified answer
    ginowms0405 Profile Picture
    19 on at

    Hello,

    I created the PowerApps interface within Power BI in Power BI services. A lot of the readings I've come across recommend using Power BI services to embed Power Apps instead of Power BI desktop.

     

    The PowerBIIntegration.Refresh() function gets created, as expected. And because the source table to the Power BI visuals are set up as DirectQuery, the visuals indeed get refreshed when I click the "Refresh visuals" icon. I noticed the visuals will also get refreshed if I click the Save button in Power Apps a second time.

     

    I just did a full flush of my cache and now I get the proper outcome. Looks like I need to clear my browser, close it, and go back in. I was not expecting that. Thanks for the response, though.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard