Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Limit Dimensions

How to choose the first 5-10 dimention in a bar chart?

Say it has 20 dimentions, I want the 5th-10th ones. Is there any way to do it?

Thank you.

10 Replies
Anonymous
Not applicable
Author

U mean the 20 dimension fields or 20 values for a single dimension? explain more clearly.

ashfaq_haseeb
Champion III
Champion III

Hi,

Based on what criteria you need to filter this?

Regards

ASHFAQ

jyothish8807
Master II
Master II

Hi Anna,

Is there any criteria on which the dimension is sorted?

like assending order or descending sum(sales) or anything like this?

A screenshot will be helpful.

Regards

KC

Best Regards,
KC
kuba_michalik
Partner - Specialist
Partner - Specialist

Easiest way would be to enable X-Axis scrolling when number of items exceed 6 (under Presentation tab), and let the users scroll themselves until only positions 5-10 are shown 😉

If you want to hard-limit the display to only those positions, it's more complicated.

Anonymous
Not applicable
Author

U can use Calculated Dimension like this:

Here Product is the Dimension

and based on sum(price) i m ranking the product and taking only the dimension values falling between rank 5 to 10

=if(aggr(rank(sum(price)),Product) >= 5 and aggr(rank(sum(price)),Product) <= 10 ,Product)

Anonymous
Not applicable
Author

One way of doing this is through a calculated dimension where you use a combination of AGGR and RANK.

E.g.

=IF(

  AGGR(RANK(SUM(Amount),4),Dimension)>=5 AND AGGR(RANK(SUM(Amount),4),Dimension)<=10 ,

  Dimension

  )

See attached example.

Kind regards

Niklas

Not applicable
Author

I mean the dimension fields for a single dimension.

Just want Jan-14 to Sep-14.

1.JPG

Anonymous
Not applicable
Author

Ya u can achieve this in multiple ways:

1. When i see the chart,it seems the other dimension values are having null values- just go to Presentation tab enable the Suppress the null and Suppress the zero values options.

jyothish8807
Master II
Master II

Hi Anna,

What is there in expression?

Iam asuming it is  sum(Turnover Postponed)

Then try like this in expression:

sum({Date={'>= Jan-14 <= Sep-14'}>}[Turnover Postponed])

sum({Date={'>= Jan-14 <= Sep-14'}>}[Customer Serivce rate])

Regards

KC

Best Regards,
KC