cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
da_1299
Helper I
Helper I

Count the overdue date in gallery

Hi All,

 

I am making a PowerApp with the overdue date in the gallery. I would like to count the number of date that is overdue in the gallery. May I know how can I achieve it?

 

da_1299_0-1623211010922.png

 

Thank you.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @da_1299 ,

 

I did a test for you.

Add a label control and set its Text property to:

CountRows(Filter(Gallery1.AllItems,MyDate<Today()))

 

v-xiaochen-msft_0-1623218878670.png

v-xiaochen-msft_1-1623218888491.png

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

 

View solution in original post

4 REPLIES 4
v-xiaochen-msft
Community Support
Community Support

Hi @da_1299 ,

 

I did a test for you.

Add a label control and set its Text property to:

CountRows(Filter(Gallery1.AllItems,MyDate<Today()))

 

v-xiaochen-msft_0-1623218878670.png

v-xiaochen-msft_1-1623218888491.png

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

 

CNT
Super User
Super User

@da_1299 Try this,

CountIf(yourGallery.AllItems, DateDiff(yourDate, Today())>0)

I would like to ask what should be Mydate? Thank you.

v-xiaochen-msft
Community Support
Community Support

Hi @da_1299 ,

 

This is column name.

Please replace it with your column name.

 

Best Regards,

Wearsky

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Kudoed Authors
Users online (3,199)