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 dropdown need...
Power Apps
Answered

Combobox dropdown needs to reflect all people from a sharepoint list

(0) ShareShare
ReportReport
Posted on by 216

Hi all, I have a combobox dropdown that I am trying to populate only with people from a SharePoint list, filtered by a unique ID (#36 in the example below). There will be multiple rows, with a varying number of people in each row. There could be 1, 2, 3, or 4, people in a row, so the dropdown should reflect all of them in a given Unique ID. 

 

I tried "Choices([@Suppliers_2].Supplier).DisplayName", which worked, but it gave me the entire list of everyone in the organization, which is not what I want.

 

koontz_3-1715277533235.png

 

I just want the list limited to everyone in the "Supplier" column for "RequestID" 36 (for example). Is this possible?

 

 

koontz_1-1715274706085.png

 

 

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @koontz - in the Items property of that ComboBox, use:

     

    LookUp(
     Suppliers_2,
     RequestID = 36,
     Supplier
    )
    

     

  • koontz Profile Picture
    216 on at

    Thanks @Amik, I appreciate the response. However, this only gives me the first one. I need all of them in the dropdown.

     

    If I change it to be a Filter, then the dropdown is completely blank.

     

    koontz_0-1715286007481.png

     

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @koontz - the solution I provided will return all people in that multi-select people field for that Request ID. You should not need to use Filter here.

  • koontz Profile Picture
    216 on at

    Unfortunately, it only returns the first person (the one circled in red).

     

    koontz_0-1715287098943.png

     

  • cwebb365 Profile Picture
    3,302 Most Valuable Professional on at

    Amik is close, you just want to use Filter :). 

     

    Filter(Suppliers_2, RequestID = 36).Supplier 


    You can further break it out to .Supplier.DisplayName if you are just needing the text names and that's it. If you are patching back somewhere with People columns etc. Then you'll want .Supplier so you can display the DisplayName column in the ComboBox but utilize the Combo.Selected.ID etc. fields for the User to patch it. 

  • cwebb365 Profile Picture
    3,302 Most Valuable Professional on at

    Well to further add you probably want distinct, so you'll want to incorporate a With Statement. 

     

    With({SupplierNames: Filter(Suppliers_2, RequestID = 36)}, Distinct(SupplierNames,Supplier)) 


    This will get a list of Suppliers locally then Distinct them, since you use With it won't be non-delegable. 

  • koontz Profile Picture
    216 on at

    Thanks @cwebb365, I feel like I'm getting closer, but this provides an error:

     

    koontz_0-1715287856351.png

     

  • cwebb365 Profile Picture
    3,302 Most Valuable Professional on at

    Well looks like you should be using 'Request Suppliers' instead of Suppliers_2 based on previous screen? Or maybe that's what was wrong there. Anyway, seems you have a control called RequestID? You should have type ahead there for that column as you type Filter(Suppliers_2, then pick the column name in the type ahead there for the data. Shouldn't be comparing control to number which tells me there is a control called RequestID somewhere. Might have to add As SupplierData after Suppliers_2 and use SupplierData.RequestID if you can't get the type ahead to find the column right. 

     

  • koontz Profile Picture
    216 on at

    Ok, thank you. If I change it to "Request Suppliers", it shows a bunch of tables, instead of the names I expect from the SharePoint list, and my dropdown is blank. How do I parse through the tables to just display names?

     

    koontz_0-1715288307619.png

    koontz_1-1715288355963.png

     

     

  • cwebb365 Profile Picture
    3,302 Most Valuable Professional on at

    This is the part where if you just need Text display names and that's it, then add .DisplayName to the end of the Field in the Distinct Function. If that errors, then Add .Supplier to the end of the Filter, then Distinct(SupplierNames,DisplayName) 

     

    With({SupplierNames: Filter('Request Suppliers', RequestID = 36)},Distinct(SupplierNames,Supplier.DisplayName))

     

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard