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 / HOW TO FILTER DATE RAN...
Power Apps
Answered

HOW TO FILTER DATE RANGE IN SHAREPOINT USING POWER APP

(0) ShareShare
ReportReport
Posted on by

Am trying to spool record from sharepoint using powerapp.

 

I have record from 2022 to 2023 on the same list.

 

I want powerapp to only display only records for 2023.

 

In Sharepoint: I have DATE column in this format 3/17/2023  (MM/DD/YYYY)

 

CUrrently, below is my code in powerapp, but this spool both 2022 & 2023

 

CountIf (
Signature,
STATUS.Value = "available"
)

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @Anonymous,

     

    The filter below will only show records of 2023. I made some adjustments to make the query delegable: CountRows & Filter() instead of CountIf() and less than or equals & greater than to filter the date field. You will still get a delegation warning because CountRows is not delegable, since it cannot count over 2000 records. However, the inner Filter() function is delegable.

     

    CountRows(
     Filter(
     Signature,
     STATUS.Value = "available" &&
     (DateField >= Date(2023,1,1)&& DateField < Date(2024,1,1))
     )
    )

    Adjust the column & list name where necessary.

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

  • Community Power Platform Member Profile Picture
    on at

    Thank you @LaurensM 

     

    It worked!

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 765 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 272

Last 30 days Overall leaderboard