Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.
Free Trial

Alteryx Designer Desktop Discussions

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

Writing to a table based on Lookup Values

jay_viz
7 - Meteor

I have a table where I am trying to update its values based on a lookup table. I have tried some join logic and does not seem to work.. How will I be able to achieve this ?

 

Base Table:

StateCityRevenueProfit
NYEast100 
NYWest200 
CACentral400 
CAMid200 

 

Lookup Table

StateCityProfit_Lkp
NYEast200
NYWest50
CACentral75

 

Desired Output

StateCityRevenueProfit
NYEast100200
NYWest20050
CACentral40075
CAMid200 

 

I have attached base workflow as well.

4 REPLIES 4
PangHC
12 - Quasar

Join Tool | Alteryx Help

Screenshot 2023-09-25 121320.png

 

when handle any failed to vlookup (or N/A). you can add a union afterward. 

jay_viz
7 - Meteor

I was looking for how will I overwrite/update base table's column with value from lookup table.

PangHC
12 - Quasar

as you already 7-meteor rank. I hope you can learn/explore first and only ask when you have no clue.

so, it was vlookup profit. to table 1. hence simple join will do, which you have did. but it left one. which not in table2.

hence, union tool is used to add back the data. (the CA mid).

now, you should have "profit" and "Profit_Lkp", just use select tool to remove "profit" and rename "Profit_Lkp" to "Profit".

if original have data in table 1 (i.e. CA - Mid's profit is 100), move the select tool earlier. (i left this to you, you can do it.)

 

hope you can learn something here. 

jay_viz
7 - Meteor

Yes I was planning for that, but was curious if there are better methods.. Sometimes we have to ask and learn from the best.

Labels
Top Solution Authors