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 / Show number of 'Comple...
Power Apps
Unanswered

Show number of 'Complete' items between date pickers

(0) ShareShare
ReportReport
Posted on by 321

Hi, 

 

I have an App linking to a SP list, within the SP list is a date column, which logs date an item is completed. 

 

In the App I have two date pickers, one for Start Date, one for End Date, I'd like to show the number of items with a completed date between the two dates specified in the date pickers. 

 

Thanks

 

Categories:
  • TheRobRush Profile Picture
    11,128 Moderator on at

    One Example, which is subject to delegation warnings (so only use it if your sharepoint source is under the 500/2000 (depending on your settings) row threshold.)

     

    On the start dates date picker, place in onchange

     

    Set(startdateVar,
    DateTimeValue(
     Concatenate(
     "11:59 PM ",
     Date(Year(DatePicker2.SelectedDate),Month(DatePicker2.SelectedDate),Day (DatePicker2.SelectedDate))
    )))

     

    In the end dates,

     

    Set(enddateVar,
    DateTimeValue(
     Concatenate(
     "12:00 AM ",
     Date(Year(DatePicker3.SelectedDate),Month(DatePicker3.SelectedDate),Day (DatePicker3.SelectedDate))
    )))

     

    We do this because by default datepicker is setting them both to 12am which will technically return wrong in between dates as it will include dates ON the start date.

     

    Now if you have a smaller datasource under the threshold a simple label with the following will count the rows where DATE falls between selected dates

     

    CountRows(
    Filter(
     SalesEvalCurrent,
     DATE>startdateVar &&
     DATE<enddateVar))
    )

     

    If you are over threshold you will need to first collect the ones that match, because countrows is not delegable.

     

    You can do that by placing the following on a button, or in both onchanges of datepickers, etc wherever you want really.

     

    ClearCollect(MyDateRange,
    Filter(
     SalesEvalCurrent,
     DATE>startdateVar &&
     DATE<enddateVar)))

     after which you simply have the label count that new local collection

  • JimboSey Profile Picture
    321 on at

    Thank you, but will this provide me the number of items from the date complete column?

     

    Thank you

  • TheRobRush Profile Picture
    11,128 Moderator on at

    Whatever column you want. In the datasource I used, DATE is my column containing the date so just change it to what you use.

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 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard