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

Need help to display a value using a text object

I'm looking for help in the expression of a text object. How can I do a sum of a field and they display the text of the filed with the highest sum?

ex. Chrome     5,000

     Chrome     3,000

     IE              1,500

     Chrome     1,800

     IE              2,200

     IE               900

If we sum the values, Chrome has the highest sum and then I want the value of Chrome to be displayed as the text object. Can someone help me with the expression?

Thanks,

1 Solution

Accepted Solutions
Peter_Cammaert
Partner - Champion III
Partner - Champion III

Or

=FirstSortedValue(BrowserName, -Aggr(Sum(Value), BrowserName))

View solution in original post

5 Replies
sunny_talwar

May be like this

Max(Aggr(Sum(Value), FieldName))

Not applicable
Author

Thanks, it provides the count, but not the field name for some reason.

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Or

=FirstSortedValue(BrowserName, -Aggr(Sum(Value), BrowserName))

sunny_talwar

Look at Peter's response below....

I thought you said you wanted the value of Chrome

Not applicable
Author

Thanks, worked perfect.