Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
emteam162
Creator
Creator

Top 10

Hi All,

I want display top 10 and how have more then 15 items

 

dimitem
a25
b10
c12
d 78
e16
f15
g67
h3
m9

i want this

 

dimitem
d 78
g67
a25
e16
f15

Many thanks for your help

Said

Labels (1)
16 Replies
amit_saini
Master III
Master III

Try :

=IF(aggr(rank(sum(items)),dim)<=10,dim)

as your dimension.

Thanks,

AS

amit_saini
Master III
Master III

See the attachment.

Thanks,

AS

emteam162
Creator
Creator
Author

attached what I want

amit_saini
Master III
Master III

Yes than should be like this:

=IF(Aggr(Rank(SUM(items),15),dim)<=5,dim)

See the attachment.

Thanks,

AS

sunny_talwar
MVP
MVP

May be this?

If(Sum({<Customer = {"=Rank(SUM(Sales),4)<=5"}>}Sales) >= 150, Sum({<Customer = {"=Rank(SUM(Sales),4)<=5"}>}Sales))

Capture.PNG

qlikview979
Specialist
Specialist

Hi,

Try this may be this help full

T1:

load * Inline [

dim, item

a, 25

b, 10

c, 12

d, 78

e, 16

f, 15

g, 67

h, 3

m, 9

];

NoConcatenate

T2:

First 5

load

dim,

item

Resident T1 Order by item desc;

DROP Table T1;

qlikview979
Specialist
Specialist

Hi Try this ,

you will get correct output,

If  you want check my attached file

T1:

load * Inline [

dim, item

a, 25

b, 10

c, 12

d, 78

e, 16

f, 15

g, 67

h, 3

m, 9

];

Take Straight table

Dimention:-  dim,item

  Expression:- Sum(item)

  Step1:-Goto Presentation tab Select item  Hide colomn "item".

  Step2:-Goto  Select item  Click on "Restrict which values are displayed using the first expression

  Step3:-Select "Show only Values that are:"

  Then select  this "Greaterthenor Equal  to,      15,          Exact total

  And remove show others