Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
pirotfab
Creator
Creator

display the top article in a text box

Hello,

I want to display in the text box t: the top seller (sum sales), the top article ...

Is it possible?

thank you in advance

Fabien

1 Solution

Accepted Solutions
sunny_talwar

You can use FirstSortedValue here:

=FirstSortedValue(DISTINCT Seller, -Aggr(Sum(Sales), Seller))

=FirstSortedValue(DISTINCT Article, -Aggr(Sum(Sales), Article))

View solution in original post

4 Replies
sunny_talwar

You can use FirstSortedValue here:

=FirstSortedValue(DISTINCT Seller, -Aggr(Sum(Sales), Seller))

=FirstSortedValue(DISTINCT Article, -Aggr(Sum(Sales), Article))

swuehl
MVP
MVP

=Only({<Seller = {"=Rank(Sum(Sales),4)=1"}>} Seller)

=Only({<Article= {"=Rank(Sum(Sales),4)=1"}>} Article)

You can play with the arguments of Rank() and use Concat() instead of Only() to display nonunique top Article / Seller with a same Sales amount, if you prefer this.

pirotfab
Creator
Creator
Author

thank you is exactly that