dbTalk Databases Forums  

Using attributes on hierarchy dimention

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


Discuss Using attributes on hierarchy dimention in the microsoft.public.sqlserver.olap forum.



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

Default Using attributes on hierarchy dimention - 08-16-2006 , 07:43 AM






Hello.

I have problem with using attributes on hierarchy dimention
I need build dimension on DateSourceTable

DimSourceTable is (isn, Contract, City, ShopID)
({F48E60D0-C29A-433D-8C67-75965CA20D19}, 'AAA', 'MOS', 'AA1')
({11AC4566-EBD4-4B6F-B6F5-CD895DAF2117}, 'AAA', 'SPB', 'AA2')
({0D90808F-7868-4C5A-A2FC-D5C9EB477D91}, 'BBB', 'SPB', 'AA3')

I want to create hierarchy Contract -> City and ShopID should be attibute on city level
I expect to browse follow hierarchy
AAA
Quote:
---> MOS (with attribute AA1)
---> SPB (with attribute AA2)
BBB
---> SPB (with attribute AA3)
But, receive ...

AAA
Quote:
---> MOS (with attribute AA1)
---> SPB (with attribute AA2)
BBB
---> SPB (with attribute AA2)
P.S. I'm using SSAS 2005 with SP1

Thanks.


Reply With Quote
  #2  
Old   
Charles Wang[MSFT]
 
Posts: n/a

Default RE: Using attributes on hierarchy dimention - 08-17-2006 , 03:00 AM






Hi,
From your description, I understand that:
You want to create parent-child hierarchy between Contract and
(City,ShopID).
If I have misunderstood, please let me know.

You can configure such parent-child hierarchies according to:
Creating a Parent-Child Hierarchy
http://msdn2.microsoft.com/en-us/library/ms174598.aspx
Configuring Parent-Child Hierarchies
http://msdn2.microsoft.com/en-us/library/ms174592.aspx

Also, you can refer to SQL Books Online Analysis Services Tutorials Lesson
3 and 4. They are more detailed.

If you have any other questions or concerns, please feel free to let me
know. It's my pleasure to be of assistance.

Charles Wang
Microsoft Online Community Support

================================================== ====
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====


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

Default RE: Using attributes on hierarchy dimention - 08-18-2006 , 02:43 PM



Probaby your city key is not unique. You could use collection keys contract
and city for your city key column

"Sergey Popov" wrote:

Quote:
Hello.

I have problem with using attributes on hierarchy dimention
I need build dimension on DateSourceTable

DimSourceTable is (isn, Contract, City, ShopID)
({F48E60D0-C29A-433D-8C67-75965CA20D19}, 'AAA', 'MOS', 'AA1')
({11AC4566-EBD4-4B6F-B6F5-CD895DAF2117}, 'AAA', 'SPB', 'AA2')
({0D90808F-7868-4C5A-A2FC-D5C9EB477D91}, 'BBB', 'SPB', 'AA3')

I want to create hierarchy Contract -> City and ShopID should be attibute on city level
I expect to browse follow hierarchy
AAA
|---> MOS (with attribute AA1)
|---> SPB (with attribute AA2)
BBB
|---> SPB (with attribute AA3)

But, receive ...

AAA
|---> MOS (with attribute AA1)
|---> SPB (with attribute AA2)
BBB
|---> SPB (with attribute AA2)

P.S. I'm using SSAS 2005 with SP1

Thanks

Reply With Quote
  #4  
Old   
Charles Wang[MSFT]
 
Posts: n/a

Default RE: Using attributes on hierarchy dimention - 08-23-2006 , 01:15 AM



Hi,

Just checking in to see if the suggestions were helpful. Please let us know
if you would like further assistance.

Have a great day!

Charles Wang
Microsoft Online Community Support


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.