dbTalk Databases Forums  

avoiding zero or null items from averaging

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


Discuss avoiding zero or null items from averaging in the microsoft.public.sqlserver.olap forum.



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

Default avoiding zero or null items from averaging - 01-16-2004 , 02:32 AM






Hi
I was calculating averages as

IIF(Not IsLeaf([Product].[Category].Currentmember),AVG([Product].[Category].currentmember.children,[Measures].[RS
SAI test]),[Measures].[RS SAI test])

it also includes count of member which are blank or 0
How can i avoid it doing so

I tried doing
IIF(Not IsLeaf([Product].[Category].Currentmember),Colesceempty(AVG([Product].[Category].currentmember.children,[Measures].[RS
SAI test]),0),[Measures].[RS SAI test])

but still doesn't work

how to do this

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.