Link to home
Start Free TrialLog in
Avatar of WJPS
WJPSFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Formula Columns with Lookups

Hi,

I have an MSSQL DB in a Data Warehouse structure. From one of my Fact Tables I want to pull back a value from an associated Dimension Table and use this as part of a calculated field, but i seem to be having problems with the formula. I'd be greatful if someone could help. The formula that it refuse to like it like this.

((SELECT Table1.Col3 FROM Table1 WHERE Table1.Col3 = Table2.Col2) * Table2.Col4)

This formula is in Table2.Col5 for example. Could someone please help, im guessing the syntax is wrong somewhere along the lines.

Kind Regards

James
Avatar of samgreene
samgreene

what is your error?
Avatar of WJPS

ASKER

Just that it cannot validate the Formula.

The exact formula is:

SELECT [Remaining_Life_Value] FROM Remaining_Life_Dimension_TBL WHERE [Remaining_Life_Value] = [BLM_Remaining_Life_Key]

Avatar of Anthony Perkins
The following questions are now considered abandoned, please attend to them:

1 01/13/2007 500 Relative DLL Link Open MS Visual Basic
2 12/19/2006 500 Formula Columns Open MS SQL Server

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of stopher2475
stopher2475
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial