Within SSIS I am trying to do a simple division:
TotalIncurredAmount / TotalPremiumAmount`
So I wrote the following expression in an SSIS Derived Column
transformation:
TotalIncurredAmount / (ISNULL(TotalPremiumAmount) ? 1 : TotalPremiumAmount)
But I am still getting the divide by zero error!
What am I missing?
You are obviously still returning zero
values.
Check your TotalPremiumAmount
column for actual zero
values as well asnull
s and if there is any, handle them in whatever way best fits your solution.