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 / Filtering COMBOBOX bui...
Power Apps
Answered

Filtering COMBOBOX built in FORM

(0) ShareShare
ReportReport
Posted on by 35

Hello!

 

I am hoping that some more experienced users could help me out here.

 

I have created a form in canvas PowerApps that connects to SP list. In SP list, one of the columns are defined as "Person or Group", which means it automatically searches for names while typing. And that is ok. In PowerApps FORM it appears as COMBOBOX and its ITEM is defined as "Choices(SP_list.'Responsible (s)')". The issue here is that in the FORM I would like to limit suggested names. So I tried to do filtering such as ITEM=Filter(Choices(SP_list.'Responsible (s)'), Department="xxx"), also ITEM=Filter(Choices(SP_list.'Responsible (s)'), "xxx" in Department). Now, during search no options (or suggestions) are displayed. Alternatively, I tried to use function "Depends on" (Before that I created a dropdown with few department names). So it automatically corrects input such as ITEM=Filter(Choices(SP_list.'Responsible (s)'), Department = Dropdown15.Selected.Value). In this case, during search dropdown appears, but data, as initially, are unfiltered.

 

Question: Is there a way to filter suggested names during search? 

Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi,

    You can use below formula -

    Filter(Office365Users.SearchUser({searchTerm:ComboBox20.SearchText, top: 15}),Department="Information Technology")

  • MVP-Phipps Profile Picture
    3,521 Super User 2024 Season 1 on at

    @SAZ can you try something like this?

    Make sure you add the Office365 Users Connection to the app.

    Filter(Office365Users.SearchUser({searchTerm:ComboBox20.SearchText}),Department="Information Technology")

     

    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful because this can help others.

    LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
    YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
    Twitter: https://twitter.com/phipps0218

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    @phipps0218 , it looks exactly like my solution 😀

  • MVP-Phipps Profile Picture
    3,521 Super User 2024 Season 1 on at

    You don't need to specify Top.That is the difference.

     

    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful because this can help others.

    LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
    YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
    Twitter: https://twitter.com/phipps0218

  • SAZ Profile Picture
    35 on at

    Thank you for the input! Filtering did work, but it doesn't update SharePoint list with selected value after submitting Form. Any ideas?

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    I have added a combobox control in the DataCard, so i am using the below formula in Update property of DataCard - 

    ForAll(ComboBox20.SelectedItems,
    {
    Claims: "i:0#.f|membership|" & Lower(ThisRecord.Mail),
    DisplayName: ThisRecord.DisplayName,
    Email: ThisRecord.Mail,
    Picture: "",
    Department: "",
    JobTitle: ""
    })

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    The above formula is for multi select people picker. For single select just remove ForAll

    {
    Claims: "i:0#.f|membership|" & Lower(ComboBox20.Selected.Mail),
    DisplayName: ComboBox20.Selected.DisplayName,
    Email: ComboBox20.Selected.Mail,
    Picture: "",
    Department: "",
    JobTitle: ""
    }

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    The above formula is for multi select people picker. For single select just remove ForAll

    {
    Claims: "i:0#.f|membership|" & Lower(ComboBox20.Selected.Mail),
    DisplayName: ComboBox20.Selected.DisplayName,
    Email: ComboBox20.Selected.Mail,
    Picture: "",
    Department: "",
    JobTitle: ""
    }

  • Verified answer
    SAZ Profile Picture
    35 on at

    Thank you very much! It worked.

  • SAZ Profile Picture
    35 on at

    Hi,

     

    I realized when I Submit.Form only last entry is saved. It seems I need to join entries. Do you have any suggestion on how this can be done?

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard