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 / Cannot connect Gallery...
Power Apps
Unanswered

Cannot connect Gallery to Form

(0) ShareShare
ReportReport
Posted on by 14

Hello,

 

I have a Gallery1 that was linked to Power BI dashboard via PowerBIIntegration. My Gallery is displaying 4 fields: MAP ID, MAP Title, MAP Description, and MAP status.

I then added a Form and connect the form to a Data Source named Table 1, which is the same source where my Power BI Dashboard is built on. I added 3 fields from Table 1 to the form: MAP ID, MAP Title, MAP Status, Remarks.

 

I want to connect Form to Gallery by using Gallery1.Selected but it gave me an error (Invalid Formula. Expected a value compatible with Data Source).

 

I then tried using put in the Item property of the form this formula Lookup('Table1', ID=Gallery1.Selected.ID) but that didn't work either.

 

Can anyone please help??? I've been stuck at this step for 2 days straight 

 

 

 

Categories:
I have the same question (0)
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    So.... I think that the problem is that you are using 2 different data sources. Even they are the same table, it assumes that they are different.

     

    What you can try to do is set the datasource of the form to your DataSource and write this on item Property:

     

    Lookup(OriginalDataSource, ID=Gallery1.Selected.ID)

     

    You can also use the form with the PowerBI DataSource, add the fields and sue Patch function to patch them to the original datasource.

     

    https://docs.microsoft.com/en-us/power-apps/maker/canvas-apps/functions/function-patch

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,

    Gonçalo Nogueira

    Check my LinkedIn!

    Buy me a coffee!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

  • comeafteralone Profile Picture
    14 on at

    Thank you @Nogueira1306 for your response!

     

    I was suspicious that the PowerApps recognizes my Data Source as 2 different sources too.

    In my original data file (Excel file on One Drive), I formatted it as table. But afterwards, when loading to Power BI, the data shows up as a new table (Table 1) and my original sheet (called MAP).

    When loading to PowerApps, the apps only recognize Table 1.

    Honestly I am not sure what is going on...

     

    Currently, both my BI Dashboard and my Apps are connected to Table 1, but again, it is being recognized as different databases.

     

    I was trying your suggestion with this formula Lookup(OriginalDataSource, ID=Gallery1.Selected.ID) -- I should be changing OriginalDataSource to the name of my source, which is Table1, is that right?? --- but no luck so far 😕 😕

     

     

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 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard