Hello,
I am trying to automate a daily report which would save me a great deal of time everyday. I have the basic operations of my workflow down, but am trying to set in some rules that would take effect before the data is output to an excel sheet.
The 3 big columns I am hoping to change are:
For example it might read "New York - A154768T1" and I would like it just to report back something like "NYC" with nothing else.
Please let me know what you think, I would really appreciate any help you can offer.
Henry
Solved! Go to Solution.
For Quantity, can you use a Formula tool to create a new field, dividing the original value by 1000?
For Effective Date, what is the data type of the incoming data? Is it a Date, Date Time, or String? Take a look at the DateTime functions, to use in a Formula tool.
https://help.alteryx.com/20221/designer/datetime-functions
For Location, again try a Formula tool to create a new field with something like
IF Contains([original field], "New York") then "NYC"
ELSEIF Contains([original field], "Los Angeles") then "LA"
ELSE "<unknown>"
ENDIF
or try the Find/Replace tool.
Then you can use a Select tool to drop your original fields, and re-name and re-position your new fields if you need to.
Chris
Hi @Henry_Gunn
Here is one way of doing it:
A formula tool that updates the 'Quantity' field by divides the data by 1000, one that creates a new date field formatted in the right way (as a string field), and a lookup that matches the start of the 'Location' field and replaces the text.