cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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 II
Super User II

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.
Highlighted
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?

 

 

Highlighted
Super User II
Super User II

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.
Frequent Visitor

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

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