WJPS
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
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
what is your error?
ASKER
Just that it cannot validate the Formula.
The exact formula is:
SELECT [Remaining_Life_Value] FROM Remaining_Life_Dimension_T BL WHERE [Remaining_Life_Value] = [BLM_Remaining_Life_Key]
The exact formula is:
SELECT [Remaining_Life_Value] FROM Remaining_Life_Dimension_T
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.