dbTalk Databases Forums  

MDX and multiple measures

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


Discuss MDX and multiple measures in the microsoft.public.sqlserver.olap forum.



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

Default MDX and multiple measures - 04-24-2006 , 09:21 AM






Hi

I have been playing with MDX for a couple of weeks now to produce
reports in SQL Reporting services.

I have hit a bit of a wall.

I want to display 2 measures in the results window

I have years across the columns and a lot of items on rows using a
nonemptycrossjoin.

This method is working fine when i only want one measure but i now need
2.

Here is a screen shot of the report i am trying to produce
http://img225.imageshack.us/img225/194/report8bx.jpg

Here is the code that allows be to get this report with just cost

Select

{[Financial Year].[Year].Members} on columns,
{nonemptycrossjoin([Project TLB].[Level 02].Members,[Task UIN].[Level
02].Members,[Task RAC].[Level 02].Members,[Project Short Name].[Prj
Short Nme].Members,
[Project Title].[Prj Des].Members)
} on ROWS
FROM [Custom Cube]
WHERE [Measures].[Cost]


PLEASE can someone help be modify this code to produce something close
to what i need.


Thanks in advance


Paul


Reply With Quote
  #2  
Old   
Darren Gosbell
 
Posts: n/a

Default Re: MDX and multiple measures - 04-25-2006 , 05:14 AM






Something like the following, crossjoining the measures by the years,
should do the trick:


Select
Crossjoin({[Measures].[Cost],[Measures].[Sales]}
,{[Financial Year].[Year].Members}) on columns,
{nonemptycrossjoin([Project TLB].[Level 02].Members,[Task UIN].[Level
02].Members,[Task RAC].[Level 02].Members,[Project Short Name].[Prj
Short Nme].Members,
[Project Title].[Prj Des].Members)
} on ROWS
FROM [Custom Cube]


--
Regards
Darren Gosbell [MCSD]
Blog: http://www.geekswithblogs.net/darrengosbell

In article <1145888464.753955.291170 (AT) i39g2000cwa (DOT) googlegroups.com>,
pbuzzby (AT) gmail (DOT) com says...
Quote:
Hi

I have been playing with MDX for a couple of weeks now to produce
reports in SQL Reporting services.

I have hit a bit of a wall.

I want to display 2 measures in the results window

I have years across the columns and a lot of items on rows using a
nonemptycrossjoin.

This method is working fine when i only want one measure but i now need
2.

Here is a screen shot of the report i am trying to produce
http://img225.imageshack.us/img225/194/report8bx.jpg

Here is the code that allows be to get this report with just cost

Select

{[Financial Year].[Year].Members} on columns,
{nonemptycrossjoin([Project TLB].[Level 02].Members,[Task UIN].[Level
02].Members,[Task RAC].[Level 02].Members,[Project Short Name].[Prj
Short Nme].Members,
[Project Title].[Prj Des].Members)
} on ROWS
FROM [Custom Cube]
WHERE [Measures].[Cost]


PLEASE can someone help be modify this code to produce something close
to what i need.


Thanks in advance


Paul



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.