I have a simple PivotTable - Customers across the top, Salespeople down the side, each sale is the Sum of that Salespersons business with that Customer. I’m trying to do an external calculation that gives each Salesperson points based on their sales as a percentage of the max sales to that customer so:
If Salesperson A has $1,000 in sales to Customer 1 and the highest sales to that customer is $2,000, then Salesperson A gets .5 pts. The salesperson with $2,000 gets 1 pt and so forth.
Now, I’ve figured out how to make the points chart flexible in that it looks for the specific salesperson name and the specific customer name like this:
=GETPIVOTDATA(“Total”,‘RevenueReport’!$A$1,“Salespeople”,$A3,“Customer”,D$2)
where $A3 is the Salesperson’s Name on the Points sheet and D$2 is the Customer’s Name. This is so that if a refresh of the table moves people/customers around, the Point chart doesn’t break.
The problem I have is that I can’t seem to get the MAX calculation to be self-adjusting the same way. Ideally, it would look something like:
=GETPIVOTDATA(“Total”,‘RevenueReport’!$A$1,“Salespeople”,MAX(…),“Customer”,D$2)
So that it would “lookup” that customer and then return the MAX from the Total value for that customer.
So, is there anyway to do what I want?