dbTalk Databases Forums  

Dimensions: Best Practices?

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


Discuss Dimensions: Best Practices? in the microsoft.public.sqlserver.olap forum.



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

Default Dimensions: Best Practices? - 07-04-2003 , 03:34 AM






Hi,

I would like to know how dimensions work. Specifically I have data with
Manufacturer and Brand information.

Does it make sense to create 3 dimensions, One with each and then one with
combined.
I have a few different ways to view the data. Does it makes sense to create
a dimension for each posibility or does this make the cube too big?

Yossi



Reply With Quote
  #2  
Old   
Thomas Ivarsson
 
Posts: n/a

Default Re: Dimensions: Best Practices? - 07-04-2003 , 04:44 AM






Make one dimension in Analysis Services but snowflake them in the
starschema. Manufacturer will be on the one side and product on the many
side. The product table will be the one that join with the fact table.

If you have one manufacturer and one separate product dimension you create
combinations(in the cube) for all manufacturers and products, even if they
do not exist in the real world.

The businesscase for separate dimensions can be if many manufacturers supply
the same product.

HTH
Thomas Ivarsson

"Yossi" <my (AT) eject (DOT) co.za> wrote

Quote:
Hi,

I would like to know how dimensions work. Specifically I have data with
Manufacturer and Brand information.

Does it make sense to create 3 dimensions, One with each and then one with
combined.
I have a few different ways to view the data. Does it makes sense to
create
a dimension for each posibility or does this make the cube too big?

Yossi





Reply With Quote
  #3  
Old   
Thomas Ivarsson
 
Posts: n/a

Default Re: Dimensions: Best Practices? - 07-04-2003 , 07:49 AM



There are both pro and cons with using starschema and/or snowflake. If you
have a snowflake that is OK from the point of Analysis Services. It works
with both structures. If you look at the foodmart demo database you can see
that the product dimension is in a snowflake structure.

I do not understand your second question.

HTH
Thomas Ivarsson


"Yossi Neimann" <yossicms (AT) hotmail (DOT) com> wrote

Quote:
Hi Thomas,

Thanks for the reply.

Now I have a new question which has arisen from your reply. I was told
by my IT Director to use a star schema in Cubes. My Db is Snowflake and
I have used views to create the Star. Which is better in an Ms Analysis
server environment?

Secondly my previous question was concerning 2 seperate fields
Manufacuturer and Brand. Possible drill paths would be Manu, Brand, Manu
-> Brand. I don't understand your answer in relation to this. Should
this be 2 or 3 seperate dimensions. Sometimes people will want to dril
only Brand. Sometimes Manufacturer and sometimes Brand within
Manufacturer.

So what is the best way to define this dimension?

Yossi

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



Reply With Quote
  #4  
Old   
Jono Indrawijaya
 
Posts: n/a

Default Re: Dimensions: Best Practices? - 07-06-2003 , 11:47 PM



Quote:
Secondly my previous question was concerning 2 seperate fields
Manufacuturer and Brand. Possible drill paths would be Manu, Brand,
Manu
-> Brand. I don't understand your answer in relation to this. Should
this be 2 or 3 seperate dimensions. Sometimes people will want to dril
only Brand. Sometimes Manufacturer and sometimes Brand within
Manufacturer.
I think if you use Office Web Component (OWC) for User Interface, it's
possible that you only have 1 dimension for this.
Just make 1 dimension with hierarchy like Manu -> Brand -> Products
When the user want to see Manu they can ommit the Brand level, so it will be
Manu -> Products
When the user want to see Brand they can ommit the Manu level, so it will be
Brand -> Products
But if the User Interface that you use doesn't support it, than the other
way is you make 1 dimension with multiple hierarchy (3 hierarchy in this
case).





Reply With Quote
  #5  
Old   
Polaris
 
Posts: n/a

Default Re: Dimensions: Best Practices? - 07-07-2003 , 12:36 AM



I think you should have 2 single-leveled dimensions. 1 for Manu, and 1 for
Brand. When a cube is processed, ALL possible combinations are stored in the
cube's partition (if aggregation is high enough). The drill path Manu->Brand
and Brand->Manu are included!

