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 Apps
Answered

Count Function

(0) ShareShare
ReportReport
Posted on by 340

Hello

 

I have an app with a gallery, with data thats stored on Sharepoint. I also have a dropdown that controls my gallery.

Is there a way that when I select one of the options in the dropdown, it does a count and tells me how many there are? Kind of like a card in Power BI I guess?

 

Thank you

Categories:
I have the same question (0)
  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    Hi @pricey79 ,

     

    Well you can achive that by using the OnChange property of your dropdown... 

    UpdateContext(

                     {countMySelection:

                       CountRows(Filter(yourSharepointList, yourColumn =DropDown.Selected.Value))

                     })

     

    Put a label on the Screen, set it's text property to countMySelection ...and give it a try !

     

    Hope it helps !

  • rizkyaditya Profile Picture
    292 on at

    Hello @pricey79,

    Is this what you are looking for?

    The number that tells how many filtered result are there?

    rizkyaditya_0-1604568287143.png


    If yes, then you just need to add a Label beside your Dropdown.
    And then set the Text property to :

     

    "Filtered Result : " & CountRows(YourGalleryName.AllItems)

     

    It will show you how many items are there after filtering with drop down.

     

    I hope this help!

     

    Rizky - Indonesia

  • Verified answer
    pricey79 Profile Picture
    340 on at

    @rizkyaditya 

     

    Perfect, thank you very much 

  • pricey79 Profile Picture
    340 on at

    Thank you @gabibalaban 

  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    Please mark my answer as solution if it satified your needs ! Thank's a lot !

     

    Ah ... nevermind, you have accepted another answer as solution  already.

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