Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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

1 Solution

Accepted Solutions
sunny_talwar

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

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

Sure, try this

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

or

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