In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Lookup Value in columns but return field name

JacobPang
5 - Atom

Hi,

 

I'm new to Alteryx and need help on my workflow.

How can I efficiently iterate through one dataset to lookup the value in another dataset and return the respective column heading it is found in?

 

Example:

Dataset 1

ItemCost
Apple1
Orange2
Carrot3
Lettuce4

 

Dataset 2

FruitVegetable
AppleCarrot
OrangeLettuce

 

Intended result

ItemCost
Fruit1
Fruit2
Vegetable3
Vegetable4

 

Thanks in advance!!

2 REPLIES 2
AhmedAlZabidi
7 - Meteor

Hello,

 

You can use "Transpose tool" to pivot the "dataset 2" then join the results with "dataset 1"

 

The attached file is the solution.

JacobPang
5 - Atom

Thank you very much. That was amazing 😄

Labels
Top Solution Authors