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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
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

1 Solution

Accepted Solutions
tresesco
MVP
MVP

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
tresesco
MVP
MVP

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