Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Mapping data in a column and replacing with new names

BrianDeg
5 - Atom

Hello! I am looking for some help with an Alteryx workflow I am creating. I have included examples below. I have created a flatfile of revenue data of various items sold at various stores. The names in the "column" item names are too specific. As such, I have another file in which I have mapped the specific names to more general categories. I am hoping to replace the specific item names with the general categories. The below example should provide more details. Thank you so much for your help!

Here is the current output of the workflow aka "the flatfile":

Store numberItem nameRevenue
33Pencil300.5
33Marker211.21
33Paper
57.24
33Laptop3272.22
46Pencil21.12
46Marker 
46Paper232
46Laptop1000.12

 

Here is the mapping file I have on a separate spreadsheet that I am bringing into my workflow:

New nameOld name
Writing utensilPencil
Writing utensilMarker
 Paper
ElectronicsLaptop
ElectronicsCharger
Other suppliesRulers
 Magnets

 

 

Here is my desired output. You will see that the names in the right column have been replaced with the names in the left column in the flatfile:

Store numberItem nameRevenue
33Writing utensil300.5
33Writing utensil211.21
33Paper57.24
33Electronics3272.22
46Writing utensil21.12
46Writing utensil 
46Paper232
46Electronics1000.12
1 REPLY 1
sparksun
11 - Bolide

Find Replace tool can easily make it.

sparksun_1-1678760224692.png

 

Labels
Top Solution Authors