Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

creating a to string to retain commas but also need to do a mathematical equation

aberthiaume
8 - Asteroid

Good Morning, 

 

I am trying to figure out how I can retain my thousands separator and decimals when I convert to string.  I have found using the multi-formula tool is super helpful, but if I convert before I do my if then statement the IF THEN will error out because its not numeric any longer.  If I do it after I do the IF THEN  formula (which is converted to string due to the nature of the formula) then that doesn't work either.  I am at a loss, but for the contract work we are doing, I have to retain our commas, but they also want "*" in a numeric field because certain low numbers have to be suppressed.  I cannot share my actual data due to confidentiality, but I created a very simple excel sheet that and Alteryx formula sort of showing what I need to do.  I guess my question is can I do a "To String" in an "IF THEN". 

 

 

5 REPLIES 5
Deano478
12 - Quasar

@aberthiaume can you zip this up and export the wf or just copy and paste the data table here as we cant run it since its local on your device

cjaneczko
13 - Pulsar

What is the field type of [NUM]?

 

 

cjaneczko
13 - Pulsar

Try using the following as the THEN part of your IF statement.

 

 

tostring([NUM],2,1)

 

 

image.png

aberthiaume
8 - Asteroid

I have attached the data file below.  Please let me know if you have any issues.  

 

Thank you, 

aberthiaume
8 - Asteroid

This worked perfectly!  Thank you!

Labels
Top Solution Authors