I am trying to build a dynamic rank column that will update when a slicer is selected. There are 2 slicers on the page: RegionalManager and SalesManager
There is only one table say tblSales. I have tried various combinations of RANKX but nothing seems to work. Can someone help me with this? Here is a sample data and scenarios.
RegionalManager SalesManager SalesPerson Sales Rank
Bill Patty John 20 6
Bill Patty Sally 10 7
Bill Patty Connie 30 4
Bill Connie Jim 40 3
Bill Connie Amanda 70 1
Zack Tracy Trevor 5 8
Zack Matt Breanna 25 5
Zack Mike Pam 45 2
If I filter on Bill the Rank should be this:
RegionalManager SalesManager SalesPerson Sales Rank
Bill Patty John 20 4
Bill Patty Sally 10 5
Bill Patty Connie 30 3
Bill Connie Jim 40 2
Bill Connie Amanda 70 1
If I filter on Bill and Connie the Rank should be this:
RegionalManager SalesManager SalesPerson Sales Rank
Bill Connie Jim 40 2
Bill Connie Amanda 70 1
------------------------------
Mike McLean
------------------------------