Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
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