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 a Person Column
Power Apps
Unanswered

Filtering a Person Column

(0) ShareShare
ReportReport
Posted on by 19

Hello,

 

I'm trying to solve an issue, I want to filter a Person column(One_Persons column) based on a Choice column values(Modul column).

1. I tried this method, by using a Filter on Items and it seems that it's works.

Filter(list_One, Modul=cModulO.Selected.Value)

 

2. But, I want to filter with Distinct, so I tried this code: 

Distinct(Filter(list_One, Modul=cModulO.Selected.Value), One_Persons)

For Distinct function, Person columns shows the results in this way: [object Object]

 

Another situation that I met, for example in my method 1 is that the records wasn't saved in my form, after I press Save button.

Do you have any solutions in these cases?

object.png
Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Captainclaw ,

     

    Please try:

    ForAll(
     Distinct(Filter(list_One, Modul=cModulO.Selected.Value), One_Persons),
     Value.DisplayName
    )

     

    Best Regards,

    Bof

  • Captainclaw Profile Picture
    19 on at

    Hello,

     

    It's the same issue, appears as: [object Object]

  • CU18061035-1 Profile Picture
    18 Microsoft Employee on at

    try this

     

    Distinct(Filter(list_One, Modul = cModulO.Selected.Value), One_Persons.Name)

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • Captainclaw Profile Picture
    19 on at

    Received an error in this case: "Name isn't valid. 'Name' is not recognized."

  • Captainclaw Profile Picture
    19 on at

    I have disabled multiple selections and now it works.

    But my Person column value it's not saved in my Sharepoint when  I press Save form. Is there a configuration which I need to do on Default or DefaultSelectedItems?

  • CU18061035-1 Profile Picture
    18 Microsoft Employee on at

    Do u use patch or submitform function to save ur data? If u use patch please share ur onselect formula

  • Captainclaw Profile Picture
    19 on at

    @mmbr1606 No patch.

    These are my values:

    Combobox DataCard


    Default:
    DefaultSelectedItems: Parent.Default
    Items: Distinct(Filter(list_One, Modul=cModulO.Selected.Value), One_Persons.DisplayName)

     

    Persons DataCard


    Default: ThisItem.One_Persons

  • CU18061035-1 Profile Picture
    18 Microsoft Employee on at

    Yes ok but how do u save the inputs to your datasource

  • Captainclaw Profile Picture
    19 on at

    I'm using default submit function.

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 226 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard