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 / Displaying a gallery l...
Power Apps
Answered

Displaying a gallery list based on User Submission in SharePoint

(0) ShareShare
ReportReport
Posted on by 109

I'm trying to filter based on if the user has submitted an evaluation. I only want the current user to be able to provide an evaluation if they have not yet. 5 staff maximum will evaluate the same person (Hence UserSubmit1 - UserSubmit5). When adding in the coding for && UserSubmit's I get errors, see below:

 

 

With(
 {
 wGroup: LookUp(
 CharterProjectSP,
 EmailAddress = User().Email
 ).GroupCode
 },
 With(
 {
 wList: Filter(
 CharterProjectSP,
 GroupCode = wGroup && UserSubmit1 <> User().Email && UserSubmit2 <> User().Email && UserSubmit3 <> User().Email && UserSubmit4 <> User().Email && UserSubmit5 <> User().Email
 )
 },
 Filter(
 wList,
 EmailAddress <> User().Email
 )
 )
)

 

 

Can't get the right syntax. How can I fix this?

Thanks in advance.

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    @DarkShadows117 ,

    I am guessing that these fields are Person fields ? If so, try this

    With(
     {
     wGroup: 
     LookUp(
     CharterProjectSP,
     EmailAddress = User().Email
     ).GroupCode
     },
     With(
     {
     wList: Filter(
     CharterProjectSP,
     GroupCode = wGroup
     )
     },
     Filter(
     wList,
     UserSubmit1.Email <> User().Email && 
     UserSubmit2.Email <> User().Email && 
     UserSubmit3.Email <> User().Email && 
     UserSubmit4.Email <> User().Email && 
     UserSubmit5.Email <> User().Email
     )
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • DarkShadows117 Profile Picture
    109 on at

    That works, but out of curiousity, how do I do the inverse?
    I.e. check all the same UserSubmit fields to see if their name exists in just select staff members?

    I tried this code, but if I have the user's email in just one of the UserSubmit's fields, it provides all of the Users in that group, not just the singular one:

    With(
     {
     wGroup: LookUp(
     CharterProjectSP,
     EmailAddress = User().Email
     ).PosterTopic
     },
     With(
     {
     wList: Filter(
     CharterProjectSP,
     PosterTopic = wGroup
     )
     },
     Filter(
     wList,
     UserSubmit1 = User().Email && 
     UserSubmit2 = User().Email && 
     UserSubmit3 = User().Email && 
     UserSubmit4 = User().Email && 
     UserSubmit5 = User().Email &&
     EmailAddress <> User().Email
     )
     )
    )

     

  • WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    @DarkShadows117 ,

    I do not fully understand your question - do you want to see if the user is in any of the submit fields - if so use || instead of &&

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • DarkShadows117 Profile Picture
    109 on at

    I tried both || and && but I found out where I went wrong. I had an extra || where it wasn't meant to be. Thanks so much @WarrenBelz 

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
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard