I have a text file of invoiced and paid amounts that I'm manipulating and converting to an Excel file using Alteryx (which I'm new at). I'm having issues converting some of the fields from strings to numbers, in part because some of the numbers are negative and have a dash to the right (e.g. 5,371.58-). I've read some of the other posts on this sight, and tried using various combinations of "ToNumber" and "RegEx" formulas, but so far I've only succeeded in eliminating the negative sign, rather than converting the text string to a negative number. Any guidance would be appreciated.
Solved! Go to Solution.
Try this:
IIF(Contains([Field],”-“),”-“+trim([Field{,”-“),[Field])
cheers,
Mark
Thanks for the response. Unfortunately, I'm getting a "Malformed Function Call" error message related to the first field reference, which I'm struggling to address
Hi dmag427,
I am also stuck with the problem you faced. Can you guide how were you able to convert the string to an integer/ double data type post bringing the minus from the end to the beginning? Whenever I change the data type using Select, it takes the first digit only.
Thanks in advance!