Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
Please find the attached application. I want to include variable in Pivot chart.
Help me to solve this.
Thanks & Regards,
Usha
Hi,
Use Rank function to find Top Sales member.
Rgds
Anand
Hi Usha,
The easiest way to get this done in a straight table (not using any complex aggregation and let the chart do it by itself) is:
=VTopSales
The more complex and poorer in performance (but needed in some cases) is to create a calculated condition using Aggr() and Rank() to get only those that meet some criteria. The Calculated Dimension would look like this
=If(Aggr(Rank(Sum(Sales), 4), [Emp No]) <= VTopSales, [Emp No])
and click for this new dimension the checkbox "Suppress when value is null", that will not show the "others" value, only the top X values. In this second case you don't need to limit the chart or sort it.
Hope that helps.
BI Consultant
Hi Usha,
If you use straight table so easly you are able to display Top Sales. I use your variable vTopSales on input box if you enter values the value check in straight table and according to value Max number is visible by setting properties in Presentation -> Max Number -> type variable name there like =VTopSales.
Any reason to use pivot table.
See the attached sample file.
Let me know about this.
HTH
Rgds
Anand