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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Max function

Hi, I have created a text object that displays Max([Score]).  I get the highest score, but I want to also display the name who received the highest score.  How do I add an expression to say give me the name of the person who scored max([score])?  Thank you.

1 Solution

Accepted Solutions
muniyandi
Creator III
Creator III

Hi,

Try this expression.

= if(score=max(score),Customer) &'::'&max(score)

Or

=Aggr(if(rank(max(score))=1,Customer),Customer)&':'&max(score)


Thanks,

Muni

View solution in original post

6 Replies
ecolomer
Master II
Master II

Try this

Customer = p({<score={$(=max(score)-1)}>} Customer)

Anonymous
Not applicable
Author

I don't know what p is and it's not a good expression when I plug it in. 

ecolomer
Master II
Master II

P = Possible (are slected)

See this manual for SET ANALYSIS

muniyandi
Creator III
Creator III

Hi,

Try this expression.

= if(score=max(score),Customer) &'::'&max(score)

Or

=Aggr(if(rank(max(score))=1,Customer),Customer)&':'&max(score)


Thanks,

Muni

Anonymous
Not applicable
Author

Thank you so much!

muniyandi
Creator III
Creator III

Hi ,

You got result means mark it correct answer. It will helpful for others.

Thanks,

Muni