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 / SQL Connected Drop Dow...
Power Apps
Answered

SQL Connected Drop Down not showing all POs

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Guys, 

 

I have set-up combo boxes where if we enter a specific PO it pull all relevant information against the referenced PO. all of these combo boxes are connected to SQL database. Now the look-up work fine but I only see a very limited number of POs in the list and similarly a lot of POs do not look-up in the search but I can see them just fine when I look them up on SQL server. 

 

Am I missing something is the data point limit to PowerApps ? Any possible work arounds to this ? 

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 

    I don't think there's enough information here to answer your question.  Please show your code.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    this is the code I am using for the PO look-up : Distinct('[sbi].[PurchaseOrders_History]','Purchasing Document Number').Result

    Screenshot attached: now while the 658 PO is searchable and pops up in the combo box list. The 261 PO does not. 

     

    I am confused as to why the combox is unable to search or populate the complete list of POs. The same PO look-up just fine when I look it up through SQL server. 

     

    Thanks for your help!

     

     

    26123293.jpg
    658PO.jpg
  • timl Profile Picture
    36,944 Super User 2026 Season 1 on at

    Hi @Anonymous 

    The reason for this is because the Distinct function isn't delegable. There's more information here on this topic.

    https://docs.microsoft.com/en-gb/powerapps/maker/canvas-apps/functions/function-distinct 

     

    With SQL Server, the workaround would be to create a SQL Server view that returns the distinct values, and to use that to populate your combobox.

     

    image.png

  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 

    Agreed with @timl.  Suggest you take his advice.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for your response, much appreciated it. 

     

    Can you please elaborate more on the work around, this actually the first tool that I am building and not sure where to go from here to have the complete data pull. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @timl I guide from Microsoft states that, there will be a delegation warning when the it may not be possible to do so, I do not see any warning on my application when I try to run it.

     

    What can I do at this point to have a full pull from the SQL data source? 

  • Verified answer
    timl Profile Picture
    36,944 Super User 2026 Season 1 on at

    Hi @Anonymous 

    The workaround is to create a view like this in SQL Server..

     

    CREATE VIEW [vwDistinct_PurchaseOrders] 
    AS
    SELECT DISTINCT [Purchasing Document Number]
    FROM [sbi].[PurchaseOrders_History]
    

     

    You would then add the view [vwDistinct_PurchaseOrders] as a data source to your app, and set the Items property of your combobox to this view. That should hopefully solve your problem.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @timl 

     

    Thank you so much, quick question here, I have other comboboxes that look-up values based on the PO number referenced, would those need a separate (distinct) SQL view to work in tandem with the PO view. 

     

    Thanks for your help. I will try it out and get back to you on whether it worked. 

  • timl Profile Picture
    36,944 Super User 2026 Season 1 on at

    Hi @Anonymous 

    So long as you want to populate your other comboboxes with the same distinct values of POs, you can use the same view, rather than create separate views for each combobox.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I just implemented the SQL View this morning and will be testing out the solution later today, I will get back to you as soon as I have something on it ! thanks guys!

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,070

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 608

Last 30 days Overall leaderboard