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 / Filter gallery based o...
Power Apps
Answered

Filter gallery based on dropdown

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello I am starting on Powerapps,

 

What I would like is with the dropdown list, select a number (title element TE4492) and that in my gallery, I have the list of numbers with the same title (TE4492) and not just 1 unique element.

 

 

InkedCapture_LI.jpg

 

Thanks!! 🙂

Categories:
I have the same question (0)
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    If I understood correctly, you want to filter the items in gallery based on the dropdown on the top of your screen. If this is correct, then you can use the below expression:

     

    Filter(DataSourceName, ColumnName = DropdownName.Selected.ColumnName2)

     

    Here, you have to replace DataSourceName with your list, ColumnName with the name of column in your list and DropdownName with the control Name on the screen, and columnName2 with the name of column you want to pick from the dropdown.

     

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • JayMagness Profile Picture
    1,663 on at

    Hi,

     

    What I do is add another gallery in the first Gallery Element and should give you what you want. 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    Items property of dropdown

    Sort(Distinct(SPlist, title), Result)

    Items property of gallery

    Filter(SPlist,  Dropdown1.Selected.Result)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello , thank you for your answer I have an error

     

    Can you tell me if I have written correctly?

     

    Inkedtest_LI.jpg

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    @Anonymous 

     

    The value that you highlighted in blue needs to be replaced with the column name as per your data source. If this does not resolve the issue, can you please share the error details?

     

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello,

     

    I got two errors :

     

    5.PNG6.PNG

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    You actually use “Result” since distinct creates a single column table and that column is renamed “Result”.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks to @ all it's solved ! 

     

    Very fast thanks for all community and those who contacted me by private message.

     

    Have good day !

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    @Anonymous 

     

    If your issue is resolved, can you please mark the thread as solved, so that it is helpful for others as well.

     

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard