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

Create Rank based on Total % Values

SupplierSpend:

load * inline

[

SupplierID, Spend

101, 20k

201,35k

301,40k

401,18k

501,22k

601,31k

701,42k

801,25k

901,39k

];

Hi All,

Above is the raw data set.

REQUIREMENT:

I need to create a Chart, that would show the Groups of the Supplier based on some criteria. Below is the criteria:

Group 1: All Supplier ID that consists of Top 80% of total Spend values

Group 2: Next 15%

Group 3: Last 5%.

SO, the chart may look like this below (ignore the calculation shown below; just a representation). Please help me in this.

                                                          

GroupSupplierIDRank
A7011/4
3012/4
9013/4
2014/4
B6011/3
8012/3
5013/3
C1011/2
4012/2

Regards!

12 Replies
jer_2011
Creator II
Creator II

Hola,

Gracias por tus elogios, espero me puedas entender, el Rank lo tomo como base de tu primer solicitud, esta el ejemplo en el mismo qvw que te mande, solo dale expandir ahí podrías observar como esta armado, esto quedaría así

ejemplo_17122014.png

por lo tanto queda asi

SupplierID = 301

Month  Group    Rank

Jan          A        3 / 3

Feb          A        1 / 3

Mar          A        2 / 3

Apr          A         3 / 3

.

.

.

espero te sea de utilidad, y se necesitas otro tipo de Rank, solo indícame y lo intentamos

saludos

dmohanty
Partner - Specialist
Partner - Specialist
Author

Hey Gerardo,

Greetings! Yes I can understand you (though by Google translator ).

Apologies for the delay in reply, as I didn't get a chance to work/look on this. Many more thanks again for a detailed explanation to my query. I got your point of solution now. You have the CountGroup based on the no. of Groups for each month.

However I needed in a reverse way. My need was the CountGroup should be based on Months.

For example,

ID = 301 from Group = A has 8 months, I was expecting the CountGroup to be 8 and we would have 8 Ranks.

Hope you understood. Is it possible?

Thanks in advanced!

jer_2011
Creator II
Creator II

Hola nuevamente

te paso nuevamente el ejemplo, la idea es entenderle a la función peek()

ejemplo_19122014.png

saludos espero te sirva