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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Kohli
Creator II
Creator II

write the expression to get the highest selling product in a text box

How can i write the expression to get the highest selling product in a text box.

Fields available:

Product Name, Sales

3 Replies
ChennaiahNallani
Creator III
Creator III

Try this

=FirstSortedValue(Product,aggr(sum(Sales),Product))

Chanty4u
MVP
MVP

Try this

=FirstSortedValue(Product,-aggr(sum(Sales),Product))

Anil_Babu_Samineni

Can you provide sample data set and explain little more?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful