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 / Show linked data from ...
Power Apps
Answered

Show linked data from one gallery to another gallery

(0) ShareShare
ReportReport
Posted on by 19

Hi All,

 

Searched a few posts but can't seem to tie everything together in my brain / app!

 

I have one gallery which shows data from one of my sharepoint tables and on the OnSelect for each line I want to be able to show data in another gallery based on the line but it needs to look at another sharepoint table and bring that data in.. hope that makes sense?

 

Gallery 1 = Sharepoint Table A --> Click on Line 1 --> Show Data in Gallery 2 (Table 1 ID = Table 2 ID)

 

Categories:
  • Ethan_009 Profile Picture
    4,840 Moderator on at

    Hi @abutler1986 ,

     

    You can use the following similar code for your Gallery 2:

    Filter(
     datasource,
     ID = Gallery1.Selected.ID
    )

     

    Note: ID is the columnName of your unique ID or any matching columnName

     

    Hope this helps

  • abutler1986 Profile Picture
    19 on at

    Thanks for the fast response, this is what I currently have on my OnSelect from the Gallery 1.. is this correct or is it missing something?

     

    UpdateContext({ SelectedRecord: ThisItem })

     

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @abutler1986,

    Have you solved your problem?

    If you want to display Table 2 in Gallery2 based on Gallery1 Selected ID, please set the Gallery2 Items property as below:

    Filter(Table2,ID=SelectedRecord.ID)
  • abutler1986 Profile Picture
    19 on at

    So can you confirm what I should have on my OnSelect on on the line for gallery 1?

     

    Also, for gallery 2 I may need to do a join to another sharepoint table can this be done?

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @abutler1986,

    The formula I provided is based on the varibale you set for the Gallery1.

     

    If both gallery 1 and gallery2 share the same ID, I think you just need to filter the Table2 based on the ID selected from the Gallery2.

    There is no need to do anything join.

     

    Hope you could try the solution and tell me the error if it does not work.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard