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 Apps
Answered

Gallery Display

(0) ShareShare
ReportReport
Posted on by 23

Hello! So one of the pages of my app has two galleries displayed, each synced to a different table. My two tables both have an "ID" and the information that go together have the same ID (for example, task 1 has an ID of 12345 and the steps that go with that task also have the ID of 12345). I currently have the second gallery with the code Filter(Task1, 'Step ID' = MasterGallery.Selected.'Test ID') to display the correct data with the correct task. However, nothing displays in the second gallery no matter what is selected from the first. Does anyone know how to fix this? 

Categories:
I have the same question (0)
  • haqian Profile Picture
    23 on at

    Update: So I changed the IDs to the words "TEST" to see if changing the numbers to a word works, and it did. Is there a reason why the number combination doesn't work? 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @haqian 

    It sounds like a disambiguation issue.  If the column names are the same in two tables, you can use RenameColumns() to change one so that the comparison will still work.  Something like

    Filter(
     RenameColumns(
     Task1, "'Step ID'","SID"
     ), SID = MasterGallery.Selected.'Step ID'
    )
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @haqian ,

    Could you please share a bit more about the formula that you typed within the Items property of the MasterGallery? Does it connect to the Task1 data source?

     

    Based on the formula that you mentioned, I think there is something wrong with it. I guess that you want to display related Steps in your Gallery2 based on the selected Task in your Gallery1, is it right?

     

    On your side, you should modify your formula within the Items property of the second Gallery to following:

    Filter(
     'Steps Table',
     'Step ID' = MasterGallery.Selected.'Test ID'
    )

    Note: I assume that the 'Test ID' represents the ID column in your first table -- Task1. And the MasterGallery is connected to your Task1.

     

    Also please make sure the 'Step ID' and the 'Test ID' are in same Data Type.

     

    Please try above solution, check if the issue is solved.

     

    Regards,

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

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard