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

Filter Gallery by Dropdown and Text search box

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 463

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
11manish Profile Picture

11manish 275

Last 30 days Overall leaderboard