Alteryx Designer Desktop Discussions

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

Joining Two Inputs & Filtering

tomtingley
8 - Asteroid

Hey,

 

A couple things I'm trying to do here:

 

1) Imagine the two tabs in the attached file are separate inputs. I want to connect the 'BCC' column in Sheet1 to the 'CC' column in Sheet2, so that other columns can also populate.

 

For example, I want to match "998-England" in Sheet 1 to "998" in Sheet2. This will also allow the 'BID' and 'Name' column from Sheet1 to be joined to Sheet2. For this example, that would be BID "12" and Name "Harry".

 

2) Once that is done for all rows, I'm trying to create an output where only the values between -100,000 and +100,000 are shown. I don't want to show any numbers outside this range.

 

Hope this makes sense!

 

Thanks,

Tom

 

 

3 REPLIES 3
BS_THE_ANALYST
14 - Magnetar

@tomtingley Hi! 
I'd take this route:

BS_THE_ANALYST_0-1679648993225.png

 

If you want to match the two columns from the two sheets, create another column in Sheet 1 that removes the punctuation and letters. I.e. 998 - England -> will then go to 998. This will allow a clean match with the second sheet. 

BS_THE_ANALYST_1-1679649061991.png

I did this here. Created a dummy column (replicating the column), then used the data cleansing tool to strip away the letters and punctuation.

After this, you can make that join!

For your next requirement, I manipulated the data to get all the values into one column using the transpose tool:

BS_THE_ANALYST_2-1679649166551.png

Once they were at this stage, you can use the filter:

BS_THE_ANALYST_3-1679649190013.png

 

This will retain only the values you're interested in.

However, if you want to go a stage further, and pivot it back into the original table, you can use the CrossTab tool. It will pivot it back to how it originally was, but you will notice that the values that don't meet your filter criteria will be replaced with Null():

BS_THE_ANALYST_4-1679649274613.png

 

Hope that helps.
BS

 

SmitaLohande
8 - Asteroid

hi @tomtingley 

 

Please find attached the solution.

 

SmitaLohande_0-1679650455703.png

 

 

You can use 'Text to Columns' tool to split the CC column from 1st sheet. below is the configutarion of the same, which will give you 2 extra columns.

 

SmitaLohande_1-1679650481008.png

You can then join CC1 to the CC column from the right input of the join (this looks at the second sheet from the workbook).

 

Then use the formulatool to do below for each of the amount column.( I have done this just for 2 columns as an example)

 

SmitaLohande_2-1679650597702.png

Please mark it as a solution if it helps ! :)

tomtingley
8 - Asteroid

@SmitaLohande @BS_THE_ANALYST 

 

Thankyou so much!

Both work perfectly.

Labels