Alteryx Designer Desktop Discussions

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

Amount formatting

AbhijeetChib
8 - Asteroid

Hello ! 

 

I have amount fields in the below format that need to be converted as 

12345671,234,567
1.234.5671,234,567
1.234.567,891,234,567.89
12.345,6712,345.67
123.345,00123,456.00
9 REPLIES 9
binuacs
20 - Arcturus

@AbhijeetChib Can you check the user settings and check the thousand separator configured properly ?

 

binuacs_0-1648503293333.png

 

AbhijeetChib
8 - Asteroid

Hello @binuacs 

 

Thanks for your response - The thousand separator is fine. 

Sometimes in the input files i get Amount in both formats 

123456789 as well as 1,234,567.89 and 1.234.567,89\

 

Need to ensure they all are separated by , in thousands and .in decimal

 

AbhijeetChib_0-1648503588765.png

 

binuacs
20 - Arcturus
AbhijeetChib
8 - Asteroid

Thanks a lot @binuacs 

Although it did solve a bit of the issue but it messed up others, here is the data

 

AbhijeetChib_0-1648504622036.png

Thanks for your help again

binuacs
20 - Arcturus
AbhijeetChib
8 - Asteroid

Thank you that works but i cant understand, would you be kind enough to break it down. 

For example what is the first condition that you are checking 

 

Sorry if i sound stupid. 

binuacs
20 - Arcturus

@AbhijeetChib the amount ending with decimal doesn’t need any update , the first condition checks whether the amount ending with decimal ( the RIGHT() will take the last 3 character then the LEFT () function check the first chat from left is a decimal or not) , if not ending with decimal then apply the formatting

AbhijeetChib
8 - Asteroid

Thank you @binuacs 

In the above sample the below formats are not being arranged properly

Amount To be converted as 
  
830000830,000.00
15.000.00015,000.00
10.000.00010,000.00
250250.00
23.000.00023,000.00
130.000.000130,000,00
250.040.000250,040.00
213.000.000213.000.00
25.000.00025,000.00

 

binuacs
20 - Arcturus

@AbhijeetChib I replied to your latest post

Labels