cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ptiwari
Level: Powered On

Count Staff members in a gallery

We created a powerapps for our employee directory. we connected this staff directory with our office 365 Users connectors.

The issue is when we try to count all staff in a gallery it not shows correct count.

Could you please provide the correct formula for all staff count?

Any help is much appreciated.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Count Staff members in a gallery

Hi @Ptiwari 
 
You can try using the expression:
 
CountRows(Gallery1.AllItems)
 
This will get the count of all the rows inside a gallery.
 
In case you have a very large gallery size, that doesnot load all the rows at the same time but loads them as user scrolls in the Gallery, then you might go for a local collection.
 
Hope this helps!

View solution in original post

1 REPLY 1
Dual Super User
Dual Super User

Re: Count Staff members in a gallery

Hi @Ptiwari 
 
You can try using the expression:
 
CountRows(Gallery1.AllItems)
 
This will get the count of all the rows inside a gallery.
 
In case you have a very large gallery size, that doesnot load all the rows at the same time but loads them as user scrolls in the Gallery, then you might go for a local collection.
 
Hope this helps!

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,815)