Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Aggr

Hi all.

I have this table:

ID, Product, Name, Amount

001, B, AA, 150

001, B, BB, 130

002, B, CC, 170

002, B, DD, 190

and i want obtain this output:

ID, Product, Name, max(Amount)

001, B, AA, 150

002, B, CC, 170

I try to use in a table

dimension: ID, Product, Name

and expression: only(aggr(max(Amount), ID, Product, Name)

but not works.

Someone can help me?

Regards,

Marco

1 Solution

Accepted Solutions
MayilVahanan

HI

May be try like this

=Aggr(Max(Amount),Id)

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

6 Replies
whiteline
Master II
Master II

Hi.

If you just want first lines you could use MinString(Amount)

Not applicable
Author

no works

MayilVahanan

HI

May be try like this

=Aggr(Max(Amount),Id)

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Thanks, It works!

whiteline
Master II
Master II

In this case you shoud have:

ID, Product, Name, max(Amount)

001, B, AA, 150

002, B, CC, 170 190

Not applicable
Author

its working fine

bu.JPG