Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Experts,
I want to show top 10 products based on its percent. Please help.
here it is:
May be this...
if(aggr(rank(sum(Margin)/sum(Sales)),Product)<=10,sum(Margin)/sum(Sales))
What is your expected result?
As far as I see,
Product should be sorted alphabetically and Region wrt to the expression you used for product
Hi Raju,
Thanks for the expression.
Sorry, I have slight change in the requirement. I actually want top 10 worst products and the product dimension should be sorted alphabetically.
Thanks!
Hi
your expected o/p may be like below
take a look at this:
PFA,
Thanks Youssef & Raju,
I tried to implement it in my main application. But our application has many expressions in the pivot table which is causing issue.
I am wondering if i can use the same expression to create a calculated dimension, so i can have the correct worst 10 products always.
=if(rank(-(sum(Margin)/sum(Sales)))<=10, sum(Margin)/sum(Sales))
Could you help me with the expression.
Hi,
to be able to show the worst 10 dimension values correctly on your pivot table when you have multiple measure, you should add the Ranking condition on EVERY measure
Hi Youssef,
Infact i have only one measure. All the other measures are background colors and trends based on the same main measure.
So, instead of modifying all the expressions in the chart. I think, its eazy to use calculated dimension.
Please help with the expression.
Thanks!