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
Microsoft SQL Server

Avatar of undefined
Last Comment
stopher2475
Avatar of samgreene
samgreene

what is your error?
Avatar of WJPS
WJPS
Flag of United Kingdom of Great Britain and Northern Ireland image

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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Microsoft SQL Server
Microsoft SQL Server

Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.

171K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo