I am trying to implement some logic in my SQL tables using formulas.
In this case, I am trying to do two comparison, neither of which seem to work:
1. I would like to test for a Non-Null Date field. I'm using Not IsNull(DatePaid), but it doesn't seem to work.
2. I would like to test for a text field equal to a value. I'm using [JobType] = 'Partner', but that doesn't seem to work either.
Here is the syntax of my whole statement currently (but it doesn't work):
convert(money, (case when ([JobType] = 'Partner Plus' and Not IsNull([DateCompleted])) then round(([TotalAmount] * [PartnerPlusPercent]),2) else 0 end),2)
Is this even possible? I can't find much on what is possible in these computed field formulas. Do I need to set up a trigger instead?