troubleshooting Question

SSAS/MDX Calculated Member - % of Total

Avatar of derekkromm
derekkrommFlag for United States of America asked on
DatabasesMicrosoft SQL Server 2005SSAS
2 Comments1 Solution1753 ViewsLast Modified:
Using SSAS 2005...

I'm trying to generate a calculated member that, regardless of slicing/etc, will generate a % of total value. Its probably easiest to explain by example:

Staffing Rate is defined as Headcount (by slice/etc) / Headcount (total). i.e. The numerator and denominator are the same measure, but the numerator will change depending on slicing while the denominator remains constant.

So if the total headcount at a given time is 50000, that should always be the denominator. And the numerator will be dependent on the slicing. If there are only 10000 in the slice, then it'd be 20%, etc.

The way I've done it thus far is to create a calculated member to be used as the denominator that looks like this:

[Dimension 1].[All Dimension 1s],
[Dimension 2].[All Dimension 2s],
..... etc

Essentially listing every all level so that the result is the same no matter the slice. Then the Staffing Rate calculated member is Headcount / Headcount Frzn (as defined above)

My question, then, is whether or not I can create that denominator in a cleaner/simpler manner. Anytime a new hierarchy is added I'll have to add it's All member to the list and that will get quite annoying.

Any help is much appreciated.


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros