dbTalk Databases Forums  

Simple Calculation Driving me nuts

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


Discuss Simple Calculation Driving me nuts in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
daveoram24@hotmail.com
 
Posts: n/a

Default Simple Calculation Driving me nuts - 11-03-2006 , 08:50 AM






Hey all,

Ive been going a little crazy past two days because i cant figure out a
function to get the value of a previous member...
Heres my problem: I have two tables that each contain values i need. In
Table1 there is a totalCost column, in Table2 there is a cumulative
profits column.
Now the calculation i need should show a new column in Table1 called
'AddedValue' and the calculation should look like this:

AddedValue=(CurrentTotalCost-PreviousTotalCost)-(CurrentCumulativeProfits-PreviousCumulativeProfits)

Any help is appreciated as i know this is a simple calculation, but
driving me insane none the less.

Cheers,


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.