dbTalk Databases Forums  

Using Average for Aggregation

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


Discuss Using Average for Aggregation in the microsoft.public.sqlserver.olap forum.



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

Default Using Average for Aggregation - 01-08-2004 , 06:47 AM






I am making a cube which Avg must be used instead of Sum for
aggregation. As there is no Avg provided out of the box, how can I
easily create such cube? The cube has 5 dimensions and Avg must be
applied for all of them.

Any help will be greatly appreciated!!


Jimmy

Reply With Quote
  #2  
Old   
Sean Boon [MS]
 
Posts: n/a

Default Re: Using Average for Aggregation - 01-08-2004 , 12:59 PM






There's an example of this in one of the Foodmart cubes. All you need to do
is create one measure based on SUM and one measure based on COUNT. Then
create a calculated member that divides the SUM by the COUNT.


--
Sean

--
Sean Boon
SQL Server BI Product Unit

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.

"Jimmy" <me (AT) jimmyho (DOT) com> wrote

Quote:
I am making a cube which Avg must be used instead of Sum for
aggregation. As there is no Avg provided out of the box, how can I
easily create such cube? The cube has 5 dimensions and Avg must be
applied for all of them.

Any help will be greatly appreciated!!


Jimmy



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.