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 / Gallery Filter Created...
Power Apps
Answered

Gallery Filter Created By and Assigned to

(0) ShareShare
ReportReport
Posted on by 7

So im on literally the final step to my app build and have run across this problem.. I have filtered my list so that the user can see only what they have created in the app and what I have manually assigned to them directly via sharepoint. However... On my screen I see my own items and also all the items that I am manually assigned to others because of the 'Created By' field. How can I hide or filter away items that I have created but ARE NOT assigned to me?

 

Currently my Gallery code is as follows:

Filter('Datasource', 'Created By'.Email = UserEmail || 'Manually Assign To'.Email = UserEmail)

 

Categories:
  • Verified answer
    zmorek Profile Picture
    3,272 on at

    If(User().Email <> "youremailhere@email.com", 
    Filter('Datasource', 'Created By'.Email = UserEmail || 'Manually Assign To'.Email = UserEmail),
    Filter('Datasource', 'Manually Assign To'.Email <> User().Email)
    )

  • UltimateShine Profile Picture
    7 on at

    Interesting, im getting a double blue line error on the 3rd row:

    Filter('Datasource', 'Manually Assign To'.Email <> User().Email)

     

    When I read the code it makes sense to me but Powerapps must have its own mind.

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @UltimateShine :

    double blue line represents the delegation problem, it is recommended to use this formula to replace:

    With(
     {TheEmail:User().Email}, 
     Filter('Datasource', 'Manually Assign To'.Email <> TheEmail)
    )

    In addition,If the problem has been resolved,please consider marking @zmorek 's solution as a 'Solution' to help others.

    Best Regards,

    Bof

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard