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

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 III
Dual Super User III

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 III
Dual Super User III

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Users online (7,254)