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 / Search and Filter in g...
Power Apps
Answered

Search and Filter in gallery

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

toyer01_0-1644586661019.png

toyer01_1-1644586783153.png

 

 

SortByColumns(Filter([@Complaint], 'Distributor', TextSearchBox1_2.Text),"Date", Descending)

 

Am getting error because the distributor column contain choices in sharepoint, combo box in powerapp.

 

I want to able to use able to search for a distributor quickly using "Distributor" column rather than scrolling up and down to lookup for a particular distributor.

 

Please help.

 

Categories:
  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @Anonymous 

    Try this:

     

    SortByColumns(Filter([@Complaint], 'Distributor'.Value, TextSearchBox1_2.Text),"Date", Descending)

     

     

    As Distributor is a choice column you have to append .Value 

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the quick response @PowerRanger , what you shared didnt give error, but no record displayed on the gallery and record is contained in the sharepoint list. 

     

    I want the records to show and use Distributor as my search inside the textsearchbox

  • A-Roosevelt Profile Picture
    153 on at

    @Anonymous can you wrap TextSearchBox1_2.Text in Lower()

    Lower(TextSearchBox1_2.Text)

    So that your search will not be restricted to Upper or Lower case search

  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @Anonymous 

    Have you added this record recently? If yes you need to refresh your datasource in PowerApps 

    PowerRanger_0-1644588808357.png

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    thanks @A-Roosevelt ....Still no record dropped

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes, i did before and still do it on your instruction, no record shown

  • A-Roosevelt Profile Picture
    153 on at

    okay, let me try to replicate what you're doing

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    thanks @A-Roosevelt , will be expecting.... or does it has to do with the date?

  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @Anonymous 

    Ah. Where did you place the formular? This must be used for the Items property of your gallery

    SortByColumns(Filter([@Complaint], 'Distributor'.Value, TextSearchBox1_2.Text),"Date", Descending)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • Verified answer
    A-Roosevelt Profile Picture
    153 on at

    hello @Anonymous I tried it on my end and it worked.

    I noticed you did not satisfy the condition for the filter function

    SortByColumns(Filter([@Complaint], 'Distributor'.Value = TextSearchBox1_2.Text),"Date", Descending)
    or
    SortByColumns(Filter([@Complaint], Distributor = TextSearchBox1_2.Text),"Date", Descending)
    One of them should work
    And I hope your data source is coming from [@Complaint]?

    Try it and let le know how it goes.

    Cheers!!

     

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 337 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 250

#3
Mohsin Ali Profile Picture

Mohsin Ali 225

Last 30 days Overall leaderboard