dbTalk Databases Forums  

Create Dimensions help needed

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


Discuss Create Dimensions help needed in the microsoft.public.sqlserver.olap forum.



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

Default Create Dimensions help needed - 07-07-2004 , 07:45 AM






hi,

can we use calculated members to create a new dimension.
if so, can any one give me the details how to use this.

Thanks in advance.


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

Default Re: Create Dimensions help needed - 07-07-2004 , 02:43 PM






Sure you can. Let's say you want to add a dimension called 'Time
Filter', that will enable users to see data for the selected period
only and for a YTD for the delected period.

The fact table will only contain the data in the period. Expand the
fact able with one column, containing a key for the time filter
dimension. This key can be anything, just make it 1.

Create the new dimension called Time Filter in AS with the member 1 as
the only member. Use a string in the member key column to give it a
name like 'In the period'.

The create a calculated member in the Time Filter dimension called
Year to date. Give it the following MDX:

YTD([Time].CurrentMember,[Time Filter].[1]) the latter being the 'In
Period' member.

I don't have AS available at the moment to make sure this works out of
the box, but this is the general idea: in every calculated member in
the new dimension, you need to include the 'real' member in the tuple
used in the calculated member.

Does this make anay sense? :-)

HTH,

Coen


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.