dbTalk Databases Forums  

Weekly Report

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


Discuss Weekly Report in the microsoft.public.sqlserver.olap forum.



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

Default Weekly Report - 12-20-2004 , 02:17 PM






Hi everybody,
When a well-know MDX statement my outcome is:

Jan Wk 1 2004 / Jan Wk 2 2004 .... / Jan Wk 4 2004 /
Jan Wk 1 2003 / Jan Wk 2 2003 ....
Product 1
Product 2
....

Select
{Descendants([Date].[Month].[January, 2004], [Date].[Week], Self),
Descendants([Date].[Month].[January, 2003], [Date].[Week], Self)} on
columns,
{[Product].[Line].Members} on rows
From [Sales]
Where ([Measures].[Unit Count])


Note: The showed month is a dynamic parameter.

Now, I want to get the next weekly report:

Jan Wk 1 Jan Wk 2 ....
2004 2003 2004 2003 ...
Product 1
Product 2
.....

Is it possible? How can I do?

Thanks in advance,
Marco



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.