dbTalk Databases Forums  

Adding Property member value across dimension levels

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


Discuss Adding Property member value across dimension levels in the microsoft.public.sqlserver.olap forum.



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

Default Adding Property member value across dimension levels - 10-20-2004 , 04:35 AM






I have a "Hotel" dimension similar to that of "Customers" in "Sales" cube of
"FoodMart 2000" database.
The "Hotel" dimension contains 3 levels as

Hotels
Level 1-->Region
Level 2-->Brand
Level 3-->HotelName

I have a Member Property Of "Hotel Rooms" in the 3rd level "HotelName"

Now, when I look for total rooms in a Brand A, it has to give the sum (
total rooms of Hotels in Brand A).

The same thing applies for the Region also.

Could anyone please advise me on how to design the dimension?

Thanks in advance.
Andrew Jayaraj.



Reply With Quote
  #2  
Old   
Brian Altmann
 
Posts: n/a

Default RE: Adding Property member value across dimension levels - 10-20-2004 , 10:39 AM






Maybe this calculated member, replacing Hotel Rooms with Store Sq. Ft., will
help:

with member measures.TotalStoreSize as 'Sum(Descendants (
Store.Currentmember ,[Store Name] ) ,CLng(
iif(Store.currentmember.properties("Store Sqft")="","0",
Store.currentmember.properties("Store Sqft") ))) '
select
{[Measures].[Unit Sales] , TotalStoreSize} on columns,
store.members on rows
from Sales

HTH,
Brian
www.geocities.com/brianaltmann/olap.html

"Andrew Jayaraj" wrote:

Quote:
I have a "Hotel" dimension similar to that of "Customers" in "Sales" cube of
"FoodMart 2000" database.
The "Hotel" dimension contains 3 levels as

Hotels
Level 1-->Region
Level 2-->Brand
Level 3-->HotelName

I have a Member Property Of "Hotel Rooms" in the 3rd level "HotelName"

Now, when I look for total rooms in a Brand A, it has to give the sum (
total rooms of Hotels in Brand A).

The same thing applies for the Region also.

Could anyone please advise me on how to design the dimension?

Thanks in advance.
Andrew Jayaraj.




Reply With Quote
  #3  
Old   
Andrew Jayaraj
 
Posts: n/a

Default Re: Adding Property member value across dimension levels - 10-21-2004 , 12:19 AM



Yes, It worked.

Thanks for your help Brian.

- Andrew



"Brian Altmann" <findme@thesignaturewebsite> wrote

Quote:
Maybe this calculated member, replacing Hotel Rooms with Store Sq. Ft.,
will
help:

with member measures.TotalStoreSize as 'Sum(Descendants (
Store.Currentmember ,[Store Name] ) ,CLng(
iif(Store.currentmember.properties("Store Sqft")="","0",
Store.currentmember.properties("Store Sqft") ))) '
select
{[Measures].[Unit Sales] , TotalStoreSize} on columns,
store.members on rows
from Sales

HTH,
Brian
www.geocities.com/brianaltmann/olap.html

"Andrew Jayaraj" wrote:

I have a "Hotel" dimension similar to that of "Customers" in "Sales"
cube of
"FoodMart 2000" database.
The "Hotel" dimension contains 3 levels as

Hotels
Level 1-->Region
Level 2-->Brand
Level 3-->HotelName

I have a Member Property Of "Hotel Rooms" in the 3rd level "HotelName"

Now, when I look for total rooms in a Brand A, it has to give the sum (
total rooms of Hotels in Brand A).

The same thing applies for the Region also.

Could anyone please advise me on how to design the dimension?

Thanks in advance.
Andrew Jayaraj.






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.