Quote:
Secondly my previous question was concerning 2 seperate fields
Manufacuturer and Brand. Possible drill paths would be Manu, Brand,
Manu
-> Brand. I don't understand your answer in relation to this. Should
this be 2 or 3 seperate dimensions. Sometimes people will want to dril
only Brand. Sometimes Manufacturer and sometimes Brand within
Manufacturer.

"Yossi Neimann" <yossicms (AT) hotmail (DOT) com> wrote

Quote:
Hi Thomas,

Thanks for the reply.

Now I have a new question which has arisen from your reply. I was told
by my IT Director to use a star schema in Cubes. My Db is Snowflake and
I have used views to create the Star. Which is better in an Ms Analysis
server environment?

Secondly my previous question was concerning 2 seperate fields
Manufacuturer and Brand. Possible drill paths would be Manu, Brand, Manu
-> Brand. I don't understand your answer in relation to this. Should
this be 2 or 3 seperate dimensions. Sometimes people will want to dril
only Brand. Sometimes Manufacturer and sometimes Brand within
Manufacturer.

So what is the best way to define this dimension?

Yossi

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



Reply With Quote
  #6  
Old   
Sean Boon [MS]
 
Posts: n/a

Default Re: Dimensions: Best Practices? - 07-07-2003 , 12:39 PM



As far as snowflaking or using a star schema is concerned, Analysis
Services will work with both. However, if you don't need to query the
relational data, outside of processing the cubes of course, I'd recommend
that you choose a snowflake. The primary reason I'd go with a snowflaked
schema is so that you can create cubes with different levels of granularity.
For example, suppose you have some fact data at the monthly level and some
fact data at the day level. If you snowflake the time dimension in this
case you can build a virtual cube that will allow you to combine the mothly
and day level cubes together. You may not need the ability to add different
levels of fact granularity into your solution at the moment, but it's good
to have an architecure that will support it if the need arises in the
future.

Sean


--
Sean Boon
SQL Server BI Product Unit

**This posting is provided AS IS, with no warranties, and confers no
rights.**
"Yossi" <my (AT) eject (DOT) co.za> wrote

Quote:
Hi,

I would like to know how dimensions work. Specifically I have data with
Manufacturer and Brand information.

Does it make sense to create 3 dimensions, One with each and then one with
combined.
I have a few different ways to view the data. Does it makes sense to
create
a dimension for each posibility or does this make the cube too big?

Yossi





Reply With Quote
  #7  
Old   
Dennis Redfield
 
Posts: n/a

Default Re: Dimensions: Best Practices? - 07-08-2003 , 07:11 AM



Yossi,
0) I agree with Sean on star vs. snowflake designs
1) on your issue:
Quote:
Possible drill paths would be Manu, Brand, Manu
-> Brand. I don't understand your answer in relation to this. Should
this be 2 or 3 seperate dimensions.
This is ONE dimension. In my mind do not use multiple hierarchies. Define
a single Dimension with Manu as the top level and Brand as the next
level(call this Product). In Analysis Services define a single named set of
just the Brand Level (call this BrandView). This gives you two effective
dimensions when users access the view:
Product Which Gives them ALL, Manu and Manu -> Brand and
BrandView which gives them ALL, Brand.

"Yossi Neimann" <yossicms (AT) hotmail (DOT) com> wrote

Quote:
Hi Thomas,

Thanks for the reply.

Now I have a new question which has arisen from your reply. I was told
by my IT Director to use a star schema in Cubes. My Db is Snowflake and
I have used views to create the Star. Which is better in an Ms Analysis
server environment?

Secondly my previous question was concerning 2 seperate fields
Manufacuturer and Brand. Possible drill paths would be Manu, Brand, Manu
-> Brand. I don't understand your answer in relation to this. Should
this be 2 or 3 seperate dimensions. Sometimes people will want to dril
only Brand. Sometimes Manufacturer and sometimes Brand within
Manufacturer.

So what is the best way to define this dimension?

Yossi

*** 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.