dbTalk Databases Forums  

Simple newbee question

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


Discuss Simple newbee question in the microsoft.public.sqlserver.olap forum.



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

Default Simple newbee question - 02-18-2005 , 03:12 AM






Hi,
I have cube with ArticleNumber, Date, Quantity
Quantity i + when article get in stock and - when he get out.
I need result which will give me for every day sum of previous day quantity
+ today quantity.
How to do that?

Thanks

Dubravko



Reply With Quote
  #2  
Old   
HWUK
 
Posts: n/a

Default RE: Simple newbee question - 02-18-2005 , 07:41 AM






Look at the MTD and YTD functions in MDX.

Reply With Quote
  #3  
Old   
Dubravko Modrusan
 
Posts: n/a

Default Re: Simple newbee question - 02-21-2005 , 04:34 AM



Quote:
Look at the MTD and YTD functions in MDX.
I need result to be like this:

1.1.2005 1.2.2005 1.3.2005 1.4.2005 1.5.2005
.... 1.31.2005
ArticleA 120 120 115 110 120
0
ArticleB 0 12 13 0
14 15
ArticleC 6 12 1 2
3 4
ArticleD 4 7 4 6
34 3

Where for ArticleA we have 120 on 1.1.2005 and -5 on 1.3.2005




Reply With Quote
  #4  
Old   
VK
 
Posts: n/a

Default Re: Simple newbee question - 02-24-2005 , 07:16 AM



Maybe something like:

((Time.CurrentMember,[Measures].[ArticleA])+

(Time.CurrentMember.PrevMember,[Measures].[ArticleA]) )



VK



"Dubravko Modrusan" <dubravko (AT) recro (DOT) hr> wrote

Quote:
Look at the MTD and YTD functions in MDX.

I need result to be like this:

1.1.2005 1.2.2005 1.3.2005 1.4.2005 1.5.2005
... 1.31.2005
ArticleA 120 120 115 110
120
0
ArticleB 0 12 13 0
14 15
ArticleC 6 12 1 2
3 4
ArticleD 4 7 4 6
34 3

Where for ArticleA we have 120 on 1.1.2005 and -5 on 1.3.2005





Reply With Quote
  #5  
Old   
VK
 
Posts: n/a

Default Re: Simple newbee question - 02-24-2005 , 07:45 AM



or
SUM(PeriodsToDate([Time].[(All)], Time.CurrentMember),[Measures].[ArticleA])


Quote:



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.