Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
diptojyotidutta
Contributor II
Contributor II

How to get the name of people in rank one

Hi everyone,

I am new to qlik and exploring it currently.

My issue is that i have three fields named Name, Medals and Year. 

If no.of medals does not repeat itself than i am getting the name with the most medals using the syntax:-

Only({<Name = {"=Rank(Sum(Medals))=1"}>} Name)

But if Two or more Names have the most medals as in the case of mine than how shall i get all the names  with most medals. In my screenshot below,  Name D and E have the most medals. So how shall i get the names of both D and E in a text object?

 data.png

 

1 Solution

Accepted Solutions
jyothish8807
Master II
Master II

Hi,

Try this:

=concat(DISTINCT{<Name = {"=Rank(Sum(Medal),1)=1"}>} Name,',',-Medal)

 

Br,

KC

Best Regards,
KC

View solution in original post

5 Replies
jyothish8807
Master II
Master II

Hi,

Try this:

=concat(DISTINCT{<Name = {"=Rank(Sum(Medal),1)=1"}>} Name,',',-Medal)

 

Br,

KC

Best Regards,
KC
diptojyotidutta
Contributor II
Contributor II
Author

It worked perfectly for me. Thanks for your help @jyothish8807 

Kashyap_R
Partner - Specialist
Partner - Specialist

Hi 

Try this 

concat(DISTINCT{<Nam = {"=Num(Aggr(NODISTINCT Rank(TOTAL Sum(Medals), 1, 1),Nam))=1"}>} Nam,',',-Medals)

Thanks

Thanks and Regards
Kashyap.R
jyothish8807
Master II
Master II

you are welcome, please close the thread by marking the right answer 🙂

Br,

KC

Best Regards,
KC
diptojyotidutta
Contributor II
Contributor II
Author

Sorry my friend @Kashyap_R  but it didn't worked