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 / Combobox not searching...
Power Apps
Unanswered

Combobox not searching all items

(0) ShareShare
ReportReport
Posted on by 878

This is an App edited from a Sharepoint list. The comboBox is grabbing its option from a lenghty Excel file, has more than 30k rows. I did a workaround to search even the 31Kth element and no problem. The problem is that many elements are like 100301, 100302, etc (many same first digits). So, PowerApps does not grab all of them, it just decides on a random one and won't show the others in the search (it doesn't matter if this is inside the 500 limit or not). I already confirmed as well that PowerApps can recognise those missing elements, as I have another ComboBox dependent on this one that automatically changes to the row element in the Excel table. So, PowerApps DOES know that element exists, it's just not searching for it in the ComboBox for some reason.

I've tried with a Collection, with the Filter option, with Search, with StartsWith, etc and none seem to work. 

For example this formula in the Items section of the troublesome ComboBox:

Filter(NUMBERCollection; StartsWith(Text(Number); Text(ComboBox1.Text)) || Search(Text(ComboBox1.Text); Text(Number)) >= 0)

 

I've tried this as well:

Filter(Tabla2; Search(ComboBox1.Text; Number) >= 0 || Number = Value(ComboBox1.Text))

 

(Number is the excel Column where the data I need is, and Tabla2 is my Excel Table). 

 

Weirdly, I don't have the problem in this app with another ComboBox, as it searches perfectly on the default settings when you connect the ComboBox with the Excel. The only difference between them is that this correct one all row values starts with text. And the one that is giving me trouble all first characters for 30k elements are numbers. I've tried already setting the Excel format data to Text/Number and this doesn't seem to be the problem. 

 

Appreciate the help! How would you go about this?

Categories:
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @WorkingRicardo ,

     

    Is there any red error appear in your code?

    I don't think "ComboBox1.Text" can get the selected value in ComboBox1. Usually we use "ComboBox1.Selected.Value".

    Does ComboBox1 multiple select? What is Items of it?

    I assume that you want to filter number column in table2 according to value of ComboBox1.

    //StartsWith function: filter column which starts with specific characters
    Filter(ListName,StartsWith(ColumnName,ComboBox1.Selected.Value))
    
    //Search function:filter column contains specific characters
    Search(ListName,ComboBox1.Selected.Value,"ColumnName")

    Note: "Search" function isn't delegable. So, if data is greater than 2000 rows, I don't suggest you use "Search" in your code.

     

    Thanks.

    Rimmon

     

  • WorkingRicardo Profile Picture
    878 on at

    Thanks for your reply!

    A yellow error appears with the formula I provided, I changed it a bit to this (SearchText instead of just Text) but still yellow error (it does the same incomplete search function tho):

    Filter(Tabla2; Search(ComboBox2.SearchText; Number) >= 0 || Number = Value(ComboBox2.SearchText))

    The error says that I can't compare Text with Number type of data.

    I tried the one you mentioned

    Filter(ListName,StartsWith(ColumnName,ComboBox1.Selected.Value))

     It allow the incomplete search but with a red error (Function Startwith has invalid arguments), with specific errors of:
    This rule creates a circular reference between properties that is not allowed.A property cannot reference itself or other properties affected by its value. This is the shortest circular reference: 'ComboBox2'.' Items" -> 'ComboBox21.*Items'
    The name is not valid. "Value" is not recognized.

    And the Excel file has 30k rows so, just to check I tried it but another eror as well. As it is not recommended, let's just discard that option. 

    What else could I do?

     

    I'm using the Text function because I want that the user types in to search directly in the ComboBox. Selected.Value referes to what the user ends up choosing, no? That's why I didn't use that, correct me if I'm wrong, please. 

    And ComboBox isn't multiple choice. All the formulas I've been mentioning have been what's in the Items section. 

    And, yes! I want that the user can search while typing for data in the Number column of Table2 of the Excel document. 

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 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard