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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PowerBIIntegration: Ed...
Power Apps
Answered

PowerBIIntegration: Edit data of TableA based on the gallery selection in TableB

(0) ShareShare
ReportReport
Posted on by 14

Hi all,

I'm totally new to PowerApps and I'm sure there is a very simple explanation for my problem but I simply could not find a solution after trying to research it on my own.

 

Data:

I have two tables stored in the same SQL database with a relationship:

KPI_Dim 

KPICurrent_Fact (reffering the KPI_Dim via a Foreign Key 'KPI_key')

 

Goal:

I'm trying to edit the 'Value' and 'Score' data of the 'KPICurrent_Fact' table based on the selected item from the 'KPI_dim' table in the gallery.

 

The data in the gallery is populated using PowerBIIntegration.Data and displaxying the data 'Name', 'Description' from 'KPI_Dim' and the current KPI value from 'KPICurrent_Fact'. (Please see attached screenshot)

The data source of the edit form is the 'KPICurrent_Fact' table from the SQL database. 

 

I tried to use Gallery.Selected but this does apparently not work when the data is stored in different tables in the database. I receive the error shown in the screenshot.  

 

My best guess would be to use the lookup function to point to the primary key of 'KPI_dim' that is selected and in that way retrieve the current values from 'KPICurrent_Fact' but I cannot get it to work.  

 

Any help is much appreciated!!!

 
PowerAppsError.jpg
Categories:
I have the same question (0)
  • Verified answer
    Pewoy Profile Picture
    14 on at

    For everyone that may face the same issue.

     

    I could solve this using LookUp('Your data resource table', 'FK of fact' = Gallery.Selected.'PK of Dimension')

     

    Check out this resource for more explanation.

    Using PowerApps Visual in Power BI (Integration) - YouTube

     

  • alrezac Profile Picture
    Microsoft Employee on at

    Hi,

     

    Thanks for your follow up post! I am glad that you were able to get this figured out. Hopefully this will prove useful for future communities users.

     

    Regards,

     

    Alex

     

    -------

     

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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard