Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

MDX TopPercent across different attributes of same Dimension

$
0
0

Hi,

I have a simple Dimension that has the following format:

BranchAgentContactCode
Branch1Agent1Code1
Branch1Agent1Code2
Branch1Agent2Code3
Branch2Agent3Code4
Branch2Agent3Code5
Branch2Agent4Code6
Branch3Agent5Code7
Branch3Agent5Code8
Branch3Agent6Code9
Branch3Agent1Code10

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:

BranchAgentMeasures.SomeAggregate
Branch1Agent1
Branch1Agent2
Branch2Agent3
Branch2Agent4
Branch3Agent5
Branch3Agent6
Branch3Agent1

Any suggestions are appreciated.

MrHH


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>