Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSAS 2012 - Calculated Member that uses measures at different grains


SSAS 2012 - Calculated Member that uses measures at different grains

Author
Message
nsontag
nsontag
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 30
I'm trying to set up a calculated member - budget remaining that is dependent on two native measures - expenses and budget - that come from two different measure groups, and the former of which has a finer grain size.

When I drill down to the finest grain in the hierarchy, which is one level below the budget grain, the budget remaining measure has blank values as expected, but the calculated member shows up as if the budget field were a zero instead of a null. For example if my expenses values is 200, my budget shows as a blank cell, but my budget remaining show up as (-200) when it should also be blank.

Is there any way I can get my calculated members to not show values at inappropriate levels of my hierarchy?

I have the IgnoreUnrelatedDimensions property set to 'False' on all my measure groups and tried changing the Non_Empty_Behaviour property values, but to no avail.

Any suggestions or insight would me much appreciated!

Thanks,

Nolan
RonKyle
RonKyle
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1266 Visits: 3341
You can create the calculated member as a null only value, and the use a SCOPE statement so that it only shows up when desired. Hopefully you know some MDX, because SCOPE statements are not straightforward. But with a little reading you should be able to get it. I don't have a simple example that I can paste in. But if you search for MDX SCOPE, you should be able to find what you need.



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search