web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Filter date base on two date comparision

(0) ShareShare
ReportReport
Posted on by 124

I though this would be simple but it turn out very strange. I have sharepoint list (Submission List) with two date columns, 'Due date' and 'Submission Date'. I am using gallery to show the list and now I want to filter the list in the gallery that 'Submission Date is greater than 'Due Date'. My code as below. It works if I compare it with today's date but when compare the two date, it return blank. I do have the list with 'Submission Date' less than 'Due Date'. The column is Date Time column with include time turn off

 

Filter('Submission List', 'Submisssion Date' > 'Due Date')

 

I do want delegation to work if that possible.

I have the same question (0)
  • Verified answer
    daydinho10 Profile Picture
    124 on at
    Re: Filter date base on two date comparision

    OK, I am able to solve this problem by using add column inside filter so there is additional column that I can use to filter. 

    Filter(
     AddColumns(
     'Submission List',
     "IsLate",
     If(
     'Submission Date' > 'Due Date',
     true,
     false
     )
     ),
     IsLate = true
    )

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 652 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 410 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 236

Last 30 days Overall leaderboard