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

Rank Select Company

Hi,

I´m new in Qlik and need some help...

I need to put in a text object the sales rank of a selected company in a list box.

I ranked ok in a table but I only want the rank for that specific company in a text object

The expression used in the table is:

=Rank({<ProductName=, CompanyName=>}Sum(ProjectedSalesValue))

Thanks in advance,

Francisco

Labels (1)
1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

=Aggr(Rank(TOTAL SUM({1}ProjectedSalesValue),4),CompanyName)

OR

=Aggr(Rank(TOTAL SUM({1<ProductName=>}ProjectedSalesValue),4),CompanyName)

View solution in original post

6 Replies
MK_QSL
MVP
MVP

=Aggr(Rank(TOTAL SUM({1}ProjectedSalesValue),4),CompanyName)

OR

=Aggr(Rank(TOTAL SUM({1<ProductName=>}ProjectedSalesValue),4),CompanyName)

lironbaram
Partner - Master III
Partner - Master III

try this one

=max({<CompanyName=>}aggr(Rank(Sum({<ProductName=>}ProjectedSalesValue)),CompanyName))

have a look at the attach example

Not applicable
Author

Great tip!

=Aggr(Rank(TOTAL SUM({<ProductName=, CompanyName=>}ProjectedSalesValue),4),CompanyName)

Thanks a lot,

Francisco.

MK_QSL
MVP
MVP

Glad that you got your solution...

Please close the thread by selecting appropriate answer....

Not applicable
Author

How do I do that,

Thanks,

Francisco

Not applicable
Author

Forget the last message, I found out...