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

Gallery Filter Question

(0) ShareShare
ReportReport
Posted on by 44

I have an app that displays a list of requests staff send to our HR dept for things like dismissals, new hires, and one-time payments. The data source is a SharePoint list. One-time payments have to be approved by a manager, so I setup a Flow that handles this and writes either 'approved' or 'denied' to a column (called 'Manager_Approval') when the manager completes the approval email. I setup a Gallery to display the requests to the HR team and created a dropdown that allows them to filter based on the different request types. This works great, however, they don't want to see any entries that are marked as a 'One-time Payment' and don't have either 'approved' or 'denied' written to the 'Manager_Approval' column, as that means the manager hasn't dealt with the approval email yet. I can't figure out how to write the Filter code to show all requests, excluding those marked as 'One-time Payment' that have a blank 'Manager_Approval' field, and allow for the dropdown filtering. Is this even possible?

Categories:
I have the same question (0)
  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    How many different requests types are being used?

  • pvanolinda Profile Picture
    44 on at

    Approximately 10.

  • Verified answer
    v-yutliu-msft Profile Picture
    on at

    Hi @pvanolinda ,

    Do you want to filter gallery based on three requirments?

    Try this formula:  (set the gallery's Items)

    Filter(tablename, Not(markfield="One-time Payment"),!IsBlank(Manager_Approval),request types=drop down1.Selected.Value)

    Just using "," can represent multiple conditions in filter function.

    Here's a doc about this function for your reference:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-filter-lookup

     

     

    Best regards,

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard