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

Powerapps gallery showing count of distinct items in a sharepoint list

Hello,

I'm fairly new to Powerapps.  I have a sharepoint list (CreatedList) with a "Created By" column where different users are inputting records to the List.  I want to have a gallery in my Powerapps application that shows the different users and a count of the number records created for each user.  For example:

 

UserA       9

UserB       6

UserC       4

UserD       10

Preferably, I want to sort the gallery to show count in descending order (high to low).  Thanks in advance.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Nogueira1306
Super User
Super User

Olay. On your Gallery write this: 

 

Distinct(CreatedList, 'Created by')

 

Then, add a label in the gallery and write this:

 

CountRows(Filter(CreatedList, 'Created by'.Email = ThisItem.Email)) 

 

That will say how many lines you have from each  user.

 

I dont know you can do that sort...

 

If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!

Best regards,
Gonçalo Nogueira

Check my LinkedIn!

Check my User Group (pt-PT)!

Last Post on Community

My website!

View solution in original post

2 REPLIES 2
Nogueira1306
Super User
Super User

Olay. On your Gallery write this: 

 

Distinct(CreatedList, 'Created by')

 

Then, add a label in the gallery and write this:

 

CountRows(Filter(CreatedList, 'Created by'.Email = ThisItem.Email)) 

 

That will say how many lines you have from each  user.

 

I dont know you can do that sort...

 

If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!

Best regards,
Gonçalo Nogueira

Check my LinkedIn!

Check my User Group (pt-PT)!

Last Post on Community

My website!

augustine2
Helper I
Helper I

That works!  Thank you @Nogueira1306 -

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,311)