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 / Best way to count rows...
Power Apps
Unanswered

Best way to count rows based upon multiple column filter criteria

(0) ShareShare
ReportReport
Posted on by 30

Hello,

 

I want to offer a user 3 optional drop downs (or filters) each one relates to a separate column in my table (Manager, Period, Region) A 4th Drop down (which will be mandatory) is a list of Skill scores (1 through 7) relating to a SKILL column in my table. So they will select a skill score and I want to count the number of rows for that skill in the SKILL column. However, they can use the 3 drop downs to filter further.  Problem is they might opt to choose any combination of the filters or none at all, leaving them at their default values.

 

I have tried to create some nested IF statements to CountIF the SKILL column but the code is getting huge and difficult to maintain. 

  

Can anyone think of a better way to acomplish this?

 

Thanks for any tips

Categories:
I have the same question (0)
  • NPrice99 Profile Picture
    1,302 on at

    Hi @winwell

     

    What about CountRows(Filter(<datasource>, ((Filter1=Filter1)  && (Filter2 = Filter2) &&(Filter3 = Filter3)))

     

    Regards

     

    Nigel

  • winwell Profile Picture
    30 on at

    THanks but I already tried that.

     

    The drop downs default value is "Select" so if left to the defaults, that kind of query doesn't work.I tried checking for the selected value and if it is "Select", count all rows and if there is a selected value include that drop down as a filter criteria, but then you have to cater for the other 2 drop downs and the combinations are many.

     

    I might have to limit the user to just 2 filters (e.g Region and Period) at a time.

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 392

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 271 Super User 2026 Season 1

Last 30 days Overall leaderboard