dbTalk Databases Forums  

Displaying Dimension Propierties with MDX

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


Discuss Displaying Dimension Propierties with MDX in the microsoft.public.sqlserver.olap forum.



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

Default Displaying Dimension Propierties with MDX - 06-22-2004 , 01:20 AM






Hi
I'm having problems displaying a dimension member. My MDX Statement is as
follows:

WITH
MEMBER [Years].[Year 2004] as 'SUM([2004]:[2004])'
MEMBER [Years].[Year 2003] as 'SUM([2003]:[2003])'
MEMBER [Years].[Diff] as '[Year 2004]-[Year 2003]'
MEMBER [Measures].[MyProperty] as
'[Dimension1].CurrentMember.PROPERTIES("MyProperty")'
SELECT
({[Measures].AllMembers}*{[Year 2004] ,[Year 2003], [Diff]}) on columns,
[Dimension1].Children on rows
from MyCube

The Resulting Data is like this

Quote:
Measure1
Measure2 | etc..
Year 2003 | Year 2004 | Diff |Year
2003 | year 2004 | Diff |
Dimension1.member1 |
Dimension1.member2 |
etc...

Now I want to show the [MyProperty] Measure as a single column, like this

Quote:
MyProperty | Measure1
Measure2 |
|Year 2003 | Year
2004 | Diff |Year 2003 | year 2004 | Diff |
Dimension1.member1 |
Dimension1.member2 |
etc...

But Instead I get the Year2003,Year2004 and Diff Dimension all the same for
[MyProperty]

Does anyone know how to achieve this?

Greetings

Michele




Reply With Quote
  #2  
Old   
Hans van Kruijssen
 
Posts: n/a

Default Re: Displaying Dimension Propierties with MDX - 06-22-2004 , 04:30 AM






Michele Gerundo wrote:
Quote:
Hi
I'm having problems displaying a dimension member. My MDX Statement
is as follows:

WITH
MEMBER [Years].[Year 2004] as 'SUM([2004]:[2004])'
MEMBER [Years].[Year 2003] as 'SUM([2003]:[2003])'
MEMBER [Years].[Diff] as '[Year 2004]-[Year 2003]'
MEMBER [Measures].[MyProperty] as
'[Dimension1].CurrentMember.PROPERTIES("MyProperty")'
SELECT
({[Measures].AllMembers}*{[Year 2004] ,[Year 2003], [Diff]}) on
columns, [Dimension1].Children on rows
from MyCube
Did you try the syntax:

SELECT
...
ON COLUMNS,
[Dimension1].Children DIMENSION PROPERTIES
[Dimension1].[MyProperty]
ON ROWS
FROM
MyCube

I am not sure if the tool you are using does support showing these, I
know that the Sample application doesn't show Dimension properties in
this case.


Reply With Quote
  #3  
Old   
Michele Gerundo
 
Posts: n/a

Default Re: Displaying Dimension Propierties with MDX - 06-22-2004 , 06:20 AM



Thank you for your solution.
I've tried this before, but the tool I'm using (ThinSlicer) doesn't show
it.

Anyway, I've solved my problem (using WITH MEMBER) and Crossjoins


"Hans van Kruijssen" <hans.vanKruijssen (AT) agilisys (DOT) com> schrieb im Newsbeitrag
news:ea2qLuDWEHA.2288 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Quote:
Michele Gerundo wrote:
Hi
I'm having problems displaying a dimension member. My MDX Statement
is as follows:

WITH
MEMBER [Years].[Year 2004] as 'SUM([2004]:[2004])'
MEMBER [Years].[Year 2003] as 'SUM([2003]:[2003])'
MEMBER [Years].[Diff] as '[Year 2004]-[Year 2003]'
MEMBER [Measures].[MyProperty] as
'[Dimension1].CurrentMember.PROPERTIES("MyProperty")'
SELECT
({[Measures].AllMembers}*{[Year 2004] ,[Year 2003], [Diff]}) on
columns, [Dimension1].Children on rows
from MyCube

Did you try the syntax:

SELECT
...
ON COLUMNS,
[Dimension1].Children DIMENSION PROPERTIES
[Dimension1].[MyProperty]
ON ROWS
FROM
MyCube

I am not sure if the tool you are using does support showing these, I
know that the Sample application doesn't show Dimension properties in
this case.



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.