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 / Label field displaying...
Power Apps
Unanswered

Label field displaying countrow results, but need to add a date condition, if no records found, display a 0

(0) ShareShare
ReportReport
Posted on by 580

Hi All,

 

I've been out of powerapps for a little while and struggling to get my head back into some of the formulas. 

 

I've got a label, that countsrows within a SP list and displays the results, based on some criteria:

 

CountRows(Filter(Tickets, Department.Value = "VALUE" && TicketStatus.Value = "On Hold"))

 

But for this formula, I need to add:

1) for records 30 days or more (based on the date they were created)

2) if no record's found, I need to display a 0 (zero)

 

Any help - much appreciated. 

Categories:
I have the same question (0)
  • Fredrik_A Profile Picture
    3,644 Super User 2026 Season 2 on at

    If you want to filter out items created in the last 30 days it should look like this:

     

    CreatedDate>=DateAdd(Today(),-30,Days)

     

    It should display a 0 per-default if there are no rows matching your filter if im not mistaken. 

  • AdamH Profile Picture
    580 on at

    @StretchFredrik 

     

    Maybe I should have pointed out, I'm not using the SP default field 'Created' - I'm using a single line of text field that contains the date. 

    2024-02-06 12_54_56-Power Apps and 1 more page - Work - Microsoft​ Edge.png

     

  • Fredrik_A Profile Picture
    3,644 Super User 2026 Season 2 on at

    You could do something like this

    DateTimeValue(YOURCOLUMN)
  • AdamH Profile Picture
    580 on at

    @StretchFredrik 

     

    I did this in the end, it worked out ok - Thanks for the prompts!

     

     

    CountRows(
     Filter(
     Tickets,
     Department.Value = "Clinical Practice Specialists" And TicketStatus.Value = "On Hold" And DateCreated <= DateAdd(
     Today(),
     30
     )
     )
    )

     

     

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
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard