Question: 1 . Create a workflow named Northwind. Import the customers.csv and orders.csv file into Alteryx. How many columns and rows does each table have? 2
Create a workflow named Northwind. Import the customers.csv and orders.csv file into Alteryx. How many columns and rows does each table have?
Use a join tool to join the two files on customerID. Connect customer data to the L input port and order data to the R input port of the Join tool. Uncheck the right customer key when you join. How many columns and rows does the joined file have?
The Join tool has three output ports. L means the data only in the left table, in this case, data in the customer table but not in order table. Those are the customers who did not place any orders. The J port holds data that are in both tables, which are the customers who placed orders. R port holds data that are only in the right table the order data. Those are the orders that without a customer associated with them. How many customers never placed orders?
Use the auto field tool to change the data types. Connect the tool to the J output port of the join tool.
Convert the three date columns to the correct data type using three DateTime tools. Currently they are recognized as string data type. You can use MMddyyyy The names for the new date columns are OrderDate, RequiredDate and ShippedDate.
Use a text to column to split the contactName into two columns using the delimiter s There are some names with middle names. It is not a perfect solution but we will not deal with these names here
Use a Select tool to unselect contactName, orderDate, requiredDate and shippedDate. And rename the two name columns for the contact name FirstName and LastName
Use a formula tool to get the number of days that it takes to ship an order. Create a column days to ship See the screenshot for the formula and make sure you change the data type to int How many days does it take for an order to ship?
Use a summarize tool to get the number of orders for each CustomerID. You need to group by CustomerID and count OrderID.
Sort the number of orders descendingly, and then use a sample tool to choose the top customers with the highest orders. Take a screenshot.
Annotate the tools in the workflow Take a screenshot of the entire workflow.
Export it as a packaged file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
