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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Filtering top 5 selling countries on a map chart

Hi,

Is there a way to filter top 5 selling countries on a map chart?

I have Country (country_name) as a point layer and used Sales (sales_amount) in the following expression:

Aggr(Max(sales_amount), country_name)

It's seems that the expression works, but how do I get the top 5 Countries? I tried using 'Rank' in the expression but it only returned 1 Country:

Aggr(Rank(Max(sales_amount),country_name),<=5)

Best regards,

Linas

Labels (1)
14 Replies
Not applicable
Author

Funny, this shows all the Countries, but top 4 have large circles. Changed from '<= 5' to '<= 6' and can see top 5 selling countries with large (same size) circles + the rest in tiny little circles.

It's not exactly what I have been looking for, but sufficient enough!


Thanks Mario!


Not applicable
Author

ok. don't forget to close the thread and mark an answer. so that others can search the forum whenever they come to the same scenario.

Not applicable
Author

Strangely, the rest (not top 5) all show same Sales amount... must be a bug..

Not applicable
Author

can you send an image of your expression and result ?

Not applicable
Author

Hi Mario,

Can you send me your email, as for confidentiality reasons I don't want to post any images on Qlik community page.

Many thanks,

Linas