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: 
stephenedberkg
Creator III
Creator III

Pivot table dimension

i want to show the top 1st rank salesman(only one salesman) in pivot table dimension

my dimension expression is below

=  Only(if( Aggr( rank( (sum({<Year= {$(=Max(Year))},MonthID={$(=Max(MonthID))},TransactionType = {'Inv'},Month,Year=,Quarter=>}$(vSalesBtn))

-

sum({<Year= {$(=Max(Year))},MonthID={$(=Max(MonthID))},TransactionType = {'Credit'},Month,Year=,Quarter=>}$(vSalesBtn)))),SalesMan)=1,SalesMan))

i want achieve like below image

top rank salesman.png

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

May be like:

= Aggr(If( rank( (sum({<Year= {$(=Max(Year))},MonthID={$(=Max(MonthID))},TransactionType = {'Inv'},Month,Year=,Quarter=>}$(vSalesBtn))

-

sum({<Year= {$(=Max(Year))},MonthID={$(=Max(MonthID))},TransactionType = {'Credit'},Month,Year=,Quarter=>}$(vSalesBtn))))=1,SalesMan),SalesMan)

If this doesn't help, try to share your sample qvw.

View solution in original post

2 Replies
tresB
Champion III
Champion III

May be like:

= Aggr(If( rank( (sum({<Year= {$(=Max(Year))},MonthID={$(=Max(MonthID))},TransactionType = {'Inv'},Month,Year=,Quarter=>}$(vSalesBtn))

-

sum({<Year= {$(=Max(Year))},MonthID={$(=Max(MonthID))},TransactionType = {'Credit'},Month,Year=,Quarter=>}$(vSalesBtn))))=1,SalesMan),SalesMan)

If this doesn't help, try to share your sample qvw.

stephenedberkg
Creator III
Creator III
Author

tresesco


Thank you