dbTalk Databases Forums  

iff dimension groups based on measures

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


Discuss iff dimension groups based on measures in the microsoft.public.sqlserver.olap forum.



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

Default iff dimension groups based on measures - 04-24-2006 , 05:22 AM






Hi,

I have a measure in a facttable where I would like to have a dimension
group based on.

like <25 , 25-50, 50-75 and 75-100.

There are a lot os possibilities like 20,002, 20,01 etc.

I can make very easy a dimension based on all values.

But I want a dimension or measure with groups based on above example.

What is the between mdx code to make such measure:

iff(measure is between ??, )

Regards, Marco


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

Default Re: iff dimension groups based on measures - 04-24-2006 , 09:05 AM






Turn the measure into a dimension. Even though it is a numeric column,
you can use this a s a Dimension/ You will need another table to map
the unique values to a grouping, or you could use a view if you do not
want to store the data in another table.

the other option is the automated grouping in a dimension - this is
usually only used in a large dimension where the number of members is
getting close to the 64000 child member limit. I use it in one cube
where the groups are not important, grouping a journal number dimension
- works fine and I don't have to do any work on the sql side to achive
a grouping.

hope this helps


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.