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 / Trying to filter a Gal...
Power Apps
Unanswered

Trying to filter a Gallery where date is empty

(0) ShareShare
ReportReport
Posted on by 8

I see half dozen topics or more on this, but no solution has worked for me and I cannot figure out why. I have a sharepoint list with some users and Term_Date, which may or may not have any dates in it. I have a powerapp with a gallery connected to this list, and I'm trying to get users that are actively employed (no term date) or have been termed in the past 90 days.

 

Filter(MRL,Manager.Email = varUserEmail, Term_Date > DateAdd(Today(),-90) || IsBlank(Term_Date))
 
with this I see users that have term dates entered which are more recent than 90 days prior to today, but I don't see the blank users. If I take off the or (||) and isblank portion, there are absolutely no changes to my returned results. I've similarly tried Value(Term_Date)=0 and even IsBlank(Value(Term_Date) to no avail. I've tried with or without the table before (e.g. MRL.Term_Date) but no difference other than occasionally breaking the formula entirely. In trying to troubleshoot I created a label with the text of
IsBlank(Value(RecordsGallery.Selected.Term_Date)) and that seems to work- clicking on users in the unfiltered gallery updates the label and I see true or false, and it lines up with if I'd expect them to show up on my filtered gallery. But adding the logic to the gallery items selected filter itself always results in nothing.
The column settings in Sharepoint are Type Date and time with Include Time Off, Friendly format No, default value None, no calculated value and no requirements/enforce unique values/validation.
 
Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @RickyFish89 - how large is your list?

  • RickyFish89 Profile Picture
    8 on at

    Currently just 8 records of test data. Full-scale will end up being a few hundred (unsure of exact number at the moment, but probably around 500).

  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    @RickyFish89 ,

    Just helping here as this is a bit tricky - you were close with Value(Term_Date)=0 - you actually need Value(Term_Date)<1

  • Verified answer
    Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @RickyFish89 

     

    Or try: Term_Date = Blank()

  • RickyFish89 Profile Picture
    8 on at

    Thank you, Amik!

     

    in the end, =Blank() was the only thing I've tried that worked. I ended up with:

    Term_Date > DateAdd(Today(),-90) || Term_Date = Blank()  as the relevant section of my filter.

  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    @RickyFish89 ,

    Just watch deleting the date - the outcome is not always blank

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard