dbTalk Databases Forums  

Difference across levels

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


Discuss Difference across levels in the microsoft.public.sqlserver.olap forum.



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

Default Difference across levels - 02-06-2004 , 03:54 AM






Hi.

In a cube with some common dimensions (Accounts, Products, Time,
Organization) i do have a measure (NoAccounts) which distinct counts the
number of accounts. I need a calculated member to represent the difference
between the value of [NoAccounts] corresponding to the [Products].[All
Products] member and the value of the same measure [NoAccounts] for the
CurrentMember selected in [Products] dimension.

TIA,
Rud





Reply With Quote
  #2  
Old   
Rud
 
Posts: n/a

Default Re: Difference across levels - 02-06-2004 , 04:30 AM






Hi. I found a solution and i show it to all of you interested:
Obviously, the similar but simplified problem is to produce a calculated
member which shows up the value of [NoAccounts] corresponding to the
[Products].[All Products] member for every cell. And the formula for that
is:

Iif([Products].CurrentMember Is [Products].[All Products] ,
[Measures].[NoAccounts] , [Products].[All Products])

which is a little bit strange because of the [Products].[All Products] from
the last part of IIF (how AS does it ??).
The second calculated member is a simple difference.
Rud

"Rud" <Rud_75 (AT) hotmail (DOT) com> wrote

Quote:
Hi.

In a cube with some common dimensions (Accounts, Products, Time,
Organization) i do have a measure (NoAccounts) which distinct counts the
number of accounts. I need a calculated member to represent the difference
between the value of [NoAccounts] corresponding to the [Products].[All
Products] member and the value of the same measure [NoAccounts] for the
CurrentMember selected in [Products] dimension.

TIA,
Rud







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.