If I have number 12345, is there a way to make a new field that's 1+2+3+4+5 = 15?
Solved! Go to Solution.
Please consider this also a solution. I chose to provide an alternative answer to the one that @jdunkerley79 gave you. Mine is no more correct, it just gets you there with a single formula tool. I assume that the string that is the source is no longer than 11 digits. You can extend if needed (or shorten). The formula works for 12345 as well as 999999999999.
ToNumber(substring(ToString([Value]),0,1))+ ToNumber(substring(ToString([Value]),1,1))+ ToNumber(substring(ToString([Value]),2,1))+ ToNumber(substring(ToString([Value]),3,1))+ ToNumber(substring(ToString([Value]),4,1))+ ToNumber(substring(ToString([Value]),5,1))+ ToNumber(substring(ToString([Value]),6,1))+ ToNumber(substring(ToString([Value]),7,1))+ ToNumber(substring(ToString([Value]),8,1))+ ToNumber(substring(ToString([Value]),9,1))+ ToNumber(substring(ToString([Value]),10,1))
This is the way that the naked eye will add the numbers.
Cheers,
Mark
Both solutions work wonderfully. Thank you!
Not sure why this is happening. Tried to open the solution by jdunkerley79 and this message came back:
Alteryx says I am running the latest version.
What is the problem?
Hi @derekbelyea,
The latest version is 11.3... that's the version that James created his workflow in. Only came out mid-last week.
Thanks for the heads up. The "Check for Updates" function in 11.06 told me that my copy of Designer was up to date. Clearly that function is not working correctly.
User | Count |
---|---|
19 | |
14 | |
13 | |
9 | |
8 |