Alteryx Designer Desktop Discussions

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

How to merge 'Right_' and 'Left_' column results from join?

NMarlon
5 - Atom

Hello!

 

I have a flow that is getting complex, originally there were only about 40 columns, after being treated with several Joins, they reached the result of 400 repeated columns ("Left_something","Right_Right_something_else"), several of these columns are completely null or even with cross values (Half is on Left_ and the other half is on Right_).

I would like to merge them, I made a flow that uses a CrossTab, I used a regex to remove all "Left_" and "Right_" from the columns so that when it does a Transpose, it merges the columns of the same name (and as the null values were removed, I already got the first value anyway). It worked, but at the expense of the metadata of all doubles that turned into commas (eg 1,234.56 in the Brazilian standard became 1,234.56), in the final result, there was a mixture of decimals separated by dots and separated by commas in all columns with doubles.

 

 

I thought about converting the dots to commas, but they are mixed up in the same column, and have different decimal sizes. The metadata contains the true value.

 

How can I remove all spare "Right_" and "Left_" columns without breaking the Doubles? 

 

An example of input data:

NMarlon_0-1677164924713.png

 

 

Expected result:

NMarlon_1-1677165301377.png

 

 

Is this the result of CrossTab:

NMarlon_2-1677172410123.png

 

 

But I get the result in a real flow (Data with commas and dots mixed up):

NMarlon_3-1677175222469.png

 

 

 
I put below an example of what I tried to do, but in the example it does not occur to truncate the doubles from half to a comma and half to a point, but in the flow that I am applying with thousands of data this is happening as in the last image above.

 

1 REPLY 1
simonaubert_bd
13 - Pulsar

 

I have a flow that is getting complex, originally there were only about 40 columns, after being treated with several Joins, they reached the result of 400 repeated columns 

 

A small method point :  For each join, deselect the fields in either the join or a select tool after in order to only keep 1 in the end. It would be a really, really bad idea to treat the issue in the last steps, you have to stay clean at every step.

Labels