web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter gallery based o...
Power Apps
Unanswered

Filter gallery based on dropdown

(0) ShareShare
ReportReport
Posted on by

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard