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 / Date filtering for a d...
Power Apps
Unanswered

Date filtering for a data table

(0) ShareShare
ReportReport
Posted on by

I have a data table, a dropdown box which allows users to select an email, and on the items property for the data table I have the below code. The first part of the filter works fine but it doesn't filter on the date part (the 2nd or). Can anyone help?

 

Filter(
'James'' Test list',
Or(
Dropdown4.SelectedText.Value = Email,
Dropdown4.SelectedText.Value = Blank()
),
Or(
!DateFilter,
'Leaving date' <= DateAdd(
Today(),
30,
Days
)
)
)

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @JConnelly10 

    The first part of your formula makes sense. Could you explain what you are trying to do in the second part starting with Or(!DateFilter...

    You don't mention any datepicker or what a DateFilter is.

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @JConnelly10 ,

     

    Maybe you could try:

    Filter(
     'James'' Test list',
     Or(
     Dropdown4.SelectedText.Value = Email,
     Dropdown4.SelectedText.Value = Blank()
     ),
     If(
     DateFilter,
     'Leaving date' <= DateAdd(Today(),30,Days),
     true
     )
    )

     

    Best Regards,

    Bof

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard