I am creating a derived column with the following code:
(DT_NUMERIC,18,3)(DER_Channel == "M" ? ((DAYS_SUPPLY / 30) > 1 ? (DAYS_SUPPLY / 30) : 1) : 1)
Everything works well except the result of the derived column is being rounded. The results are all like this:
1.000
1.000
3.000
2.000
2.000
Instead of:
.899
1.222
3.444
2.253
1.998
The field the derived column is being put into is Numeric(18,3).
I created a data viewer and the derived column is being rounded before being put into the database.