cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

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

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,051)