cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Super User
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!
1 REPLY 1
Super User
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!