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: 
Anonymous
Not applicable

set analysis

Hi  i  have  two tables  like

table1:                                                                   

EID ENAME    

1     mahesh

2 rajesh

3 uday

4 pavan

5 raghu

6 rafi

Table2:

EID  DEPT  SAL

1   HR    10000

2 SE   25000

3 HR   60000

4 SE  30000

5 HR 12900

6 SE 23000

I want to display the  top max  two salaries from each department

how to write this in set Analysis

1 Solution

Accepted Solutions
sunny_talwar

May be this:

If(Max(TOTAL <DEPT> SAL, 2) <= SAL, ENAME)


Capture.PNG

View solution in original post

5 Replies
sunny_talwar

Like this?

Capture.PNG

Anonymous
Not applicable
Author

Hi  sunny

Thanks for  answer

But i was unable to open QVW file as  I am  desktop version ..

Anonymous
Not applicable
Author

but  i want to display  in pivot table

as dept name

     HR  uday

            Raghu

     SE Pavan

           Rajesh

like this i dont want to use  two expression i want to right it in a single expression

sunny_talwar

May be this:

If(Max(TOTAL <DEPT> SAL, 2) <= SAL, ENAME)


Capture.PNG

Anonymous
Not applicable
Author

Thanks  Sunny  its working