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 / Issue with "Pendi...
Power Apps
Answered

Issue with "Pending" leaves not showing in gallery filter

(0) ShareShare
ReportReport
Posted on by 9

Hello PowerApps Community,

I'm currently working on a leave planner app in PowerApps, and I've encountered an issue with the gallery filter. Specifically, when I click on the "Pending" button in the gallery, it does not show any leave records, even though there are records in the corresponding SharePoint list.

I have already validated that the SharePoint list contains leave records with the "Pending" status and that the data connections are correctly established.

I would appreciate any guidance or suggestions on why the "Pending" leaves are not displaying in the gallery when the corresponding button is clicked. Am I missing something in the formula or overlooking any potential issues?

Thank you in advance for your help!

 

p_pravasi_0-1685550647702.png

 

Categories:
  • CU22081303-0 Profile Picture
    150 on at

    Hi, do any records show when you click any of the other buttons? I'm wondering if it is just Pending that has an issue, or if nothing is showing at all.

     

    Could you share the OnSelect for the Pending button, as well as the OnSelect for one that works (if any work)?

    The code for the Gallery's "Items" property would also be useful.

  • p_pravasi Profile Picture
    9 on at

    It's working for all other status. It just has a issue with Pending status. Those 4 buttons are in gallery. Code for onselect property for the gallery is :

    If(ThisItem.Filter<>_requestTypeFilter,
    Set(_showDetails, false);
    Set(_requestTypeFilter, ThisItem.Filter)) 

  • p_pravasi Profile Picture
    9 on at

    This code has a problem : 

    Filter(
    LeaveRequestDetails,
    (RequestStatus.Value in ForAll(Split(
    FilterGallery.Selected.Filter,
    ","
    ), {Result: ThisRecord.Value}))
    )

  • Verified answer
    CU22081303-0 Profile Picture
    150 on at

    Sorry this one is hard for me to troubleshoot. If the other buttons are working, I would suspect something is wrong with what value the Pending button is trying to add to the filter. Maybe capitalization or some unwanted quotation marks. I wish I could be more helpful, good luck!

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