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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

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.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (3,345)