What's your type? Is your data type the right one?

by Reuben Clayman

Normally, when I think of type I think of tall, dark and handsome. Unfortunately, the same can't be said for data. In truth I honestly hadn't given the different types of data much thought until our second session of Alteryx fundamentals.

I'll be talking a little bit about my first experience with data types and what I've learnt from day two at the data school.

First off what are a few different data types and what do they mean?

· String: Usually used to display text rather than numbers. There are different types of String data and can vary depending on string size. This type of data, although it can contain numbers cannot be used in numeric calculations.
· Byte: A numeric type of data which is a positive number between 0 and 255.
· Double: Another numeric type that can cover values from +/- 1.7 x 10-308 to 1.7 x 10308
· Bool: A data type with only two possible outputs 'True' or False where True =0, and False = non 0.
· Spatial Obj: Spatial object that is associated with a data record. Can be point, line, polyline, polygon.

One thing to look out for is to ensure that you have the right type of data before carrying out formula tools as many formulas can’t be carried out without a numeric data type. For example, below all the fields have been given V_String as their type. Since this is not a numeric type of calculations can be done with the number of orders or amount ordered.

Thankfully when it comes to types in Alteryx, we can simply change our type with the click of a button. By running the Auto Field Tool to be exact.

Icon

Description automatically generated
Chart

Description automatically generated with low confidence
The use of the Auto File tool to automatically change the data type.

After this clever little tool is run, if there are no formatting issues, all data will be converted into the best type of data and you’ll be on your way doing whatever formulas your heart desires.

Fri 30 Sep 2022

Thu 29 Sep 2022

Wed 28 Sep 2022