web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Countrows using Yes/No...
Power Apps
Unanswered

Countrows using Yes/No column from DV

(1) ShareShare
ReportReport
Posted on by 421

Hi everyone.  I am trying to use this code to countrows BUT cannot get it to work once I add in the Yes/No column.

 

CountRows(
Filter(
TSGResponses,
'TSGActive (TSGResponses)'.Yes,
dbam_gametitle = ThisItem.Value
)
) & If(
CountRows(
Filter(
TSGResponses,
'TSGActive (TSGResponses)'.Yes,
dbam_gametitle = ThisItem.Value
)
) = 1,
" response",
" responses"
)

 

Once I remove the Yes/No column, everything works great.  If I start from scratch, using this code, 

CountRows(
    Filter(
        TSGResponses,
        'TSGActive (TSGResponses)'.No,
        dbam_gametitle = ThisItem.Value
    )
) it always counts the same thing, whether I use yes or no.
 
Any help would be amazing!

thanks
 
Chris
Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @ckserra33 - try:

     

    CountRows(
     Filter(
     TSGResponses,
     TSGActive = 'TSGActive (TSGResponses)'.Yes,
     dbam_gametitle = ThisItem.Value
     )
    ) & If(
     CountRows(
     Filter(
     TSGResponses,
     TSGActive = 'TSGActive (TSGResponses)'.Yes,
     dbam_gametitle = ThisItem.Value
     )
     ) = 1,
     " response",
     " responses"
    )

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard