dbTalk Databases Forums  

w to do: dimension * measure

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


Discuss w to do: dimension * measure in the microsoft.public.sqlserver.olap forum.



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

Default w to do: dimension * measure - 11-18-2004 , 07:18 AM






Hi,

I am new to MDX querying.

We have a cube with the following measures: Activations, Cancelarions and
Terminations.

Associated with contracts. But each contract can have a "quantity
associated" (dimension).

We need to create a calculated member that would return:
+ "quantity associated" * [measure].[activations].
+ "quantity associated" * [measure].[cancelations].
+ "quantity associated" * [measure].[terminations].
Of course that only the "quantity associated" with an activation (et al.)
must be considered.

We could solve this in the relational source, but we rather do it using MDX.

We have tryied to use "quantity associated" as a mesaure but it does not
restrict the quantity associated with an activation (et al.).

Thanks in advance.

Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: w to do: dimension * measure - 11-18-2004 , 02:37 PM






Does your fact table have separate records for Activations,
Cancellations and Terminations? In that case, creating a dimension like
"ContractEvent", with members being these 3 options, may be beneficial.
You could re-define the original measures as calculated measures, like:

Quote:
[Measures].[Activations] as
'([Measures].[EventCount], [ContractEvent].[Activation])'
Quote:
And separating the quantity by Event will be simpler.


- Deepak

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


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.