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
VickyMarga
Frequent Visitor

Power BI Write Back to Database with Power Apps

Hello everyone, 

 

i have a question using Power Apps:

 

I have a table in SQL where I have to add values by selecting the line using power apps:

When i select a row the visual of power apps show me the row and allows me to add a new value, and save.

After save i want to see the new value in live ? 

VickyMarga_0-1685354329566.png

someone could help me? 

thanks

3 REPLIES 3
amitchandak
Super User
Super User

@VickyMarga , that is tricky for import mode, as you have refresh data (Desktop) or schedule refresh (Service)

Hi, thanks.

 

I need write back option with Power Apps in Power BI in the SQL table 

Hi Vicky,

The only way I have found to do this, is by adding a Direct Query in your PowerBI model, to read the SQL table you're writing to.

Then from PowerApps when you do the save, you need to call the command:
PowerBIIntegration.Refresh();
This will refresh (not reimport but just refresh the data) which will trigger the read again from the Direct Query, showing in PowerBI the data you justed posted on SQL.

Seems a basic scenario, but it'S not there by default, you need these pieces in order to make it work.

Hope it helps.

Did I answer your question? Mark my post as a solution! 

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.