chrisssyp82
MIS
Crystal 2008
I want to Coalesce a formula like in SQL but I am having trouble with the syntax. Below is how i would think it could be written but i'm getting errors:
IF ISNULL(COALESCE({tblPolicy.QuoteDate}),{tblPolicy.CreationDate}, {tblPolicy.CoverFrom}),’’) <> ‘’ AND {tblPolicy.Status} in ["OnRisk", "HeldCover", "NTU", "Declined", "Cancelled", "Lapsed", "Quote"]
THEN COALESCE ({tblPolicy.QuoteDate}),{tblPolicy.CreationDate}, {tblPolicy.CoverFrom})
Can someone point me in the right direction or help me re-write it?
Many thanks
I want to Coalesce a formula like in SQL but I am having trouble with the syntax. Below is how i would think it could be written but i'm getting errors:
IF ISNULL(COALESCE({tblPolicy.QuoteDate}),{tblPolicy.CreationDate}, {tblPolicy.CoverFrom}),’’) <> ‘’ AND {tblPolicy.Status} in ["OnRisk", "HeldCover", "NTU", "Declined", "Cancelled", "Lapsed", "Quote"]
THEN COALESCE ({tblPolicy.QuoteDate}),{tblPolicy.CreationDate}, {tblPolicy.CoverFrom})
Can someone point me in the right direction or help me re-write it?
Many thanks