Thanks again for all the help youve given me. I'm trying to get this formula to work but I'm getting an error about a missing then so I'm sure it all messed up:
if isnull({dbo_PHRATE1_CURR.UNIT_YEAR_BUILT}) and if isnull({dbo_PDRATE2_CURR.UNIT_YEAR_BUILT})
then "NA" else if isnull({dbo_PHRATE1_CURR.UNIT_YEAR_BUILT}) then {dbo_PDRATE2_CURR.UNIT_YEAR_BUILT} else {dbo_PHRATE1_CURR.UNIT_YEAR_BUILT}
What I'm trying to do is if {dbo_PHRATE1_CURR.UNIT_YEAR_BUILT} AND {dbo_PDRATE2_CURR.UNIT_YEAR_BUILT} are both null values I want "NA" to print. If they aren't both null then I want to compare {dbo_PHRATE1_CURR.UNIT_YEAR_BUILT} and if that is null print the value in {dbo_PDRATE2_CURR.UNIT_YEAR_BUILT} if it is not null i want the value in {dbo_PHRATE1_CURR.UNIT_YEAR_BUILT} to be returned.
Thanks again for helping me.
if isnull({dbo_PHRATE1_CURR.UNIT_YEAR_BUILT}) and if isnull({dbo_PDRATE2_CURR.UNIT_YEAR_BUILT})
then "NA" else if isnull({dbo_PHRATE1_CURR.UNIT_YEAR_BUILT}) then {dbo_PDRATE2_CURR.UNIT_YEAR_BUILT} else {dbo_PHRATE1_CURR.UNIT_YEAR_BUILT}
What I'm trying to do is if {dbo_PHRATE1_CURR.UNIT_YEAR_BUILT} AND {dbo_PDRATE2_CURR.UNIT_YEAR_BUILT} are both null values I want "NA" to print. If they aren't both null then I want to compare {dbo_PHRATE1_CURR.UNIT_YEAR_BUILT} and if that is null print the value in {dbo_PDRATE2_CURR.UNIT_YEAR_BUILT} if it is not null i want the value in {dbo_PHRATE1_CURR.UNIT_YEAR_BUILT} to be returned.
Thanks again for helping me.