Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
I have a dataset coming in with negative numbers being represented in an accounting fashion with leading and trailing parentheses. For example (200) equals -200.
Anyone have a quick way to clean that up in a visual recipie?
The Extract Number Processor does not resolve this issue.
I'm using DSS 8.0.4.
I ended up writing this complicated formula.
if(contains(strval("Sum of Total Received"), '('),
concat("-",substring(strval("Sum of Total Received"),1,length(strval("Sum of Total Received"))-1)),
numval("Sum of Total Received"))
However, that is sort of a pain. Anyone have a faster way to deal with this challange.
@Ignacio_Toledo, This is good, you can do this in just one recipe step. My approach took 4 steps per column to get the names of columns back the way they were using my method.
And even better you can do this on multiple columns with the same step.
I've tested and can reproduce your approach.
Thank you both for your help!