dbTalk Databases Forums  

AVG with periodstodate not working for quarters

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


Discuss AVG with periodstodate not working for quarters in the microsoft.public.sqlserver.olap forum.



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

Default AVG with periodstodate not working for quarters - 09-12-2005 , 11:55 AM






I have a problem with my mdx expression not averaging properly for the QTD.
The QTD's are summed and not averaged. example the calcuated member
cm_HelpDeskSpeedToAnswer-P09TV for Jan Feb March all have 20 as their value
therefore the QTD average should be 20 but it is summing instead to 60.
Here is the mdx periods calculations is a shell dimension with a month level
that is hidden

avg(periodstodate([Period
Calculations].[(All)]),[Measures].[cm_HelpDeskSpeedToAnswer-P09TV])

Any suggestions or other ways of achieving the rolling year to date average
would be great.
--
JPC

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

Default RE: AVG with periodstodate not working for quarters - 09-12-2005 , 01:22 PM






What time member are you on? If you're on a quarter when you run that, it
will average the quarters, and would be 1 in the denominator, if you think
about it. It sounds like you want to average a particular way depending upon
which time member you're on. You should write your MDX to average the
children of time.currentmember, or a specific level of time.currentmember if
that's what is desired.

Good luck.

- Phil



"JPC" wrote:

Quote:
I have a problem with my mdx expression not averaging properly for the QTD.
The QTD's are summed and not averaged. example the calcuated member
cm_HelpDeskSpeedToAnswer-P09TV for Jan Feb March all have 20 as their value
therefore the QTD average should be 20 but it is summing instead to 60.
Here is the mdx periods calculations is a shell dimension with a month level
that is hidden

avg(periodstodate([Period
Calculations].[(All)]),[Measures].[cm_HelpDeskSpeedToAnswer-P09TV])

Any suggestions or other ways of achieving the rolling year to date average
would be great.
--
JPC

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.