Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn 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