dbTalk Databases Forums  

Newbie question

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


Discuss Newbie question in the microsoft.public.sqlserver.olap forum.



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

Default Newbie question - 06-02-2004 , 07:09 PM






I read, therefore I am confused. Sorry, but I just can't understand
the difference between a member, a dimension, a calculated member, a
set, a tuple, a name and a value.

So, I'll ask my dumb question. I have created a dimension on a field
which contains 6 values. Instead of the cube rolling up on each of
those 6 values, I want the cube to roll up 4 of the values in 1 group
(would that be a member?), and 2 of those values into another group
(the 2nd member????). What do I create? A calculated member? A
named set? I seemed to have gotten the syntax right for both of
those, but when I browse the data, it shows errors. If I knew the
right way to proceed, I'd happily trudge thru getting the syntax
correct, but I have a feeling my approach here is all wrong. I think,
in essence, that I want to create a "calculated dimension", but I
don't see anything resembling that.

At this point, I'm tempted to create a bunch of SQL views to
pre-process all my data by performing calculations, but that seems to
defeat the purpose of the cube, I suppose.

I appreciate any help anyone can offer.
Thx
Nakai

Reply With Quote
  #2  
Old   
Hans van Kruijssen
 
Posts: n/a

Default Re: Newbie question - 06-03-2004 , 03:25 AM






Marcus wrote:

Quote:
I read, therefore I am confused. Sorry, but I just can't understand
the difference between a member, a dimension, a calculated member, a
set, a tuple, a name and a value.

So, I'll ask my dumb question. I have created a dimension on a field
which contains 6 values. Instead of the cube rolling up on each of
those 6 values, I want the cube to roll up 4 of the values in 1 group
(would that be a member?), and 2 of those values into another group
(the 2nd member????). What do I create? A calculated member? A
named set? I seemed to have gotten the syntax right for both of
those, but when I browse the data, it shows errors. If I knew the
right way to proceed, I'd happily trudge thru getting the syntax
correct, but I have a feeling my approach here is all wrong. I think,
in essence, that I want to create a "calculated dimension", but I
don't see anything resembling that.

At this point, I'm tempted to create a bunch of SQL views to
pre-process all my data by performing calculations, but that seems to
defeat the purpose of the cube, I suppose.

I think what you want is to create a group level in your dimension.

For the dimension create a table with two fields, a group field and a
detail field. The table should have 2 levels, a group and a detail
level.

Dimension table:

Detail Group
1 1
2 1
3 1
4 1
5 2
6 2

Hope this helps,

Hans.


Reply With Quote
  #3  
Old   
Marcus
 
Posts: n/a

Default Re: Newbie question - 06-04-2004 , 07:24 PM



Ah, ha, the light bulb finally goes off. I didn't know that
dimensions could contain levels. That opens up lot of possibilities.
Thanks, Hans. (Sorry I posted my original post in the middle of a
thread... didn't realize it at the time).

"Hans van Kruijssen" <hans.vanKruijssen (AT) agilisys (DOT) com> wrote

Quote:
I think what you want is to create a group level in your dimension.

For the dimension create a table with two fields, a group field and a
detail field. The table should have 2 levels, a group and a detail
level.

Dimension table:

Detail Group
1 1
2 1
3 1
4 1
5 2
6 2

Hope this helps,

Hans.

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.