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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Selecting top 3 frequency count values in script:

Hi all..

I have a field. I want to make new field in script with only top 3 values of that field.

Plz Help..

Thanks in advance...

2 Replies
Not applicable
Author

Try this:

A:
LOAD Name,
     ID,
     Region,
     Value
FROM

(ooxml, embedded labels, table is Sheet1);

B:
Load
Value as topValue,
recno() as recordno
resident A order by Value desc;

😧

Load

topValue as test

resident B where recordno <=3;

suniljain
Master
Master

If you want do at design level just see following similar king of example.

If(count( aggr(NODISTINCT Count(Mobile), Mobile )) >=3   ,count( aggr(NODISTINCT Count(Mobile), Mobile )))