Alteryx reads wrong data
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello everyone, I have a weird situation where alteryx reads the wrong data from the file I input to it, not sure if my file has the wrong format or something, but this keeps happening recently. Hopefully, someone could provide an answer.
Example: A product code from an excel file as 682.014, but alteryx reads as 682.01400000000001, is there a way this can be fixed? This field was set to V_String. Thank you so much.
Solved! Go to Solution.
- Labels:
- Input
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
So it's reading the data, just in an incorrect format? There are a few ways to correct this formatting, but the best will depend on the potential values ranges of the "Product Code".
For example: If the code are always "###.###", then use a RegEx tool with the following expression: (\d{3}\.\d{3})
If you have the option of saving the input data as a csv from Excel, that might yield more consistent formatting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Charlies, thank you so much for the information and attachment. Some of them were fixed but some codes were changed. I think because the format is not always "###.###", some are "###.###.###"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I don't know if this is what's happening for you, but it's exactly like something that was happening to me. I spent a LOT of time trying to figure it out to no avail. For instance, even if I changed the number to specifically have 2 decimal places, it wouldn't work.
In the end, it was due to NULL values in my number field (the problem was discovered by Alteryx support personnel).
Once we tossed an IFNULL then 0 formula, no more problems.
Just a suggestion since you're problem is unfortunately very familiar to me.
http://community.alteryx.com/t5/user/viewprofilepage/user-id/2328
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I see. Well here's a little more RegEx to help this out.
I see that any MATL_NUM value that needs to be replaced has a lot of repeating "0" or "9" characters. This IF statement can be used to fund if the string has 7 or more "0" or "9" characters in a row. If it does, it replaces the value with the results from the first formula.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
much appreciated! It worked finally.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Just curious, do you know why Alteryx was reading those repeating "0" and "9" for some of numbers? Is it because the format was wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Happy to help!
The extended values were in the Excel file provided so Alteryx read them exactly as they were saved. I don't think anything was done wrong in Alteryx, but it saved the day anyways. :D
