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 / Group By on Person fie...
Power Apps
Unanswered

Group By on Person field not working as it works for choice columns.

(0) ShareShare
ReportReport
Posted on by 147

Group By on Person field not working as it works for choice columns.

It’s working on Choice field using below formula AddColumns(GroupBy(AddColumns(colForChart,”name1″,Status.Value),”name1″,”TestName”),”Number”,CountRows(TestName)) Returns Count against each status

ananda_0-1637224014955.png

It’s not working on Person field
AddColumns(GroupBy(AddColumns(colForChart,”name2″,’Assigned To’.DisplayName),”name2″,”TestName2″),”Number”,CountRows(TestName2))

Expecting Result

User1 - 10

User2 - 10

User3 - 10

Appreciate any help on this. Thank you

 

Categories:
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @ananda I tried with the Person field and it works fine as seen below. Could be something wrong in your collection?

    CNT_0-1637226865213.png

     

  • Ananda Profile Picture
    147 on at

    ClearCollect(colPersonCount, AddColumns (GroupBy (AddColumns (TicketsCol, "name2", 'Assigned To'.DisplayName), "name2", "TestName2"), "Number", Count Rows (Test Name 2)))

     

    It's not working, My field is 'Assigned To'.

     

     

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @ananda In my example the field Person is of Type Person or Group as seen below. What is the type of the 'Assigned To' Field?

    CNT_0-1637241771560.png

     

  • Ananda Profile Picture
    147 on at

    Person or Group, Group By expects a text.. Not Person and Group.. Is there any work around..

    ananda_0-1637243791002.png

    Thanks

     

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @ananda Can I see a screen shot of the full formula which has the error?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard