This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
I am trying to create a workflow that will separate out totals of three columns represented by the data point share class. I am having a problem converting the string into a number (double) because of the $ in front of the digits. I am using the formula tonumber(replacechar([$ DIFF],"$,","")) but I am getting a TONUMBER: lost information in conversion error. I suspect this is because the $ DIFF column has spaces. I tried to use the TRIM formula but I cannot get it to work and I suspect I am doing something wrong. How can I add TRIM to the formula I have already created.
Thank you very much @fmvizcaino but it looks like that was not the problem, I needed to create another workflow line for $ DIFF and that has mostly worked, the problem I am having now is that the $ DIFF column has negative numbers represented by parenthesis EX (1.09). When I run the formula for tonumber(replacechar([$ DIFF],"$,","")) it is removing the $ but it is also turning the negative numbers into 0's and I am not sure why.
As a leader in the Alteryx Community, I have the ability to identify & mark accepted solutions on behalf of community members - and recently did so on this thread. If you have any questions or concerns with the solution(s) I selected please let me know by replying to this post.
As the original author, you also have the ability to mark replies as solutions! Going forward, I’d encourage you to identify the solution or solutions that helped you solve your problem, as it's a big help to other community members. Learn more about Accepted Solutions here.