Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

Alteryx Designer Desktop Discussions

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

Select Tool: Changing data type on xls leads to truncated figures

domlow
7 - Meteor

hi there, i've been importing xls files and changing the fields from V_string to double and realized the numbers get truncated specifically at the "," and loses decimal places.

 

eg 20,888.90 becomes 20 and 1000.4032 becomes 1000.40

 

I repeated the same with xlsx folders and it works fine -20888.9 and 1000.4032 shows.

 

Is this a limitation working in xls?

 

Appreciate any workarounds.

 

I've attached screenshots and the working files.

2 REPLIES 2
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @domlow,

 

You'll want to remove the commas before converting to numeric data types when using xls files. If you've got multiple fields to replace the commas from you could use a multi-field tool! 🙂

 

Once you've removed the commas we can then change the data type as normal.

 

Jonathan-Sherman_0-1621512918393.png

 

I've attached my workflow for you to download if needed.

 

Kind regards,

Jonathan

 

domlow
7 - Meteor

Thanks @Jonathan-Sherman 

 

I tried that, but the data is still not showing in full, ie 1000.4032 is only showing as 1000.4 from the xls file

 

Any way to show the full values?

Labels