Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

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:
  • Kepcla Profile Picture
    on at
    Re: Max values from collection

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

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at
    Re: Max values from collection

    HI @Kepcla,

    Please create this collection as below:

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

    vqiaqimsft_0-1713408914756.png

     

  • eccountable_dev Profile Picture
    18 on at
    Re: Max values from collection

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,537 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,908 Most Valuable Professional

Leaderboard