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 / Get max grouped rows a...
Power Apps
Answered

Get max grouped rows and retrieve all data

(0) ShareShare
ReportReport
Posted on by 44

Hello, I'm creating an app with gallery based on Sharepoint list "myRegistrar".
My data example are like this (ID is the Sharepoint list unique ID):

 

IDRequestGUIDUserNameSystemNameRequestType[...many other fields]
9dbe4922c-8231John SmithServer S0002<some_value><field_values>
10dbe4922c-8231John SmithServer S0002<some_value><field_values>
1132412ed1324r42Lucy FooServer S0003<some_value><field_values>
1232412ed1324r42Lucy FooServer S0003<some_value><field_values>



I need to dislpay in my gallery ALL the data columns from the max ID, grouped by RequestGUID:

 

 

IDRequestGUIDUserNameSystemNameRequestType[...many other fields]
10dbe4922c-8231John SmithServer S0002<some_value><field_values>
1232412ed1324r42Lucy FooServer S0003<some_value><field_values>

 


I'm struggling with AddColumns, Filter and GroupBy, but I was not able until now to get all columns.
I used to load Items in my Gallery:

 

 

 

 

 

 

AddColumns(
 GroupBy(
 myRegistrar;
 "RequestGUID";
 "Requests"
 );
 "MaxID";
 Max(
 Requests;
 ID
 )
)

 

 

 

 

 

I effectively obtain the correct ID, but I cannot be able to retrieve all other columns to display in my gallery (and related formview).

I'm searched among other posts, but none helped me...
Could anyone please give me some useful hint to solve this problem?
Thank you

Categories:
I have the same question (0)
  • Verified answer
    Gilgamesh Profile Picture
    44 on at

    I found answer myself: using table "Requests" obtained by my formula, I can get all columns I need.

    Sorry for stupid (at this point...) questions 🙂

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard