cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Applications
Helper IV
Helper IV

CountRows Not Working Properly

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.

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@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.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

4 REPLIES 4
RandyHayes
Super User
Super User

@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.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
Drrickryp
Super User
Super User

@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.    

 

 

@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!

Nevermind, I got it! Thank you gentlemen!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (2,990)