cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Count if date is equal to today.

Hi, I want to put a counter for completed tasks, but it has be to complete "today." 

Here is my collection that's in the OnStart Property of the App.

ClearCollect(colCompleted,Filter(Treasury, Status = "Done", 'Date Submitted' = Today()));

 

No errors, however it does not count. See pic below:
sdffdsfds.png

This is what's inside the Text property of the label CountRows(colCompleted)

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Champion
Community Champion

Re: Count if date is equal to today.

Hi @Neil82 ,

Try

ClearCollect(
   colCompleted,
   Filter(
      Treasury, 
      Status = "Done" && IsToday('Date Submitted)
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

4 REPLIES 4
Highlighted
Community Champion
Community Champion

Re: Count if date is equal to today.

Hi @Neil82 ,

Try

ClearCollect(
   colCompleted,
   Filter(
      Treasury, 
      Status = "Done" && IsToday('Date Submitted)
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Highlighted
Helper II
Helper II

Re: Count if date is equal to today.

Thank you, that worked. I do have a delegation warning, it says it might not work correctly on large data sets. At what point does this become a problem? Also, I will be posting a new problem, which is the biggest blocker for me so I can resume my progress.

Highlighted
Community Champion
Community Champion

Re: Count if date is equal to today.

Hi @Neil82 ,

If you set your limit to 2000 in Advanced Settings, that is the point it will be an issue, Any date filter is not Delegable. There are workarounds involving "shadow" numeric fields in yyyymmdd format.

Highlighted
Helper II
Helper II

Re: Count if date is equal to today.

I see, thank you.

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (9,723)