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 / CountRows Not Working ...
Power Apps
Answered

CountRows Not Working Properly

(0) ShareShare
ReportReport
Posted on by

Hello all!

 

I'm trying to get a CountRows formula working but it's not giving me any results.

 

Here is my current formula:

Text="Number of Participants Currently Enrolled: " & 
CountRows(Filter('Walking Tour Signup Tracker', 'Primary Date' = DataCardValue2.Selected))

 So I want to reference my SP list and the datacard selection within the PowerApp form to return how many people are enrolled against a certain date.

 

What am I doing wrong? I do get an error saying: "The CountRows operation is not supported by this connector." Is that typical? Do I need to use another formula to achieve this? Thanks.

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Applications 

    CountRows is not supported for the SharePoint connector (and many others).

    It still works though, and it is really misleading.

     

    However, Please consider changing your Formula to the following:

    "Number of Participants Currently Enrolled: " & 
    With({_items: Filter('Walking Tour Signup Tracker', 'Primary Date' = DataCardValue2.Selected)},
     CountRows(_items)
    )

     

    This should remove the warning.

     

    I hope this is helpful for you.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Applications 

    Could you please provide a screenshot of the form you are referring to and indicate the type of control that is inside the card.    

     

     

  • Applications Profile Picture
    on at

    @Drrickryp @RandyHayes 

     

    Thanks for the responses! Here is the screenshot, with the modified formula:

     

    Applications_0-1661362467022.png

     

    Label formula Text property:

    Text = "Number of Participants Currently Enrolled: " & 
    With({_items: Filter('Walking Tour Signup Tracker', 'Primary Date'.Value = DataCardValue2.Selected.Value)},
    CountRows(_items))

     

    DataCard2 (Primary Date) Item Property:

    Choices([@'Walking Tour Signup Tracker'].'Primary Date')

     

    The label isn't showing my text either, which is very odd. It just says "false". I know I changed it to 'Primary Date'.Value and DataCardValue2.Selected.Value, but it was giving an error when I didn't add the .value at the end. 

     

    Please advise, thanks!

  • Applications Profile Picture
    on at

    Nevermind, I got it! Thank you gentlemen!

  • darylvogan Profile Picture
    274 on at

    Why does this remove the warning? Is this a workaround or a proper approach?

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard