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 by Drop...
Power Apps
Unanswered

Filter Gallery by Dropdown and Text search box

(0) ShareShare
ReportReport
Posted on by

Hello, 

 

I am trying to filter a Gallery by Dropdown and Text search box.

I tried this code↓

SortByColumns (Search (Filter ('DTC List for App', Title= Dropdown1.Selected.Value),TextSearchBox1.Text,"Identifier"),"Title",If (SortDescending1,Descending,Ascending))

 

Filter without Dropdown is like this, ↓

SortByColumns (Filter([@'DTC List for App'], StartsWith (Identifier, TextSearchBox1.Text)),"Identifier", If (SortDescending1, Descending, Ascending))

DTC.png

CIOM→”Title”, B000101→"Identifier"

 

I want to filter Title by Dropdown and Identifier by Text Search Box.

Could anyone show how I can make it work?

 

Thank you,

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

    Hey @Anonymous 

     

    Can you please confirm if you are getting any error while using the below expression?

    SortByColumns (Search (Filter ('DTC List for App', Title= Dropdown1.Selected.Value),TextSearchBox1.Text,"Identifier"),"Title",If (SortDescending1,Descending,Ascending))

    Please share more information about the part where you need help with the expressions?

     

    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

    The Gallery didn't show any data when I tried the code I pasted, 

    but it worked this time!

     

    Thank you very much!

     

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