Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
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

Selecting top 3 frequency count values in script:

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;

D:

Load

topValue as test

resident B where recordno <=3;

suniljain
Honored Contributor

Selecting top 3 frequency count values in script:

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 )))

Community Browser