Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Not applicable

Quantile calculation with non numeric first dimension

Hi all,

I am trying to create a bar chart displaying the amounts of businesses in each city sorted by quantiles depending on their revenue (please see graph below).

I am guessing the steps in the formula would be:

Step 1: Rank the 100 companies in my sample by revenue (largest to smallest).

Step 2: Define 4 quantiles (each consisting of 25 companies)

Step 3: Count how often each city is represented in each quantile and end up with a bar chart (such as below)

I assume there has to be a formula doing all that work but unfortunately I have not quite figured it out.

I am very grateful for anyone helping me out!

Thank you!

Example.jpg

2 Replies
Employee
Employee

Re: Quantile calculation with non numeric first dimension

Can you share some data that you you used to post the bar chart above ?  if you have the data and desired output that would help me .

Not applicable

Re: Quantile calculation with non numeric first dimension

Hello Jonathan,

please excuse my late response. We found a way to solve the problem. Thanks for your post.

Greetings

Alex

Community Browser