dbTalk Databases Forums  

Reporting Data by State ~ no dimension available on cube

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


Discuss Reporting Data by State ~ no dimension available on cube in the microsoft.public.sqlserver.olap forum.



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

Default Reporting Data by State ~ no dimension available on cube - 03-17-2006 , 08:30 AM






Greetings, I need to report information by State and I don't have the option
of modifying our cube to include a new dimension. I have State as an
attribute on my locations dimension and I was wondering if by using MDX
could I create a temporary virtual dimension for reporting on the client?
What other options do I have that don't involve changing the cube?

Thanks in advance
John



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

Default Re: Reporting Data by State ~ no dimension available on cube - 03-17-2006 , 10:47 AM






Hi John,

If you're still at AS 2000, you can try CreatePropertySet() - see this
earlier post:

http://groups.google.com/group/micro...olap/msg/a0549
165137c937f
Quote:
Date: Mon, Jan 5 2004 9:42 pm
Email: Deepak Puri
Groups: microsoft.public.sqlserver.olap

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].CurrentMember,[Product].[Brand
Name]),
[Product].CurrentMember.Name)'
Select {[Unit Sales]} ON COLUMNS,
TopCount(BrandNames,10,[Measures].[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/Index...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.