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 / Using CountIF and date...
Power Apps
Unanswered

Using CountIF and date range

(1) ShareShare
ReportReport
Posted on by 101
I have a simple gallery in PowerApps that counts the number of request status that equal the distinct list of those same statuses.
 
For example:
 
On Hold - 23
In Progress - 65
Request Completed - 170
 
This is the formula for the text field in my gallery that displays the value: 
 
Items Property for Gallery: 
Distinct(SVMRequests, 'Req Status')
 
Status Count Value Text Field:
CountIf(SVMRequests, 'Req Status' = lblreqstatus.Text)
 
I'd like help to update the formula so it counts only request statuses with a created date between 12 months ago and Today() instead of counting all of the rows in my dataverse table.
 
Thanks!!
I have the same question (0)
  • WarrenBelz Profile Picture
    154,494 Most Valuable Professional on at
    Probably something like this
    Distinct(
       Filter(
          SVMRequests, 
          CreatedOn > DateAdd(Today(), -365, Days)
       ),
       'Req Status'
    )
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn   
    Buy me a coffee
  • WarrenBelz Profile Picture
    154,494 Most Valuable Professional on at
    A quick follow-up to see if you received the answer you were looking for or if you need further assistance.

    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn   

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard