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 / Selected item from a g...
Power Apps
Suggested Answer

Selected item from a gallery, get information into another gallery inside container

(0) ShareShare
ReportReport
Posted on by 714 Season of Giving Solutions 2025
Hi!
 
The idea is I have a list with medical procedures and another list with the spots you are able to get them. The first gallery is the medical procedures and the other one is the spots, that should be in the container.
So what should be the control, when in a column in the medical procedures coincides with the spots (titles) appears in that container.
In UP Desti, should be the gallery that when an item from the other gallery is selected, it gets the spots that coincides both galleries (from a collumn in the procedures list and the titles in the spot list)
 
What should the control be?
Categories:
I have the same question (0)
  • Suggested answer
    MS.Ragavendar Profile Picture
    6,545 Super User 2026 Season 1 on at
     
    Based on the screenshots which you have provided i could UP Destí is not a ComboBox or a Dropdown its data inside the Gallery that is context‑filtered by the selection in the medical procedures gallery.
     
    Actually are you trying to implement parent–child gallery pattern?
    • First gallery defines context (the selected medical procedure)
    • Second gallery shows all “spots” whose Title matches a column value stored in the selected procedure record.
     
    So, Is this the expectation or requirement from yours ? 
    • If yes the correct control for UP Destí is a vertical gallery placed inside the container, not an input control.
    • A ComboBox would only make sense if the user is actively choosing destinations but in your case you want to show the destinations that are valid for the selected procedure.
     
    My Assumptions on the DataSource
    • List 1 has a column (for example UPDesti) that stores the spot title or multiple spot titles
    • List 2 has Title as the identifier
    Then the first gallery (medical procedures) drives everything. You do not need a variable if you rely on Gallery.Selected.
     
    If MedicalProcedures.UPDesti contains a single spot title, the Items property of the UP Destí gallery should be:
     
    With(
        {
            _selectedProcedure: galProcedures.Selected
        },
        Filter(
            Spots,
            Title = _selectedProcedure.UPDesti
        )
    )
     
    Note
    Is MedicalProcedures.UPDesti contains multiple destinations (for example stored as text like "Spot 1;Spot 2;Spot 2" ), then you still keep the control as a gallery, but the filter changes slightly. Assuming it is a separated text field and we need to write query with delegable friendly
     
     
    ✅If this helped, please Accept as Solution to help others ❤️ A Like is appreciated 🏷️ Tag @MS.Ragavendar for follow-ups.
  • Suggested answer
    Kalathiya Profile Picture
    1,756 Super User 2026 Season 1 on at

    You can achieve this using a Gallery control for both lists and filter the second gallery based on the selected item in the first one.

    Filter(SpotsList, Title = GalleryProcedures.Selected.YourColumn)
    
    //Replace the list name, column name and control name as per your setup. 

    This way, when a user selects a medical procedure the Spots gallery will only show records where the Spot title matches the values from the selected procedure (From procedure gallery).

    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------

    📩 Need more help? Just mention @Kalathiya and I’ll be happy to assist.

    ✔️ If this answer helped you, please tick “Does this answer your question?” so it can be marked as the Verified Answer.

    💛 A Like always motivates me to keep contributing!

  • Charlie Martharper Profile Picture
    714 Season of Giving Solutions 2025 on at
    Hi!@MS.Ragavendar
     
    The combobox is useful and I want to keep it there, because boss want it that way.
    The thing is, when getting the items below, selecting an item it changes everything in the container. But inside that container (procedures information), there is another gallery with information from other list (spots) which is the part I marked in the image. I have a gallery now inside but the thing missing is how to link when the column multi value choice from list procedures links to the other list spots.
    So I dont get every spot information, just the one that coincides with the procedures selected in the first gallery.
     
     
  • Charlie Martharper Profile Picture
    714 Season of Giving Solutions 2025 on at
    Hi @Kalathiya
     
    I get an error after the filter and before the "," after the spotlist name. Look:
     
    Why is this happening?
  • Charlie Martharper Profile Picture
    714 Season of Giving Solutions 2025 on at
    Hi @Kalathiya
     
    i tried this way and it seems I have another error:
     
    Think that column in procedure list proveidor is multi choice column.
    Still getting it wrong.
  • Kalathiya Profile Picture
    1,756 Super User 2026 Season 1 on at
     
    Try below formula:
    Filter(Proveidors_proves; Title in Gallery4_1.Selected.Proveidor.value)  
     
      // Please update the list name and column name based on yours.
  • Suggested answer
    MS.Ragavendar Profile Picture
    6,545 Super User 2026 Season 1 on at
     
    Try this.
     
    With(
        {
            _proveidors: Gallery4_1.Selected.Proveidor
        },
        Filter(
            Proveidors_proves,
            Title in _proveidors.Value
        )
    )
     
    ✅If this helped, please Accept as Solution to help others ❤️ A Like is appreciated 🏷️ Tag @MS.Ragavendar for follow-ups.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 490

#2
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 381

Last 30 days Overall leaderboard