Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Cloud Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Cloud.
SOLVED

How do I create a vlookup?

Conner_Tri
Alteryx Alumni (Retired)
 
1 REPLY 1
Trifacta_Alumni
Alteryx Alumni (Retired)

Hi Jenna! You have two options in Trifacta: a lookup or a join.

 

A lookup (see here: https://docs.trifacta.com/display/PE/Lookup+Wizard) is more akin to a vlookup in Excel. The gist is that for any value in the selected column of your current dataset, the lookup finds any match in the lookup column of your lookup dataset and brings in all of the columns corresponding to that value from the lookup dataset. If there is not a match, the columns from the lookup dataset will be empty for those particular rows.

 

To perform a lookup:

  1. Select the drop down for the column you would like to perform the lookup on
  2. Select the target dataset you would like to lookup against
  3. Select the column to lookup against in that target dataset
  4. Execute Lookup

 

The other, more robust option, is a Join (See here: https://docs.trifacta.com/display/PE/Join+Page). Joins are more in line with SQL joins (if you are familiar). Similar to a lookup, they join data between two datasets based on column matches. Joins, however, give you the option to use multiple join keys (columns to match) and specify inner, left outer, right outer, and full outer joins.

 

To perform a join:

  1. Create a new step
  2. Select Join from the Transformation box
  3. Select the dataset you would like to join with
  4. Choose preview to preview the dataset you are joining with
  5. Select Join keys to choose the columns to join on (Note: Trifacta will attempt to infer the best columns to join on based on name and overall match)
  6. From this menu, you can edit the join keys, add new join keys, and change the join type. Make sure to select all of the columns you would like included in the result of the join from the Columns panel!
  7. When you are ready, Add to your recipe.