dbTalk Databases Forums  

Average function and MSSQL Analysis services

comp.databases.olap comp.databases.olap


Discuss Average function and MSSQL Analysis services in the comp.databases.olap forum.



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

Default Average function and MSSQL Analysis services - 02-15-2005 , 04:47 AM






Hi All

This should be pretty simple I think, but I can't make it work:

Using MSSql 2000 with Analysis Services I have created a cube. In this cube
I want to have a measure or calculated member that gives me the average
instead of the sum.

My data looks like this

Qty Weight
2 50
4 40
3 55

No matter how I do it I always end up with the sum (50+40+55) but what I
really want is the average (50+40+55) / 3 or preferably the weighed average
((2*50) + (4*40) + (3*55)) / (2+4+3)

How do I do this??

I'm using Excel 2000 Pivottable to present the data.

Thanks in advance


Bent




Reply With Quote
  #2  
Old   
John Smith
 
Posts: n/a

Default Re: Average function and MSSQL Analysis services - 04-14-2005 , 09:24 PM






Did you figure this one out?

It's very simple.

John

"Bent Jensen" <bmj (AT) REMO (DOT) VE.TH.IS.systemgruppen.dk> wrote

Quote:
Hi All

This should be pretty simple I think, but I can't make it work:

Using MSSql 2000 with Analysis Services I have created a cube. In this
cube I want to have a measure or calculated member that gives me the
average instead of the sum.

My data looks like this

Qty Weight
2 50
4 40
3 55

No matter how I do it I always end up with the sum (50+40+55) but what I
really want is the average (50+40+55) / 3 or preferably the weighed
average ((2*50) + (4*40) + (3*55)) / (2+4+3)

How do I do this??

I'm using Excel 2000 Pivottable to present the data.

Thanks in advance


Bent






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.