web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Collection showing how...
Power Apps
Suggested Answer

Collection showing how many records per Created By value

(1) ShareShare
ReportReport
Posted on by 219
Hello,
 
If i have a sharepoint list called "Assignments" and within the list i have the following data fields/records
 
 
Sharepoint List  = Assignments
 
ID User_Email Assigned_Outlet
1 my@email.com 12
2 jack@jack.com 64
3 my@email.com 85
4 my@email.com 578
5 jack@jack.com 83
6 me@microsoft.com 2345
 
How would i best create a collection which will look at the records, and will count how many records there are PER "User_Email" value? for example, based on the above I'd have a collection which looks like the following:
 
User_Email Count
my@email.com 3
jack@jack.com 2
me@microsoft.com 1
 
Any help would be much appreciated. Thank you in advance.
Categories:
I have the same question (0)
  • timl Profile Picture
    36,774 Super User 2026 Season 1 on at
    The following formula will create the collection that counts how many records there are per 'User_Email'.
     
    ClearCollect(
        EmailCounts,
        AddColumns(
            GroupBy(AssignedOutlets, User_Email, UserGroup),
            Count,
            CountRows(UserGroup)
        )
    );
     
  • Suggested answer
    Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at
    Hey, 
     
    timl's way will work perfectly fine here's just another way to do it. 
    ClearCollect(
        CountAssignment, 
        AddColumns(
            Distinct(
                Assignments, 
                User_Email
            ),
            Count,
            CountRows(
                Filter(
                    Assignments,
                    User_Email=Value
                )
            )
        )
    )
     
    If this post helped you consider accepting it as a solution. Don't forget that you can accept multiple posts  as solution.
     
  • CCEP_Mike Profile Picture
    219 on at
    Hi both of you,
     
    Thank you very much for your support on this, Timl I've managed to implement your suggestion into my app and I've got it working as expect. Unfortunately I'm trying to mark your answer as the solution but I'm just getting an endless spinner when i mark it.
     
    If you both don't mind, I've asked a similar question but with a little more complexity to it. If you dont mind helping me on how to do that that'd be much appreciated.
     
     
    Thank you both of you :-)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard