dbTalk Databases Forums  

how to create a calculated member on a dimension's sub_level

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


Discuss how to create a calculated member on a dimension's sub_level in the microsoft.public.sqlserver.olap forum.



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

Default how to create a calculated member on a dimension's sub_level - 04-18-2005 , 06:03 PM






I have a time dimension with 3 levels: year, quarter,month
now i need to group data on month no matter which year it is in. i don't
want to create another dimension. anybody can help me on this? thanks in
advance.

Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: how to create a calculated member on a dimension's sub_level - 04-18-2005 , 11:07 PM






http://groups-beta.google.com/group/...rver.olap/msg/
a0549165137c937f
Quote:
...
Here is a Foodmart Sales cube query that categorizes all descendants of
a product at the Brand Name level. Note that, although a Brand Name may
appear multiple times in the hierarchy, each is listed only once in the
results. This seems similar to what you are trying to do:

With Set BrandNames AS
'CreatePropertySet([Store],
Descendants([Product].CurrentM*ember,[Product].[Brand
Name]),
[Product].CurrentMember.Name)'
Select {[Unit Sales]} ON COLUMNS,
TopCount(BrandNames,10,[Measur*es].[Unit Sales]) ON ROWS
From Sales
Where [Product].[All Products].[Drink]

The "CreatePropertySet()" MDX function is not documented in BOL, but
here is a SQL Server mag article by Russ Whitney.
In it, limitations on the maximum set size are discussed:

http://www.sqlmag.com/Articles*/Inde...rticleID=16302
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


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.