Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
RÉSOLU

Help with condition

Arcane
Météore

Hi Folks,

 

Looking for a condition to merge the following example.

Table A

ID

1

2

3
4
5
A
B
C

 

Table B

IDID Alias
7A
8B
9C

 

Table A and Table B are joined (Join columns not illustrated here.)

Now, I would like to have a column with all numerics in one column(ID_Numeric)

 

Thanks in advance

10 RÉPONSES 10
TheOC
15 - Aurora
15 - Aurora

Hi @Arcane 

sorry just a little confused what you are requiring, please can you show an example output of what you need?

IF you just need all ID's concatenated, you can use the summarize tool for that, and then append it to every record.

Cheers
TheOC


Bulien
Arcane
Météore

@TheOC- That was quick!

 

The sample output would look like this,

1
2
3
4
5
6
7
8
9

 

I have been writing the condition using IIF, but failing to achieve it.

Can we do it using a conditional formula?

 

TheOC
15 - Aurora
15 - Aurora

hey @Arcane 

haha, yeah saw your question as soon as i loaded the community!

I think this is what you need, please have a look and let me know.

Thanks,
TheOC


Bulien
atcodedog05
22 - Nova
22 - Nova

Hi @Arcane 

 

Here is my take using find and replace tool. Find and replace works like excel vlookup but it accepts only string values as keys hence I am converting to string and performing the replace.

 

atcodedog05_0-1645886958524.png

 

Hope this helps : )

 

Arcane
Météore

I think I should have given more detail to the problem statement. Your solution works but not for the particular situation, as it does a merge but wouldn't work as expected when other columns are in the picture. The mapping goes wrong. My bad for not able to put it in whole :) Thanks, man!

TheOC
15 - Aurora
15 - Aurora

Hey @Arcane 

Are you able to provide a larger data sample showing what you mean?

Thanks,
TheOC


Bulien
atcodedog05
22 - Nova
22 - Nova

Hi @Arcane 

 

Would mine work if not please provide sample data and expected output.

 

Happy to help : )

Arcane
Météore

@atcodedog05, your solution helps! but, REPLACE tool replaces within the same column. If I am looking to have this data in a new column, it shall add another step of replicating the column first and perform a replace.

 

Instead, I have written the following in Formula but not working as expected. I have all of the considering columns converted to String in the previous step.

 

IIF(([ID]) = ([ID_Alias]), [Right_ID], [ID])

 

atcodedog05
22 - Nova
22 - Nova

Hi @Arcane 

 

Does this work

 

atcodedog05_0-1645893198989.png

 

Hope this helps : )

 

Étiquettes