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.

3 REPLIES 3
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.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 70 members 2,999 guests
Recent signins:
Please welcome our newest community members: