dbTalk Databases Forums  

MDX - SUM and discrete values in columns - Please help

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


Discuss MDX - SUM and discrete values in columns - Please help in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
karenmiddleol@yahoo.com
 
Posts: n/a

Default MDX - SUM and discrete values in columns - Please help - 06-18-2005 , 07:09 AM






I have a reporting scenario as follows

Given a time like 1.1998 (Jan 1998) I want the report to show the sum
of Unit sales for the last 12 months and the Unit Sales by month for
the next 12 months each.

On rows I want to display Gender, Marital Status and Product Family. On
Columns I want to display the Sum of Unit Sales for the last 12 months
and then I want to show the unit sales by each of the next 12 months:

A sample is :

================================================== ================
Gender Marital Product Last 12 Jan 1998 ... Dec 1998 Total
Status Family Month
sales
================================================== ================
F S Drink 8700 800 900 ... 980 98900

..
..
================================================== ================

The total is the sum of the last 12 Month sales + the sum of each of
the next 12 month sales shown:

I managed to come this far in the MDX:

select
{[Measures].[Unit Sales]} on columns,
Non Empty {[Gender].Members* [Marital Status].[Marital
Status].Members*[Product].[Product Family].Members} on Rows
from Sales



Please help how can I get the discrete values like sales of each month
for the next 12 months and the sum of last 12 month along column.

Thanks
Karen


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.