I just wanted to do my part if someone would seek help with adding separators between the lines, depending on whether the field is NULL or not.
So, in the example of creating the address of one line from separate fields
Address1 , Address2 , Address3 , City , Zip / Postal Code
in my case, I have the following calculated column, which seems to work the way I want it:
case when [Address1] IS NOT NULL then ((( [Address1] + isnull(', '+[Address2],'')) + isnull(', '+[Address3],'')) + isnull(', '+[City] ,'')) + isnull(', '+[PostCode],'') end
Hope this helps someone!
ebooyens Nov 08 '13 at 14:24 2013-11-08 14:24
source share