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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
krmvacar
Creator II
Creator II

Straight table Top2 show

Hi , 

I have a flat table in qliksense as below. I am calculating the rate based on package number and country.What I want here is to show the 2 countries with the highest rates based on a package number. How can I do this?

 

Dimesion1= [Packege Number]

Dimension2=Category

Dimension3=Country

Measure=sum(ERFMG)/sum(total<MATNR,MATNR_SIPNO,[Packege Number]> ERFMG)

krmvacar_0-1743059523904.png

I want to result.

 

Packege Number Category Country-Top1 Ratio %-Top1 Country-Top2 Ratio %-Top2

0010936761        Primer      BAE                64,1%            Hindistan                   35,9%

0009736567        Primer     Kazakistan      68,6%            Malezya                      18,7%

 

Thank you so much.

 

Best Regards

Labels (2)
2 Replies
Clement15
Partner - Specialist
Partner - Specialist

Hello,

Do you have a fake data set you could provide us with?

Anil_Babu_Samineni

there are certain ways that we have, example you can try like this

Firstsortedvalue(Category, -Max(Aggr(sum(ERFMG)/sum(total<MATNR,MATNR_SIPNO,[Packege Number]> ERFMG), Category)), 1)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful