I'm trying to create a bar chart to show our Top 10 Customers (customer is x-axis, total sales amount it y-axis). I've got the chart set up with the axes correct, but when I try to filter it down from all of the customers to just the Top 10, I'm having difficulties. I used the following Calculated Field to get the rank of each customer (it works if I create a PivotTable of just Customer Name and Rank).
I thought that I would add this as a Filter field on the chart and select 1 through 10, but I get an error saying "The field you are moving cannot be placed in that area of the report." when I try to do so. I'm sure I've made a small error, but I can't figure it out and would love some help.
Code:
RANKX(ALL(Customer),SUMX(RELATEDTABLE(GLEntry),[ReportAmount]))
I thought that I would add this as a Filter field on the chart and select 1 through 10, but I get an error saying "The field you are moving cannot be placed in that area of the report." when I try to do so. I'm sure I've made a small error, but I can't figure it out and would love some help.