dbTalk Databases Forums  

Can I use many-to-many dimensions in AS2005?

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


Discuss Can I use many-to-many dimensions in AS2005? in the microsoft.public.sqlserver.olap forum.



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

Default Can I use many-to-many dimensions in AS2005? - 09-27-2005 , 07:15 PM






I have an application for which AS2005 with a pivot table front-end
would be IDEAL, except that my dimension hierarchies are many-to-many
(ie products may include "Phones" with children "Landline phones" and
"Mobile phones", but "Mobile phones" may also be a child of "Mobile
devices"). I was told that AS2005 can support such many-to-many
hierarchies, but I haven't been able to figure out how. Can you
provide any leads or explanations? Thanks.


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

Default Re: Can I use many-to-many dimensions in AS2005? - 09-27-2005 , 09:49 PM






Yes it can.

If memory serves, the analysis services tutorial that is part of books
online walks through an example.

Good luck


Reply With Quote
  #3  
Old   
Steven.Muise@gmail.com
 
Posts: n/a

Default Re: Can I use many-to-many dimensions in AS2005? - 09-29-2005 , 12:01 PM



Yes the documentation says it does, though it may be a bit misleading.

In fact, to create a many-to-many relationship requires an intermediate
fact table and an intermediate dimension table.

Join the intermediate fact table to the intermediate dimension table
and the original fact table.
Join the intermediate dimension table to the fact table.

This creates a circular reference and allows multiple many-to-many
relationships to be defined.

You set to the dimension to many-to-many on the dimension usage tab.

Hope this helps

Steve Muise
Neudesic LLC


Reply With Quote
  #4  
Old   
Peter
 
Posts: n/a

Default Re: Can I use many-to-many dimensions in AS2005? - 09-29-2005 , 04:52 PM



Thanks for your advice. I already did try to follow the books online
pages regarding many-to-many, but they did not clarify how to do this.
They appear to illustrate how to establish a many-to-many relationship
ACROSS two different dimensions (for example, many Customers to many
Products), but I need to establish such WITHIN ONE dimension (for
example, within Products, "Mobile phones" may have many parents and
many children, and each of its children may have many parents and many
children, and so on for every level within this parent-child dimension.
Since I don't even know how many levels this dimension may have
tomorrow, I don't think that I can manually create intermediate
dimension tables to support each link. Besides the woefully unclear
books online, is there another comprehensive explanation of how to do
this? Thanks again.


Reply With Quote
  #5  
Old   
Darren Gosbell
 
Posts: n/a

Default Re: Can I use many-to-many dimensions in AS2005? - 09-29-2005 , 06:08 PM



It is possible to post some sample records to illustrate your situation.
I am wondering if may you could use multiple hierarchies or make use of
attributes to achieve a similar goal.

One of my concerns with the situation you are describing is how the
users would navigate around. You might end up creating something so
technically elegant that the users cannot comprehend it

If you can come up with a small sample it would help the group provide
some more suggestions.

--
Regards
Darren Gosbell [MCSD]
<dgosbell_at_yahoo_dot_com>
Blog: http://www.geekswithblogs.net/darrengosbell

Reply With Quote
  #6  
Old   
Peter
 
Posts: n/a

Default Re: Can I use many-to-many dimensions in AS2005? - 10-18-2005 , 06:55 PM



Darren, I'd be grateful if you or anyone can respond despite my slow
reply. I have built something relatively complete using SQL queries to
the relational database, so I know how to provide a good UI, and now I
want to duplicate this in Analysis Services to achieve better
performance. What I have are numerous dimensions that are each
parent-child dimensions with many levels and with lots of many-to-many
relationships within each parent-child dimension (not across them).
Some examples: There is one dimension called Product that has a lot of
levels, and some records include Phones, which is subcategorized into
children called Wireline Phones and Wireless Phones. Wireless Phones
is further subcategorized into children called 2.5G Wireless Phones and
3G Wireless Phones, but Wireless Phones is also a subcategory (a child)
of Handheld electronic devices, whose other children include PDAs and
handheld video games. So Wireless Phones has
many-to-many-relationships. I need to enable that kind of many-to-many
relationships within the Product dimension (among others) while
maintaining the ability to continue adding more members at any levels
that I want. And I need the user (this app is ONLY for a very small
group of power users) to be able to edit these hierarchies easily in
real time, adding and modifying members and their relationships to one
another. Any suggestions?


Reply With Quote
  #7  
Old   
Darren Gosbell
 
Posts: n/a

Default Re: Can I use many-to-many dimensions in AS2005? - 10-23-2005 , 08:08 PM



Peter,

Sorry for not replying sooner, I think I have a method that may achieve
what you are after. It is a little involved and I noticed someone else
asking a similar question, so I put an article up on my blog about it.

http://www.geekswithblogs.net/darren...0/24/57812.asp
x

--
Regards
Darren Gosbell [MCSD]
<dgosbell_at_yahoo_dot_com>
Blog: http://www.geekswithblogs.net/darrengosbell

Reply With Quote
  #8  
Old   
Richard Tkachuk [MSFT]
 
Posts: n/a

Default Re: Can I use many-to-many dimensions in AS2005? - 11-02-2005 , 08:16 PM



Try here:

http://www.sqlserveranalysisservices.com

I wrote up something a while ago -might help.

Cheers,
RIchard

--
_______________
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.


"Peter" <psmoore (AT) gmail (DOT) com> wrote

Quote:
Darren, I'd be grateful if you or anyone can respond despite my slow
reply. I have built something relatively complete using SQL queries to
the relational database, so I know how to provide a good UI, and now I
want to duplicate this in Analysis Services to achieve better
performance. What I have are numerous dimensions that are each
parent-child dimensions with many levels and with lots of many-to-many
relationships within each parent-child dimension (not across them).
Some examples: There is one dimension called Product that has a lot of
levels, and some records include Phones, which is subcategorized into
children called Wireline Phones and Wireless Phones. Wireless Phones
is further subcategorized into children called 2.5G Wireless Phones and
3G Wireless Phones, but Wireless Phones is also a subcategory (a child)
of Handheld electronic devices, whose other children include PDAs and
handheld video games. So Wireless Phones has
many-to-many-relationships. I need to enable that kind of many-to-many
relationships within the Product dimension (among others) while
maintaining the ability to continue adding more members at any levels
that I want. And I need the user (this app is ONLY for a very small
group of power users) to be able to edit these hierarchies easily in
real time, adding and modifying members and their relationships to one
another. Any suggestions?




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.