I'm writing an SSRS report that will change the value of one of the fields based on the value of another field in the same row. Would the best way to do it via SQL?
i.e.-Multiply FieldX
(float) by -1
if the value of FieldY
ends with D
,DA
, or 'DB', etc.
I was initially looking at using a case statement, however I was getting a little stuck at work today. Any ideas? The SQL already uses a union, sums and grouping.