dbTalk Databases Forums  

BI Dev Studio Calculated Member Error for sum - case statement

comp.databases.olap comp.databases.olap


Discuss BI Dev Studio Calculated Member Error for sum - case statement in the comp.databases.olap forum.



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

Default BI Dev Studio Calculated Member Error for sum - case statement - 06-14-2006 , 05:56 AM






Hi, I'm trying to create a new calcluated member in visula studio
business intelligence studio.
For some reason this is proving to be very frustrating.

Please can someone try and explain why, the folling is happening and
what I can do about it....

creating a new calculated member based on [Measures].[Transaction
Count] which is itself aggregated as SUM.

This works:
CASE WHEN [Measures].[Transaction Count] > 1 THEN 1 ELSE 0 END

This also works:
SUM([Measures].[Transaction Count])

However this is NOT WORKING:
SUM(CASE WHEN [Measures].[Transaction Count] > 1 THEN 1 ELSE 0
END)

Im trying to get a measure for the number of records that had a
transaction count > 1 but unfortunately what seems like a simple
calculation is turning out to be a a real pain.

Note: I have also tried to turn off the aggregation function on the
parent measure [Transaction Count] but this doesnt make a difference.
It is still giving the #VALUE! error when I browse the cube.


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.