dbTalk Databases Forums  

Function Avg() Question

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


Discuss Function Avg() Question in the microsoft.public.sqlserver.olap forum.



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

Default Function Avg() Question - 03-23-2005 , 12:35 PM






I am trying to create an OLAP Cube measuring Tickets, Time, AvgDuration
and other Average measures for analysis in Excel PivotTable Services
WITH DRILLDOWN. I need to create a measure on Average Duration. Some of
these Duration values are null. If I use the traditional Sum(Duration) /
Count(Tickets), the result is too high because it includes null values.
The Avg function excludes null values. Can anyone demonstrate how to
create a measure using the Avg() function or even the VBA Excell
AVERAGE() funtion excluding nulls? I would like to be able to create a
DERIVED MEASURE if possible.

Thanks



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

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.