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 / Display only for speci...
Power Apps
Answered

Display only for specific users in gallery

(0) ShareShare
ReportReport
Posted on by

Hello all,

 

I am trying to make a power app and currently trying to figure out how to make a gallery only display items to the users that created them AND to users whose email is used in one of the fields on the items. So, for example, the column in question is just called "user email", so if I were to input a new item and put John Doe's email in the 'user email' field, I would want that item to display in the gallery to only me (the one who created it) and to the user whose email is in that field (John Doe).

 

I originally had it already set up to only display to the user that created the item with this formula in the Items property:

 

Filter('DataSourceName', Lower('Created By'.Email) = Lower(User().Email))

 

I found this from another topic question that had been asked in this forum and it has been working so far. Recently, we've had a change of needs in the app and now need it to do as I described above. How could I rewrite the above formula to do this? Or alternatively, can I just add to it to do what I need?

 

Thank you for any feedback!

 

 

Categories:
I have the same question (0)
  • Verified answer
    turnerj3 Profile Picture
    2,039 on at

    Try adding Or user email =User().email after the first condition in your filter

  • Becca_Hayes Profile Picture
    on at

    How would I go about writing the full thing out? I tried a few ways and it doesn't seem to be working for me. Sorry, I'm not very knowledgeable yet on how to write out formulas. 😅

  • Verified answer
    MaikoNGY Profile Picture
    38 on at

    Hello,

    You can try this :

    Filter('DataSourceName', 
     Lower('Created By'.Email) = Lower(User().Email) 
     Or
     Lower('user email') = Lower(User().Email)
    )

     

    The 'user email' is the name of the column where you put John Doe's email 🙂

  • Becca_Hayes Profile Picture
    on at

    Thank you, this worked! I was on the right track just had it formatted wrong.

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

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard