dbTalk Databases Forums  

URGENT HELP : cOMPLEX mdx

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


Discuss URGENT HELP : cOMPLEX mdx in the microsoft.public.sqlserver.olap forum.



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

Default URGENT HELP : cOMPLEX mdx - 08-09-2003 , 02:22 PM






Here is the situation
We have product dimension and we want product sales
aggregated weekly or monthly i.e level could be diferent
But the complex part is we want it between specific dates
and those dates will be specified from app


Equivalent in sql:
Where date between begindate and enddate

How to acheive this in MDX
Regards,
AK



Reply With Quote
  #2  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: URGENT HELP : cOMPLEX mdx - 08-19-2003 , 12:49 AM






You need to create calculated member, such as

WITH MEMBER Measures.X AS 'Aggregate( Time.StartDate : Time.EndDate,
Measures.Sales ) '
SELECT SomeProducts ON 0
FROM Sales
WHERE Measures.X

--
==================================================
Mosha Pasumansky - www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================
"akshayk" <akshay349 (AT) hotmail (DOT) com> wrote

Quote:
Here is the situation
We have product dimension and we want product sales
aggregated weekly or monthly i.e level could be diferent
But the complex part is we want it between specific dates
and those dates will be specified from app


Equivalent in sql:
Where date between begindate and enddate

How to acheive this in MDX
Regards,
AK





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.