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

Notifications

Announcements

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,411 Super User 2025 Season 2 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,099 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard