Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
You can use FirstSortedValue here:
=FirstSortedValue(DISTINCT Seller, -Aggr(Sum(Sales), Seller))
=FirstSortedValue(DISTINCT Article, -Aggr(Sum(Sales), Article))
You can use FirstSortedValue here:
=FirstSortedValue(DISTINCT Seller, -Aggr(Sum(Sales), Seller))
=FirstSortedValue(DISTINCT Article, -Aggr(Sum(Sales), Article))
=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.
thank you is exactly that