dbTalk Databases Forums  

Need help with solve order

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Need help with solve order in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
James
 
Posts: n/a

Default Need help with solve order - 11-20-2003 , 06:46 AM






Here is how my cube looks like:

--------------- Sales ----- Returns ----- Net Sales
Curr. Year 30 10 20
Prev. Year 34 12 22
Change -4 -2 -2
Change % -12 -17 5

Problem lies in the bottom left cell, "Change %" for "Net
Sales"

It shows 5 (minus 12 less minus 17) instead of -9 (minus 2
divided by 22) because the solve order is wrong.

The "Change %" is defined as a member of the Time
dimension, and the "custom member formula" is: iif
(CoalesceEmpty([Time].[Year].[Previous], 0) = 0, null,
[Time].[Year].[Change]*100 / [Time].[Year].[Previous] )

The "Net Sales" measure is a "calculated member", with the
value defined as [Sales] - [Returns]

I need the "Change %" to overwrite the "Net Sales"
calculation, but I cannot figure out what to do to make
the "custom member formula" solve after the "calculated
member".

Any ideas?

Thanks in advance.


Reply With Quote
  #2  
Old   
Tom Chester
 
Posts: n/a

Default Re: Need help with solve order - 11-20-2003 , 11:52 AM






In order to assign solve order to a custom member (versus a calc member) you
must use so-called "custom member options", a column in the dim table that
let's you store the various properties that can be assigned to calculated
members.

tom @ the domain below
www.tomchester.net


"James" <news (AT) att (DOT) com> wrote

Quote:
Here is how my cube looks like:

--------------- Sales ----- Returns ----- Net Sales
Curr. Year 30 10 20
Prev. Year 34 12 22
Change -4 -2 -2
Change % -12 -17 5

Problem lies in the bottom left cell, "Change %" for "Net
Sales"

It shows 5 (minus 12 less minus 17) instead of -9 (minus 2
divided by 22) because the solve order is wrong.

The "Change %" is defined as a member of the Time
dimension, and the "custom member formula" is: iif
(CoalesceEmpty([Time].[Year].[Previous], 0) = 0, null,
[Time].[Year].[Change]*100 / [Time].[Year].[Previous] )

The "Net Sales" measure is a "calculated member", with the
value defined as [Sales] - [Returns]

I need the "Change %" to overwrite the "Net Sales"
calculation, but I cannot figure out what to do to make
the "custom member formula" solve after the "calculated
member".

Any ideas?

Thanks in advance.




Reply With Quote
  #3  
Old   
James
 
Posts: n/a

Default Re: Need help with solve order - 11-21-2003 , 03:28 AM



Brilliant! Many, many thanks.

Quote:
-----Original Message-----
In order to assign solve order to a custom member (versus
a calc member) you
must use so-called "custom member options", a column in
the dim table that
let's you store the various properties that can be
assigned to calculated
members.

tom @ the domain below
www.tomchester.net


"James" <news (AT) att (DOT) com> wrote in message
news:0ce401c3af64$4ed38020$a101280a (AT) phx (DOT) gbl...
Here is how my cube looks like:

--------------- Sales ----- Returns ----- Net Sales
Curr. Year 30 10 20
Prev. Year 34 12 22
Change -4 -2 -2
Change % -12 -17 5

Problem lies in the bottom left cell, "Change %"
for "Net
Sales"

It shows 5 (minus 12 less minus 17) instead of -9
(minus 2
divided by 22) because the solve order is wrong.

The "Change %" is defined as a member of the Time
dimension, and the "custom member formula" is: iif
(CoalesceEmpty([Time].[Year].[Previous], 0) = 0, null,
[Time].[Year].[Change]*100 / [Time].[Year].[Previous] )

The "Net Sales" measure is a "calculated member", with
the
value defined as [Sales] - [Returns]

I need the "Change %" to overwrite the "Net Sales"
calculation, but I cannot figure out what to do to make
the "custom member formula" solve after the "calculated
member".

Any ideas?

Thanks in advance.



.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.