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 / Creating multiple tabl...
Power Apps
Answered

Creating multiple table display view from gallery

(0) ShareShare
ReportReport
Posted on by 383

I got a good head start with help previously here where I set up the gallery from multiple tables:

Solved: Re: Joining multiple tables for gallery view - Power Platform Community (microsoft.com)

 

But now, I want to display the detail information from the gallery on another screen. It's like over 50 fields combined from the two data tables from SharePoint.

 

For the View form screen showing the details, I set the "DataSource" property of the form to:

 

AddColumns(
 Orders As Main,
 "CustomerDetails",
 LookUp(
 Customers, 
 Email = Main.CustomerEmail
 )
)

 

  

And I set the "Item" property to:

 

Gallery3.Selected

 

 

I am getting no errors, but the only fields that are showing up on the form are from the Orders. I am getting no Customers fields and when I search to add fields in the side bar, the Customers fields do not show up, and I want to show them too.

 

Is there a way to do this in PowerApps? Or do I need to have a SharePoint table in the backend that combines both tables?

Categories:
I have the same question (0)
  • Kirsten2 Profile Picture
    383 on at

    @LaurensM thanks for your help with the last question! Since this is related, including you on this one, if you have any idea on how to solve this problem. I really appreciated your help thus far.

  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @Kirsten2,

     

    Forms operate on the actual Data Source itself. They expect e.g. an Excel table or SP list as their Datasource property. Objects or Lists defined within the app itself by adding columns or creating collections are not taken into account within the Form.

     

    A possible workaround would be using 2 view Forms: the first one will show the Order data and the second one will show the Customer data linked to the CustomerDetails column.

     

    Form 1 (Orders):

     

    Datasource property

     

    Orders

     

     

    Item property

     

    //Change ID to a unique field of the Orders list
    LookUp(Orders, ID = Gallery1.Selected.ID)

     

     

    Form 2 (Customers)

     

    Datasource property

     

    Customers

     

     

    Item property

     

    Gallery1.Selected.CustomerDetails

     

    Important note regarding app performance: It is not recommended to reference controls (Gallery1) from another screen, since the app is then obliged to keep the other screen in memory. When navigating to the second screen you could save the selected Gallery record to a variable and replace all the current Gallery1 references.

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Kirsten2 

    Another option is to not use a form at all and just place your labels on a blank screen wherever you like and reference your gallery directly in the text property of the labels.    

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard