Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • SpongYe Profile Picture
    5,580 Super User 2025 Season 1 on at
    Re: Filter / Search gallery (using text input) only evaluates first 3 characters

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

  • LeeEPMTS Profile Picture
    37 on at
    Re: Filter / Search gallery (using text input) only evaluates first 3 characters

    @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 

  • LeeEPMTS Profile Picture
    37 on at
    Re: Filter / Search gallery (using text input) only evaluates first 3 characters

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

  • SpongYe Profile Picture
    5,580 Super User 2025 Season 1 on at
    Re: Filter / Search gallery (using text input) only evaluates first 3 characters

    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
    Re: Filter / Search gallery (using text input) only evaluates first 3 characters

    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? 

  • Verified answer
    SpongYe Profile Picture
    5,580 Super User 2025 Season 1 on at
    Re: Filter / Search gallery (using text input) only evaluates first 3 characters

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

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,605 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard