Showing results for 
Search instead for 
Did you mean: 
Not applicable

GroupBy with Lookup value in sharepoint list

I'm working on powerApps to display the data from sharepoint as below:

First I have table which have looku valus inside it.

in power apps I'm trying to display valus inside galary from this table (highlighted fields are lookup) 

I used this formula but not work for lookup:

AddColumns(GroupBy('Activities', "Employee", "ByEmp"),"SumofPoints",Sum(ByEmp, 'Working hours'))


Dual Super User
Dual Super User

Hi @Anonymous 


GroupBy only works with Tex,Numeric or DateTime fields

Employee looks to be a people picker field

Create another text field - name it employee text - and store the name as a string there (so you can use it for groupby)



Reza Dorrani


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly



Community Support
Community Support

Hi @Anonymous,


Has your problem been solved?
If your problem has been solved, You could go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

Best Regards,
Community Support Team _ Lin Tu

Not applicable

Hi @RezaDorrani ,


Does GroupBy work in forms in Poweapps? I want to filter the choice column based on another choice column and I am wondering if it's possible with Group By ?




Helpful resources

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (4,274)