dbTalk Databases Forums  

Calculated measure average skewed by NULL data

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


Discuss Calculated measure average skewed by NULL data in the microsoft.public.sqlserver.olap forum.



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

Default Calculated measure average skewed by NULL data - 10-13-2006 , 11:26 AM






Hi,

Please can someone explain how I can get around this problem?

Score / Number of accounts

is not working as many Score values are NULL

The 'number of accounts' is including NULL score rows which is lowering the
score when looking at high level data within a pivot table.

I've tried all these and none of them work
1) IIF([Measures].[Number of Accounts] = 0,null,([Measures].[Behavioural
Score] / [Measures].[Number of Accounts]))
2) IIF([Measures].[Score Id] = 0,NULL,[Measures].[Behavioural
Score]/[Measures].[Number of Accounts])
3) ([Measures].[Behavioural Score]) / IIF(isempty([Measures].[Behavioural
Score]),0,1)
4) AVG({[Measures].[Behavioural Score]})
5) [Measures].[Behavioural Score] / [Measures].[Number of Accounts]

What am I doing wrong?

Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Calculated measure average skewed by NULL data - 10-13-2006 , 06:30 PM






If you're using AS 2000, the simplest solution will be to filter out
fact records where Score values are NULL. But if you need those record
for other measures, you can create another cube for those measures, and
combine the 2 cubes in a virtual cube.


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***

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.