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 / Max values from collec...
Power Apps
Unanswered

Max values from collection

(0) ShareShare
ReportReport
Posted on by

Hi experts!

I have a source with this items :

Source.jpg

 

And I want to create a collection only with maximum values (red values) , I try with "AddColumns", but it gives me the max for every row...maybe using "group by"...but I don´t know how!

it should be like this:

 

Collection.jpg

 

Categories:
I have the same question (0)
  • eccountable_dev Profile Picture
    18 on at

    Im just starting but my initial thoughts are to use the max of every record as a comparative to create a different collection that only shows the data like in your second picture. I figure you could use a button, on change event or anything of the sort to check and collect. 

    again I'm still pretty new at this but that is how I might go around the problem you are having. Someone probably has a more efficient and clearer answer then myself.

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    HI @Kepcla,

    Please create this collection as below:

    DropColumns(AddColumns(GroupBy(colG,"Site","Type","SG"),"Max",Max(SG,To)),"SG")

    vqiaqimsft_0-1713408914756.png

     

  • Kepcla Profile Picture
    on at

    I tried with GroupBy and AddColumns, but your solution @v-qiaqi-msft   is more practical and fast. 

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard