Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

get name of maxvalue into title

Hi community,

once again i have a little question for u.

i have this measure

Max(aggr(Sum({$<[booking dis]={'stolen'}>}amount_SW)/Sum(amount_TS),articlename))

and i want to show the articlename of the max in the titel.

Can some one help me.Thanks in advance.

-Eric

1 Solution

Accepted Solutions
sunny_talwar

May be this:

FirstSortedValue(articlename, -Aggr(Sum({$<[booking dis]={'stolen'}>}amount_SW)/Sum(amount_TS), articlename))

View solution in original post

3 Replies
sunny_talwar

May be this:

FirstSortedValue(articlename, -Aggr(Sum({$<[booking dis]={'stolen'}>}amount_SW)/Sum(amount_TS), articlename))

swuehl
MVP
MVP

Maybe

=FirstSortedValue(DISTINCT articlename, -aggr( Sum({$<[booking dis]={'stolen'}>}amount_SW)/Sum(amount_TS),articlename) )

Not applicable
Author

Thanks to both of u,

made a stupid mistake sorry.

I had the same idea with the first sorted but i struggled with syntax.

can i delete the - infront of aggr to get the min or how can i get the min name?

Thanks

-Eric