web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Combobox not displayin...
Power Apps
Suggested Answer

Combobox not displaying all items in datasource

(1) ShareShare
ReportReport
Posted on by 81 Season of Giving Solutions 2025
Hello,
I have a simple power app.  I have a combo box called ComboboxCanvas2 items property=datasource
DemoForm is the datasource 
 
Gallery items property = combobox.selected
 
My datasource has over 2000 items but the combobox only shows the first 800.
 
I think I need to change the Combobox items property formula but I'm not sure how.  The column that the combobox is using is the Title column which is a text field.
 
 
If I change the combobox items property to
Sort(Distinct(Filter(DemoForm,StartsWith(Title,Self.SearchText)),Title),Value)
then I get distinct title values but when I select a title, in the gallery it only gives me one item with that title value instead of all the items with the same title value.
Title is a text field but multiple items have the same value in that text field.
How do I change that to give me all the  items with the same Title value?
 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    WarrenBelz Profile Picture
    153,684 Most Valuable Professional on at
    Hi @Sharon S 
    Firstly, your code seems to follow this blog of mine in getting the distinct values of a large list (so all of that is fine). 
     
    If you want all the records matching the selected value, the Gallery Items should be
    Filter(
       DemoForm,
       Title = ComboBoxName.Selected.Value
    )
     
    Please Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like
    Visit my blog
    Practical Power Apps    LinkedIn  
  • Sharon S Profile Picture
    81 Season of Giving Solutions 2025 on at
    What did I do wrong?
     
     
    Sharon
  • RobElliott Profile Picture
    10,391 Super User 2025 Season 2 on at
    If you're using the modern combobox it has a limit of 800 items.
     
    Rob
    Los Gallardos
  • MS.Ragavendar Profile Picture
    5,691 Super User 2025 Season 2 on at
     
    I have provided the version of @WarrenBelz code only. 
     
    This is how the way the delegation should be handled while dealing the large list of volume.
     
    With(
    {
    _Start:
    Filter(
    DemoForm,StartsWith(Title,Self.SearchText))
    },
    Sort(Distinct(_Start,Title),Value)
    )
     
    Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
  • WarrenBelz Profile Picture
    153,684 Most Valuable Professional on at
    I probably need to first clarify that the code from my blog that @MS.Ragavendar refers to is a variation (which also works) - I tend to use With a lot as it separates functions, however in this case the StartsWith function (which is Delegable) triggers before the Distinct operation (which is local and therefore not Delegated), so what you have will work just as well.
     
    However if the Items of your Combo Box (I have to assume here it is single choice) is
    Sort(
       Distinct(
          Filter(
             DemoForm,
             StartsWith(
                Title,
                Self.SearchText
             )
          ),
          Title
       ),
       Value
    )
    then the output of the Combo Box is definitely .Value.
     
    If you put what I posted in the Items of a gallery
    Filter(
       DemoForm,
       Title = ComboboxCanvas2.Selected.Value
    )
    there should not be an error assuming all of the above assumptions are correct - so what is different in your case and what does the error say (hover over the red X) ?
     
    Also @RobElliott's comment on the 800 item limit may be relevant to your first question if you have more than 800 distinct values. The solution to this is use a Classic Combo Box, where you can display up to 2,000 distinct records (by setting your Data Row Limit to this)
     
    Please Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like
    Visit my blog
    Practical Power Apps    LinkedIn  
     
  • Suggested answer
    VASANTH KUMAR BALMADI Profile Picture
    176 on at

    You’re running into two separate Power Apps behaviors at the same time, which is why this feels confusing:

    1. ComboBox row limits / delegation

    2. Distinct() changing the shape of your data

    Once you separate those, the fix is actually simple.

    1️⃣ Why the ComboBox only shows ~800 records

    This part is expected.

    Even though your data source has 2000+ rows, ComboBox controls are non-delegable by design for many scenarios. Power Apps will only bring back the first chunk of records (often ~500–2000 depending on settings and connector), and then it applies client-side filtering/search.

    So this formula:

    Items = DemoForm
    

    will never reliably surface all 2000+ values in a ComboBox, especially when search is involved.

    This is not something you can “turn off”.

    2️⃣ Why your Distinct() formula breaks the Gallery

    This is the more important issue.

    Your formula:

    Sort(
        Distinct(
            Filter(DemoForm, StartsWith(Title, Self.SearchText)),
            Title
        ),
        Value
    )
    

    does exactly what you told it to do:

    • Distinct() collapses multiple rows into ONE row per Title

    • The result is a single-column table called Value

    • When you select an item, ComboBox.Selected is not a record from DemoForm anymore

    • So the gallery can only ever show one row, because the original records are gone

    This is expected behavior.

    Distinct() removes row context — you can’t use it if you want all matching records later.

    3️⃣ The correct pattern (this is the key)

    🔑 Principle

    • ComboBox → used only to pick a Title value

    • Gallery → filters the original data source by that Title

    You should NOT bind the gallery directly to ComboBox.Selected.

    4️⃣ Correct working solution

    ComboBox Items

    Use Distinct() only here to improve performance and usability:

    Sort(
        Distinct(
            Filter(
                DemoForm,
                StartsWith(Title, ComboBoxCanvas2.SearchText)
            ),
            Title
        ),
        Result
    )
    

    Note: depending on your Power Apps version, the column name may be Result or Value.

    Set:

    ComboBoxCanvas2.Value = "Result"
    

    Gallery Items (THIS is the fix)

    Instead of:

    Gallery.Items = ComboBoxCanvas2.Selected
    

    Use:

    Filter(
        DemoForm,
        Title = ComboBoxCanvas2.Selected.Result
    )
    

    Now:

    • ComboBox selects a Title

    • Gallery returns ALL rows with that Title

    • No data is lost

    • Multiple records show correctly

    5️⃣ Why this works

    Control Purpose
    ComboBox Pick a distinct Title value
    Gallery Show all records matching that Title
    Distinct() Used only for selection, not data display

    This is the standard Power Apps pattern for large datasets with duplicate values.

    6️⃣ Important note about delegation

    Even with this fix:

    • ComboBox search is still non-delegable

    • For very large datasets (10k+), consider:

      • Pre-filtering by another column

      • Using a starts-with search + delegation-safe field

      • Moving selection logic to a gallery instead of a ComboBox

    But for ~2000 rows, this pattern is perfectly acceptable.

    ✅ Final summary

    • Your issue is not the ComboBox limit alone

    • Distinct() is removing the row context

    • The gallery must filter the original datasource

    • Never bind a gallery directly to ComboBox.Selected when using Distinct()

    ✅ One-line fix

    Gallery.Items =
    Filter(
        DemoForm,
        Title = ComboBoxCanvas2.Selected.Result
    )
    

    Once you do this, you’ll see all items with the same Title, exactly as expected.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 460

#2
WarrenBelz Profile Picture

WarrenBelz 381 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 330 Super User 2025 Season 2

Last 30 days Overall leaderboard