web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard