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

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

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (3,660)