dbTalk Databases Forums  

creating a range dimension

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


Discuss creating a range dimension in the microsoft.public.sqlserver.olap forum.



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

Default creating a range dimension - 06-22-2005 , 09:03 AM






I want to be able to create a dimension according to an amount field that is
available in my fact table i.e. divide the data according to:
0 to 10 k
10 to 20 k
20 to 500 k
and so on
is there a way for doing it....

Reply With Quote
  #2  
Old   
Francesco Anti
 
Posts: n/a

Default Re: creating a range dimension - 06-22-2005 , 10:07 AM






You can define as the source field for your dimension a SQL statement like
this
CASE WHEN Amount between 0 and 10000 then 'a' when unitprice
between 10000 and 20000 then 'b' else 'c' end

Francesco Anti


"naraby" <naraby (AT) discussions (DOT) microsoft.com> wrote

Quote:
I want to be able to create a dimension according to an amount field that
is
available in my fact table i.e. divide the data according to:
0 to 10 k
10 to 20 k
20 to 500 k
and so on
is there a way for doing 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.