Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Rank function for top 15 sales

Hi,

can any body give expression to find the top 10 sales of country.

dimensions are country and customer for grouping.tell me how rank function is advantage over dimension limit property.

regards

Mahesh

8 Replies
Sokkorn
Master
Master

Hi Mahesh,

Here is sample one: Sum({$<Country = {"=Rank(Aggr(Sum(Sales),Country))<= 10"}>} Sales)

Regards,

Sokkorn

Not applicable
Author

i am expecting answer with out set analysis.

regards

Mahesh

Sokkorn
Master
Master

Or you can play around with attached file.

Regards,

Sokkorn

Sokkorn
Master
Master

Maybe this one: Sum(If(Aggr(Rank(Sale),Country)<=15,Sale))

Regards,

Sokkorn

Not applicable
Author

can u pls resend the attached file

Not applicable
Author

PFA

Sokkorn
Master
Master

Here you are

Not applicable
Author

Try This dude,

=If(Aggr(Rank(Sum(Sales)),Customer,Country)<=10,Sum(Sales))

You can change the grouping order as per the requirement.