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

Announcements
Solving the Informatica Dilemma: On-Demand Briefing - Watch On Demand!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to get nationality based on rank

Hi Community,

I have the next 3 tables:

Nationaliteit I.PNG

Nationaliteit II.PNG

I would like to create a textbox which returns the nationality of the most common "Count_NP_ID" (based on rank) if the nationality is "EU".

Can you help me?

Thank you in advance!

Grtz,
Pascal

1 Solution

Accepted Solutions
Clever_Anjos
Employee
Employee

Try with (please adjust your field names)

FirstSortedValue({<[EU/NOT]={'EU'}>}Nationalteit,Rank)

View solution in original post

3 Replies
Clever_Anjos
Employee
Employee

Try with (please adjust your field names)

FirstSortedValue({<[EU/NOT]={'EU'}>}Nationalteit,Rank)

avkeep01
Partner - Specialist
Partner - Specialist

Hi Pascal,

You could try:

=ONLY(IF(AGGR(RANK(COUNT({$<Continent={"EU"}>}Continent)),Continent)=1, Country))

I created an example, so I'm not using your field names. Then it probably will be:

=ONLY(IF(AGGR(RANK(MAX({$<[EU/NOTEU_Empl])={"EU"}>}Count_NP_ID)),[EU/NOTEU_Empl])=1, Nationaliteit))

Anonymous
Not applicable
Author

Thanks Clever!