dbTalk Databases Forums  

Aggregate Function Average of Children does not work

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


Discuss Aggregate Function Average of Children does not work in the microsoft.public.sqlserver.olap forum.



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

Default Aggregate Function Average of Children does not work - 07-11-2006 , 01:23 AM






Dear all

another question :-) - I have a mesure sales price. I want to use the
Aggregate Funktion Average of children. But it seems that it does not work.
I'm testing sql server 2005 64bit edition Enterprise Edition from MSDN on a
64bit box, not the real one.

How can this happen?

Regards,

Marc

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

Default RE: Aggregate Function Average of Children does not work - 07-11-2006 , 07:12 AM






Hello Roger,

Thank you for posting in MSDN newsgroup!

If I understand the issue correctly, when you change the aggregate function
of a measure to averageofchildren, it does not take effect, and SUM is
still used by the measure. If I'm off-base, please let me know.

This behavior could occur because
AverageOfChildren,FirstChild,LastChild,FirstNonEmp ty and LastNonEmpty are
semi-additive and treats the Time dimension different from the other
dimensions. Please refer to the following link for details:

http://msdn2.microsoft.com/en-us/library/ms175356.aspx

The description in above link (BOL) is not very clear about
AverageOfChildren, and I have forward this feedback to the proper channel.

The AverageOfChildren only applys when aggregating via Time dimension.
Actually, when you try to create a new measure in cube, when you select
usage, you could see "average over time" which is for AverageOfChildren.

To get the result of average behavior you want, you may want define a Sum
and a Count measure, then create a calculated measure (in the cube script)
which divides the two base measures.

If anything is unclear, or you have further questions, please feel free to
let's know.

Best Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

================================================== ===


This posting is provided "AS IS" with no warranties, and confers no rights.



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

Default RE: Aggregate Function Average of Children does not work - 07-11-2006 , 10:47 AM



Hello Peter

This was exactely my issue - I missunderstood the concept of the
AvarageOfChildren aggregate function. I thought this is an average over all
dimensions, not just over the time dimension and the rest with the sum
aggregate function. mmmm.

OK, I will create a calculated measure in the cube script as proposed.

Thanks!

Marc

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

Default RE: Aggregate Function Average of Children does not work - 07-11-2006 , 08:41 PM



Hello Marc,

My pleasure. :-)

Best Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

================================================== ===



This posting is provided "AS IS" with no warranties, and confers no rights.



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.