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 / multifilter gallery ba...
Power Apps
Unanswered

multifilter gallery based on people column

(0) ShareShare
ReportReport
Posted on by 134

Hello! i have an approval app im working on that has 4 levels of approvals, i have built an interactive filter that i is working 3/4 times. the one im having issues with is that i want it to show everything that the user has to approve regardless of which step its in. my current code is such:

 

If(
    varStatus = 1,
    ApprovalCollection,
    varStatus = 2,
    Filter(
        ApprovalCollection,
        User().Email in 'First Approver'.Email,
        User().Email in 'Second Approver'.Email,
        User().Email in 'Specialty Approver'.Email,
        User().Email in 'Final Approver'.Email
    ),
    varStatus = 3,
    ColApproved,
    varStatus = 4,
    colDeclined
)
 
the varStatus = 2 one is only showing the first criteria, not the collective criteria.
Categories:
I have the same question (0)
  • Verified answer
    mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    hey @BHaapi 

     

    please try this:

    If(
     varStatus = 1,
     ApprovalCollection,
     varStatus = 2,
     Filter(
     ApprovalCollection,
     User().Email in 'First Approver'.Email ||
     User().Email in 'Second Approver'.Email ||
     User().Email in 'Specialty Approver'.Email ||
     User().Email in 'Final Approver'.Email
     ),
     varStatus = 3,
     ColApproved,
     varStatus = 4,
     colDeclined
    )
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • BHaapi Profile Picture
    134 on at

    i swear i did this, i must have missed something because it wouldnt format. Thank you so much!!

  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    Its acting nuts somedays xD

  • BHaapi Profile Picture
    134 on at

    directly related to this, do you know how to make a collection that would ONLY get what has their name in one of

    the approver slots, then it would add to their collection, but if they are not mentioned in any of those, it would filter out.

     
    User().Email in 'First Approver'.Email,
            User().Email in 'Second Approver'.Email,
            User().Email in 'Specialty Approver'.Email,
            User().Email in 'Final Approver'.Email
     

    i know its probably a simple clearcollect(Approverslisted, Filter('purchase approvals', SOMETHING HERE))

    but for the life of me i cannot seem to only collect the stuff that they are showing up in.

     

    for additional context, the people who are first approvers should ONLY see things they are listed in, but the other 3 approval levels are upper management and would be able to see everything.

     

    maybe this requires 2 collections based on the User().Email?

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard