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 / Search galler...
Power Apps
Answered

Filter / Search gallery (using text input) only evaluates first 3 characters

(0) ShareShare
ReportReport
Posted on by 37

Hello, PA Gurus

 

I'm sure there is a simple answer to this, but I have not been able to figure it out... 

 

I have a gallery with a 2 column table for the data source:  'PartNumber' &  'PartDescription'

(Table schema): 

 

tblMaterialList = Table(
 
 {
 'PartNumber':"",
 'PartDescription':"Consumables"
 },
 {
 'PartNumber':"1210112",
 'PartDescription':"Connector Male 3/4"" Tube x 3/4"""
 },
 {
 'PartNumber':"1210116",
 'PartDescription':"Connector Male 3/4"" Tube x 1"""
 },
 

 

  I am trying to filter / search the table by PartNumber or PartDescription with the following formula on the gallery Items:

 

Filter(tblMaterialList, txt_FieldTickets_MaterialSearch.Text in 'PartNumber' || txt_FieldTickets_MaterialSearch.Text in 'PartDescription')

 

The result works up to 3 characters in the text box and then nothing returns  (if I type 600112 the gallery is empty):

Screenshot 2023-09-21 at 11.28.19 AM.png

What am I missing here? 

 

Thanks in advance!

Categories:
I have the same question (0)
  • Verified answer
    SpongYe Profile Picture
    5,715 Super User 2026 Season 1 on at

    Hi @LeeEPMTS 

     

    Your use case worked for me:

    ClearCollect(
     tblMaterialList, 
     {
     'PartNumber':"",
     'PartDescription':"Consumables"
     },
     {
     'PartNumber':"1210112",
     'PartDescription':"Connector Male 3/4"" Tube x 3/4"""
     },
     {
     'PartNumber':"1210116",
     'PartDescription':"Connector Male 3/4"" Tube x 1"""
     }
    )

    Gallery1.Items:

    Filter(
     tblMaterialList, 
     txt_FieldTickets_MaterialSearch.Text in PartNumber || txt_FieldTickets_MaterialSearch.Text in PartDescription
    )

     

    Results:

    SpongYe_0-1695318489382.png


    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

     

  • LeeEPMTS Profile Picture
    37 on at

    That is strange indeed @SpongYe 

    It makes me feel somewhat better though, as I was sure my syntax was correct... 

    Can you try putting the PartNumber inside the same text box as the PartDescription please? 

    That is what I am currently doing on a button control in my design: 

    $"{ThisItem.PartNumber} - {ThisItem.PartDescription}"

     Screenshot 2023-09-21 at 11.56.45 AM.png

    I am curious if that is what is causing my issues? 

  • SpongYe Profile Picture
    5,715 Super User 2026 Season 1 on at

    Hi @LeeEPMTS 

     

    For me it's a little dfiferent:

    ThisItem.PartNumber & " - " & ThisItem.PartDescription

    SpongYe_0-1695319355409.png

    I don't think this had anything to do with the filtering. 

     

    -----------------------

    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

     

  • LeeEPMTS Profile Picture
    37 on at

    @SpongYe 

    Yes, I agree... I just tested with a blank gallery. 

    This control is inside a component and using a flexible height gallery. I feel like there are PowerApp Gremlins affecting this for sure... 

     

    Will probably try rebuilding the gallery from scratch and see if that "fixes" the issue... 

     

    Thanks for your help, I'll report back what my result is... 

  • LeeEPMTS Profile Picture
    37 on at

    @SpongYe  so it turns out the filter and gallery were working fine... The issue was the dynamic height of the gallery, I have a formula that adjusts the height of the gallery to match the results from the filter and it was only accounting for the PartsDescription filter... 

     

    DOH!!! 

     

    doomedhomer.gif

     

    Appreciate the second set of eyes @SpongYe 

  • SpongYe Profile Picture
    5,715 Super User 2026 Season 1 on at

    Niceee good to hear that it worked 🙂 

     

    Happy coding. 


    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. 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

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard