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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
niranjana
Creator II
Creator II

Top Products

Hi,

I have a requirement where I have to show  Products with top sales in a text box in Qlik. IN case, I have two products with equal highest sales, I have to show BOTH  Products in the text box . How to do that?

Thanks in advance

Labels (1)
2 Solutions

Accepted Solutions
tresB
Champion III
Champion III

Put a distinct, like  =Concat(Distinct {<Product={"=Rank(Sum(Sales))=1"}>}Product, '|')

View solution in original post

niranjana
Creator II
Creator II
Author

Thanks a lot!! Its working!

View solution in original post

4 Replies
tresB
Champion III
Champion III

Try something like:

=Concat({<Product={"=Rank(Sum(Sales))=1"}>}Product, '|')

niranjana
Creator II
Creator II
Author

Hi,

I tried the formula its working partially. The Products are coming but being repeated many times like :

Pdt1,Pdt 1,Pdt1, Pdt2,Pdt2,Pdt2 ,.......and so on

tresB
Champion III
Champion III

Put a distinct, like  =Concat(Distinct {<Product={"=Rank(Sum(Sales))=1"}>}Product, '|')

niranjana
Creator II
Creator II
Author

Thanks a lot!! Its working!