Hi,
I have a simple Dimension that has the following format:
Branch | Agent | ContactCode |
Branch1 | Agent1 | Code1 |
Branch1 | Agent1 | Code2 |
Branch1 | Agent2 | Code3 |
Branch2 | Agent3 | Code4 |
Branch2 | Agent3 | Code5 |
Branch2 | Agent4 | Code6 |
Branch3 | Agent5 | Code7 |
Branch3 | Agent5 | Code8 |
Branch3 | Agent6 | Code9 |
Branch3 | Agent1 | Code10 |
You can imagine that there are a few hundred codes looked after per agent but this is just for illustration purposes. As you can see, in most cases there is no overlap in the Branch to Agent, apart from a few cases where we have the same agent at different branches (Agent1).
What I would like to be able to do is get the aggregate of the Top N percent of each branch/Agent combination underlying Codes giving something like this:
Branch | Agent | Measures.SomeAggregate |
Branch1 | Agent1 | |
Branch1 | Agent2 | |
Branch2 | Agent3 | |
Branch2 | Agent4 | |
Branch3 | Agent5 | |
Branch3 | Agent6 | |
Branch3 | Agent1 |
Any suggestions are appreciated.
MrHH