cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Combo box for Sharepoint Column with Type = "Person or Group" or "Choice"

Hi, i have a sharepoint list in which one of the columns has the type "person or group" (called 'Requested by').

 

I would like to have a combobox in my powerapp which enables the user to filter the gallery by the values in the 'Requested by' column.

 

Intuition says that I should select the "Person" layout. However, the 'Requested by' column does not appear under Primary Text, Secondary Text, or Search Field. There are no options under Image. I don't have any better luck when i choose the "Single" layout instead of the "Person" layout.

 

I also notice that none of the columns in my sharepoint list that have the type "Choice" appear as options. 

 

Is it possible to use combobox with columns that have a choice type?

 

Thanks.

4 REPLIES 4
Highlighted
Super User
Super User

Re: Combo box for Sharepoint Column with Type = "Person or Group" or "Choice"

In the Items property of Combo Box add something like this:

Distinct('List Name', PersonGroupColumn.DisplayName)

In the Items property of the Gallery:

Filter('List Name', ComboBox.Selected.Result = PersonGroupColumn.DisplayName)

This assumes the combo box doesn't allow multiple selections. You will also get the Blue Dot indicating the filter isn't delegable and that is because complex fields (choice, Lookup, People, etc) in SharePoint aren't delegable.



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Anonymous
Not applicable

Re: Combo box for Sharepoint Column with Type = "Person or Group" or "Choice"

Thanks @Jeff_Thorpe, that works. 'Distinct' is also useful to know.

 

How can I get the gallery to show all values when nothing is selected in the combo box?

 

 

Super User
Super User

Re: Combo box for Sharepoint Column with Type = "Person or Group" or "Choice"

Have you tried using an If() statement. It would look something like this:

 

If(IsBlank(ComboBox),
  'List Name',
  Filter(
    'List Name', 
    ComboBox.Selected.Result = PersonGroupColumn.DisplayName
  )
)


--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Jakemarshgg
Level: Powered On

Re: Combo box for Sharepoint Column with Type = "Person or Group" or "Choice"

Sorry this is old as heck but I searched through what felt like a dozen posts and this one is the clearest and the most to the point to answer the desired question thank you greatly

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,849)