dbTalk Databases Forums  

dependent calculated member

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


Discuss dependent calculated member in the microsoft.public.sqlserver.olap forum.



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

Default dependent calculated member - 09-20-2003 , 04:41 PM







Consider the following query.





WITH MEMBER [MEASURES].[RANCE SALES] AS

'SUM(

INTERSECT(

DESCENDANTS([TIME].CURRENTMEMBER, [DAY]),

{[TIME].[DAY].[08-MAY-2003]:[TIME].[DAY].[21-SEP-2003]}

)

, [MEASURES].[SALES])'



MEMBER [MEASURES].[CORR] AS

'Correlation([time].[month].members,(product.currentmember,

product2.[all product2], measures.[RANGE SALES]),

(product2.currentmember, product.[all product], measures.[range sales])'



SELECT PRODUCT.CATEGORY.MEMBERS ON COLUMS,

PRODUCT2.CATEGORY.MEMBERS ON ROWS

FROM SALES

WHERE [MEASURES].[CORR]





I intend to calculate correlation on the time break of months, but

for each month the sales should be within the givien date range,

for e.g the sale of MAY-2003 will be sum from 8th may to 31 may

not the complete may -2003 sales.



will the above query give the results according to my requirement



Thanks


--
Posted via http://dbforums.com

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.