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

Get top sold product country wise in qlik sense

Hi Friends

I want, top sold product country wise in table chart.

Something like this:

Country NameProduct NameSales Amount
USAP1125148
IndiaP6362548

I have attached sample excel file and .qvf

1 Solution

Accepted Solutions
OmarBenSalem

Do as follow:

create a simple table:

as dimensions:

dim 1 : Country

dim 2: ProductName

Measure : if(rank(sum(Quantity),Country,ProductName)=1,Sum(Quantity),0)

then, under adds on: uncheck show zero values

the result would be : (see the attached app)

Capture.PNG

View solution in original post

4 Replies
OmarBenSalem

Do as follow:

create a simple table:

as dimensions:

dim 1 : Country

dim 2: ProductName

Measure : if(rank(sum(Quantity),Country,ProductName)=1,Sum(Quantity),0)

then, under adds on: uncheck show zero values

the result would be : (see the attached app)

Capture.PNG

Shahzad_Ahsan
Creator III
Creator III
Author

Hi Omar

Thanks for your answer.

It is working perfectly fine, but sorting is not working on this column, I don't know why.

OmarBenSalem

yes, since we're forcing things; sorting won't be possible directly when taping on the column title; u can sort by country: and put as an expression:

sum(Quantity)

:

Capture.PNG

result:

Capture.PNG

Don't forget to close the thread by marking the correct answer as correct and the helpful ones as helpful

Shahzad_Ahsan
Creator III
Creator III
Author

Thanks Omar