Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
kunkumnaveen
Specialist
Specialist

how to write expression

Hello,

        i am trying to display MAX value from a bar in a text box,what i mean is

Untitled.png

in the above chart 1000 is the max value ,so i want to display in a TEXTBOX    name and max value which is

                  Kiran :1000 

expression i wrote in text box is = max(sum(value))

i known it is wrong

any one plz what exp do i need use to get max value in a text box

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Sure, try this

FirstSortedValue(name, -Aggr(Sum(value), name))

or

FirstSortedValue(DISTINCTname, -Aggr(Sum(value), name))

View solution in original post

3 Replies
sunny_talwar
MVP
MVP

Try this

Max(Aggr(Sum(value), name))

kunkumnaveen
Specialist
Specialist
Author

i got value ,is there any chance to get name of that value from     name field

sunny_talwar
MVP
MVP

Sure, try this

FirstSortedValue(name, -Aggr(Sum(value), name))

or

FirstSortedValue(DISTINCTname, -Aggr(Sum(value), name))