Hi experts!
I have a source with this items :
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:
I tried with GroupBy and AddColumns, but your solution @v-qiaqi-msft is more practical and fast.
HI @Kepcla,
Please create this collection as below:
DropColumns(AddColumns(GroupBy(colG,"Site","Type","SG"),"Max",Max(SG,To)),"SG")
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.
WarrenBelz
146,537
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,908
Most Valuable Professional