Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Show Bottom 5 in Bar Chart??

Hi Friends,

I want to show bottom 5 values in Bar chart .This is sample data and logic.

F1F2
100f
90a
85o
80e
75j
70g
65c
60b
55i
50h
45l
40d
35m
30k
15n

I need to show bottom 5 values based on the condition that first  I should arrange the data in descending order and after that I need to check 75% of the sum(F1). in this case it is 671.  So I will consider only those (First) valuse whose sum is 671. Exclude all other values. So my result set will be

100f
90a
85o
80e
75j
70g
65c
60b
55i

I need to show bottom 5 rom this result set in the Bar chart

75j
70g
65c
60b
55i

Thanks in advance.

4 Replies
Clever_Anjos
Employee
Employee

Use Dimension Limits Tab

Capturar.PNG

Not applicable
Author

Hi divya,

first sort the loading order in reverse like

Untitled.png

and next use the

Untitled.png

Not applicable
Author

Hi,

When I show smallest 5 it shows

45l
40d
35m
30k
15n

But I need to show

75j
70g
65c
60b
55i
tresesco
MVP
MVP

Try expression something like:

Aggr(If(Rank(-Sum({<F2={"=Sum(F1)>Fractile(total F1,0.25)"}>}F1))<=5, Sum({<F2={"=Sum(F1)>Fractile(total F1,0.25)"}>}F1)), F2)