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 / switch single people p...
Power Apps
Unanswered

switch single people picker to multiple people selection

(0) ShareShare
ReportReport
Posted on by 42

Hi all,

I use Sharepoint List as my data source of power apps, and one of the columns is Notificiation_Email. Everything worked fine when this column was single selection, but when I switched the Settings to allow multiple selections, a lot of errors appeared.

For the Combox_user items:

 

Distinct(
 'ITGC Setting',
 'Notification Email'.Email = User().Email
 )

 

For the gallery Items:

 

SortByColumns(
Filter('Setting', 
 (IsBlank(ComboBox_user.Selected.Value)||'Notification Email'.Email = ComboBox_user.Selected.Value)
),
"ID",SortOrder.Descending)

For the Notification_Email text in gallery:

ThisItem.'Notification Email'.DisplayName

 

I guess the problem is that the record turns into the table, but I dont know how to solve them. Can anyone help me? Thanks

Categories:
  • WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    Hi @tracycccc ,

    This should work, but note that it is not Delegable

    SortByColumns(
     Filter(
     'Setting', 
     (
     IsBlank(ComboBox_user.Selected.Value)|| 
     'Notification Email'.Email in ComboBox_user.SelectedItems.Value
     )
     ),
     "ID",
     SortOrder.Descending
    )

    If you require it to have some degree of Delegation, try this

    Ungroup(
     ForAll(
     ComboBox_user.SelectedItems As _Data,
     Sort(
     Filter(
     'Setting',
     'Notification Email'.Email = _Data.Value
     ),
     ID,
     SortOrder.Descending
     )
     ),
     "Value"
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • tracycccc Profile Picture
    42 on at

    Hi @WarrenBelz ,

    'Notification Email'.Email in ComboBox_user.SelectedItems.Value

    .Email reports error: The parameter type is invalid and the table value cannot be used in this context.

  • WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    @tracycccc ,

    OK - there is something wrong here I did not spot before - You can try .Email instead of .Value but the Combo Box Items of

    Distinct(
     'ITGC Setting',
     'Notification Email'.Email = User().Email
    )

    does not seem to be valid code to produce anything. What can you see in your choices ?

     

  • tracycccc Profile Picture
    42 on at

    I am sorry I intercepted the wrong code,the right one should be this:

    Distinct(
     Filter(
     'ITGC Setting',
     'Notification Email'.Email = User().Email
     ),
     'Notification Email'.Email
     )

    The "=" in the Combo Box items reports that The contents of the comparison are incompatible. Cannot compare table,  text.  This used to work when it was a single people selection, but an error was reported after switching to multiple selections😥

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard