dbTalk Databases Forums  

avg ytd

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


Discuss avg ytd in the microsoft.public.sqlserver.olap forum.



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

Default avg ytd - 05-18-2005 , 04:00 PM






Hi,

I need to calculate the average value of a measure for the year to date
period. for example if I have sold a total of 100 items YTD then I would
like to show the average sold for each day

Can anyone help me with the MDX for this.

Thanks in advance

Tony



Reply With Quote
  #2  
Old   
SQL McOLAP
 
Posts: n/a

Default RE: avg ytd - 05-19-2005 , 11:24 AM






YTD and average are two different measurements. Are you saying you want a
conditional average done based upon a YTD value? I'm not sure I understand
the question.

"Tony" wrote:

Quote:
Hi,

I need to calculate the average value of a measure for the year to date
period. for example if I have sold a total of 100 items YTD then I would
like to show the average sold for each day

Can anyone help me with the MDX for this.

Thanks in advance

Tony




Reply With Quote
  #3  
Old   
Tony
 
Posts: n/a

Default Re: avg ytd - 05-20-2005 , 06:50 AM



Hi SQL McOLAP

If my current time member is the 1st of June 2005 then I would like to
calculate the average number of items sold per day in the time period of 1st
Jan 2005 to 1st June 2005

I use the phrase YTD because to calculate the total items sold over this
period I can simply use the YTD function on my measure. In fact a use the
YTD function tied to a dummy dimension to allow a YTD calculation to be
applied across all my measures

Regards,

Tony

"SQL McOLAP" <SQLMcOLAP (AT) discussions (DOT) microsoft.com> wrote

Quote:
YTD and average are two different measurements. Are you saying you want a
conditional average done based upon a YTD value? I'm not sure I
understand
the question.

"Tony" wrote:

Hi,

I need to calculate the average value of a measure for the year to date
period. for example if I have sold a total of 100 items YTD then I
would
like to show the average sold for each day

Can anyone help me with the MDX for this.

Thanks in advance

Tony






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.