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 Desktop Discussions

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

Replace data fields v2

RodrigoOlmedo
6 - Meteoroid

Hello all and @AngelosPachis 

 

This is the other issue:

 

First table:

COUNTRY CODESTATE CODECITY CODEDESCRIPTION
001  USA
001001 CA
001001001SAN DIEGO
001002 TX
001002001AUSTIN

 

The second table:

CUST IDCOUNTRY CODESTATE CODECITY CODE
1010001001001
2020001002001
    

 

And the request is the same: replace CODES by DESCRIPTION.

 

thank you very much for your help.

 

Regards

 

Rodrigo

3 REPLIES 3
AngelosPachis
16 - Nebula

Hey @RodrigoOlmedo ,

 

This may not be the most orthodox of solutions, but since you have a hierarchy of "Country-State-City", I created an ID field that you can use to join on.

 

AngelosPachis_0-1618341303692.png

 

Do you mind if you give this approach a try and let me know if it works for you please?

 

Cheers,

 

Angelos

 

RodrigoOlmedo
6 - Meteoroid

Angelos, thank you for your help,

I'm still working on it but the issue that I found is when the same city exists in more than one STATE, example SAN DIEGO in CA and SAN DIEGO in TX (just example) so when makes the GROUP BY not works. 

Can you give me a hint ?

 

Thank you

 

Rodrigo

L_T
8 - Asteroid

Hi Rodrigo, 

 

Would the attached work?

Labels