Alteryx Designer Desktop Discussions

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

Append columns to the DataSet by sum the logic from corresponding columns

187
8 - Asteroid

Hi Alteryx engineer, i have data set like below 

keyUSD_DIV_1USD_DIV_2ROC_D
APAC1.0000002.0000003
EURO4522

 

AND I have lookup table like below

KEYLOOKUP
DIV RATEDIV
ROC RATEROC

 

I want to get below results, which means I read data from lookup table and append the column to the dataset and it is value set by the rules which is get lookup value from lookup table for example DIV RATE is DIV then I sum the value from original dataset for those columns contains "DIV" , and do the same logic for ROC RATE

 

keyUSD_DIV_1USD_DIV_2ROC_DDIV RATEROC RATE
APAC1.0000002.000000333
EURO4522922
5 REPLIES 5
FinnCharlton
13 - Pulsar

Hi @187 , I think you're looking for something like this? This should work for any number of different columns and lookups, you would only need to tweak the regex logic:

FinnCharlton_0-1675415677745.png

 

ShankerV
17 - Castor

Hi @187 

 

Please find the expected output.

 

The workflow will work dynamically for any inputs and if there are more Key APAC EURO, America, Australia are added.

 

ShankerV_0-1675416408656.png

 

Many thanks

Shanker V

BS_THE_ANALYST
14 - Magnetar

@187 nice problem! I think a mixture of @ShankerV's and @FinnCharlton's logic can cut down the tools. I learned alot from these two on this one 😄

BS_THE_ANALYST_0-1675419869571.png

 

ShankerV
17 - Castor

Hi @BS_THE_ANALYST 

 

Yes, you are right. The mixture of 2 solutions along with your idea too.

Nice one!!!!

187
8 - Asteroid

Thanks guys, your solution are awesome, that really solve my problems thanks!

Labels