on 10-12-2010 6:52 PM
I have a formula field that need to convert to Dimension Objects. Please correct me where I am missing.
Crystal Formula Field
if isnull({LOCATION.LOC_ID}) then "Unk Location" else
if isnull({LOCATION.LOC_NAME}) then "No Name Of Loc # " + totext({LOCATION.LOC_ID},0,"") else
{LOCATION.LOC_NAME}
Dimension Object in Universe
CASE WHEN ISNULL (LOCATION.LOC_ID,'NULL') = 'NULL' then 'Unk Location' else
CASE WHEN ISNULL (LOCATION.LOC_NAME,'NULL') = 'NULL' then 'No Name of Loc # ' + convert(varchar(40),LOCATION.LOC_ID) else {LOCATION.LOC_NAME} END
Please help me out . SQL is Sql server 2008
Thanks
Reddy
I believe you have been given a correct answer here on BOB:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Issue got resolved,
The error is converting the data type varchar to numneric
CASE WHEN ISNULL (convert(varchar(40),Location.LOC_ID),'NULL') = 'NULL' then 'Unk Loc'
WHEN ISNULL (Location.LOC_NAME,'NULL') = 'NULL' then 'No Name for Loc # ' + convert(varchar(40),Location.LOC_ID) else Location.LOC_NAME END
Thanks
Reddy
The error is converting the data type varchar to numneric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.