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

Dimension visualization in chart

I have a table like this:

ProductID, Color, Value

1, Red, 10

2, Red, 20

3, Blue, 30

4, Green, 20

ecc.

I need to visualize top x Product by Value, but instead of ProductId description, I need to visualize the Color.

Example of top 3:

Blue, 30

Green, 20

Red, 20

Thanks in advance

Andrea

7 Replies
cjohnson
Partner - Creator II
Partner - Creator II

Caletti,

There are a few ways I can think of to do this. Here are a couple ways:

1. Max Number:

You can set the max number of a straight table (if that is your desired visualization) with the Max Number box checked. As long as you have the table sorted accordingly it should show you the top color's.

Expression for the above chart is MAX(Value).

image10.png

2. Dimension Limits

You can use dimension limits to also achieve the same results. This can be used in multiple chart types:

image11.png

3. Using the rank function:

You can also use the rank function and an if statement in your expression. Please see Qlikview help for the rank function:

rank( [total] expression [, mode [, format]] )

Evaluates expression, compares the result with the result on the

other rows within the current column segment and returns the ranking

of the current row within the segment. For image charts the current

column segment is defined as it appears in the chart's straight

table equivalent.

Is "x" a static number or can this value change? If it changes - then you will instead need to introduce a variable that sets these limits.

Thanks,

Camile

sinanozdemir
Specialist III
Specialist III

Hi Caletti,

You can use Rank() with Aggr():

Capture.PNG

Hope this helps.

Thanks

Not applicable
Author

the easiest and most simple is to use dimension limits

maxgro
MVP
MVP

dimension limit is one of the ways

for other, see

Show Top Performers | Qlik Community

MarcoWedel

Hi,

another solution could be:

QlikCommunity_Thread_181848_Pic1.JPG

QlikCommunity_Thread_181848_Pic2.JPG

QlikCommunity_Thread_181848_Pic3.JPG

QlikCommunity_Thread_181848_Pic4.JPG

hope this helps

regards

Marco

Not applicable
Author

Hi Marco,

thanks for the useful advices.

I think this is the simpler and faster solution to implement for my case.

Andrea

sunilkumarqv
Specialist II
Specialist II

Straight table:

Dimension: Color

Measure:  Aggr(Max(value),Color)