![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Depends on how you defined [Measures].[Los] in your cube - is it a base measure with a 'Sum' aggregation function? Or is it a calculated measure, and how does it work? Also, do you really want an unwighted average across all days (ie. regardless of how many discharges occurred on each day)? - Deepak *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#4
| |||
| |||
|
| Sean Boon [MS] Jul 14 2003, 10:56 am show options |
#5
| |||
| |||
|
|
A simple average is often computed in MS OLAP by defining a "count" base measure, which divides the "sum" measure: http://groups-beta.google.com/group/...rver.olap/brow se_frm/thread/3e5022ea425ca822/6e9d73404113dfa0?q=average+sum%2Fcount&_d one=%2Fgroup%2Fmicrosoft.public.sqlserver.olap%2Fs earch%3Fgroup%3Dmicros oft.public.sqlserver.olap%26q%3Daverage+sum%2Fcoun t%26qt_g%3D1%26searchn ow%3DSearch+this+group%26&_doneTitle=Back+to+Searc h&&d#6e9d73404113dfa0 Sean Boon [MS] Jul 14 2003, 10:56 am show options Newsgroups: microsoft.public.sqlserver.olap From: "Sean Boon [MS]" <seanb... (AT) online (DOT) microsoft.com Date: Mon, 14 Jul 2003 10:55:54 -0700 Local: Mon, Jul 14 2003 10:55 am Subject: Re: avg Reply | Reply to Author | Forward | Print | Individual Message | Show original | Report Abuse If you want to create an average, what you need to do is create one measure called SUM, and another measure based on COUNT and then create a calculated member called AVG which would just be SUM/COUNT. I believe there are examples of this in the Foodmart 2000 cubes. Sean -- Sean Boon SQL Server BI Product Unit - Deepak *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
![]() |
| Thread Tools | |
| Display Modes | |
| |