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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
sr_qlikview
Creator
Creator

aggr top 100

i have a expression like

AVG( aggr(sum(sales),Client))

i want to get only top 100 clients based on sum(sales)

how to control data with in aggr set ?

Labels (1)
5 Replies
MayilVahanan

Hi

Use dimension limit or rank() function.

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Sokkorn
Master
Master

Hi sr_qlikview,

It can be done via:

1. Use Dimension Limit

2. Sum({$<Client = {"=Rank(Aggr(Sum(Sales),Client))<= 100"}>}Sales)

Regards,

Sokkorn

Not applicable

try this

take dimension---  client

                           sales

Expression--      aggr(if(rank(sum(sales))<=100,client),client)

Then output comes fine.

Not applicable

example

LOAD * INLINE [

    client, sales

    a, 10

    b, 30

    c, 20

    d, 5

    e, 40

];

Dimension-- client

                  sales

expression--   aggr(if(rank(sum(sales))<3,client),client)

Then output comes like this

clientsalesTop two client
b30b
e40e
narender123
Specialist
Specialist

Hi,

1)In dimention limit select  show only box select * largest

                                                             * 100

2)In expression tab select Sum of rows

Thanks.

Narender