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

Name of maximum value

How can I get of the name of maximum value

1 Solution

Accepted Solutions
simenkg
Specialist
Specialist

Are you not sorting by the individual values of Value? If you sort the individual values from biggest to lowest they are the same as doing it for sums of values. I think a correct way to do it is to use the expressions:

max:

=FirstSortedValue(Name,-aggr(sum(Value),Name))

and

min:

=FirstSortedValue(Name,aggr(sum(Value),Name))

View solution in original post

3 Replies
Not applicable
Author

This can be done by FirstSortedValue.Please find the application file

simenkg
Specialist
Specialist

Are you not sorting by the individual values of Value? If you sort the individual values from biggest to lowest they are the same as doing it for sums of values. I think a correct way to do it is to use the expressions:

max:

=FirstSortedValue(Name,-aggr(sum(Value),Name))

and

min:

=FirstSortedValue(Name,aggr(sum(Value),Name))

Not applicable
Author

thank you