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 / Combining filters on s...
Power Apps
Answered

Combining filters on sharepoint list on person and group columns

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Dear Team,

 

I want to filter a sharepoint list based on the following criteria:

 

My List is having 3 columns, namely:

1.) Owner - which is a person or group column

2.) Author - By default our - Sharepoint person or group column

3.) Contributor - which is Multiple person or group column

 

A filtered item of the list would be related to the user if his name appears in any of the 3 above columns.

At the onstart of the app I get the mail id from the User().

then I need to apply check on First(Split(varUser.Email,"@")).Result. Suppose my mail Id is abcxyz123@pqrs.in

then after first split... code returns me abcxyz123. Now I want to check whether this text i.e. abcxyz123 is in Onwer mail id, Contributors (multiple persons column), or Author. If yes, then filter else do not filter.

 

Please suggest proper method to do this.

Categories:
I have the same question (0)
  • Verified answer
    cha_cha Profile Picture
    4,932 Moderator on at

    Hello @Anonymous 

     

    It would roughly be close to this:

    Set(varUser, First(Split(User().Email,"@")).Result)
    
    If(varUser in Owner.Email
     && varUser in Concat(Contributor,Email,"#")
     && varUser in Author.Email
     , ...... YOUR FILTER CONDITION HERE......
    )

     

     


      ✔️
    Just in case my response helped you solve your problem, please mark/accept this as a SOLUTION This helps community members if they experience a similar issue in the future.

     

      🔗
    🕸bistek.space  🐦 @cha_bistek  📺 @BisTekSpace 
  • KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    Hi @Anonymous,

     

    You can filter your SharePoint list by checking all three columns for the owner mail ID then save it to a new collection (e.g. colMyList) as follows:

    Set(colMyList, Filter(MySharePointList, gblOwnerMailId in Owner|| gblOwnerMailId in Author || gblOwnerMailId in Contributor));

     

    in and exactin operators reference: https://learn.microsoft.com/en-us/power-platform/power-fx/reference/operators#in-and-exactin-operators


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The concat function is helpful in navigation through the multiple persons column. Thank You for suggesting it.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 476

#2
WarrenBelz Profile Picture

WarrenBelz 365 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 339

Last 30 days Overall leaderboard