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 / in operator inside Fil...
Power Apps
Answered

in operator inside Filter not working properly

(0) ShareShare
ReportReport
Posted on by 124

I am writing below code in DefaultSelectedItems property of combobox. But it is only returning one record. How can i show all the users which are stored in SharePoint "Approvers" people picker field?

 

Filter( Office365Users.SearchUser({}), Mail in ForAll(LookUp(CustomerList,ID=44).Approvers,ThisRecord.Email))

 

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @uiit3155,

    Do you want the people picker to display all the approvers from the 44th record of CustomerList?

     

    If so, please set the DefaultSelectedItems as:

    Ungroup(Filter( CustomerList, ID=44).Approvers,"Approvers")

     

  • uiit3155 Profile Picture
    124 on at

    Hi @v-qiaqi-msft 

    Below error i am getting while writing the above expression. A column named 'Email' already exists.

    uiit3155_1-1691129005844.png

    Below is the screenshot of source to ungroup:

    uiit3155_2-1691129148753.png

     

    Regards

    @uiit3155 

     

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @uiit3155,

    This is my testing result, and Owner is a Person column allowing multi select in my list.

    vqiaqimsft_0-1691129640819.png

     

    Confused...

    Not sure how you configure your list, cannot tell anything useful.😂

     

    You refer to Approver column in your original column, what is this endor... column?

     

    This Approver column should be a Person column allowing multi select.

  • uiit3155 Profile Picture
    124 on at

    @v-qiaqi-msft 

     

    I used Approver column instead of EndorsementRequestCCTo to explain the query easily. EndorsementRequestCCTo is the person and group column with multiselect as per below screenshot.

     

     

    Ungroup(Filter( CustMastRequestCMIR, ID=44).EndorsementRequestCCTo,"EndorsementRequestCCTo")

     

     

    uiit3155_0-1691129777255.png

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @uiit3155,

    Check my above formula and see if there is difference with your settings.

    The formula is correct.

     

    Further, the error indicates that your column name may exist, which may cause that you could not refer to the real person column.

    Try to create a new person column and apply to the formula.

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard