Alteryx Designer Desktop Discussions

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

Removing duplicates over multiple differently named columns

kas
8 - Asteroid

Hello All,

 

The unique tool won't work in the scenario I have, and hoping to find another relatively simple way to do this. I'm looking to remove a duplicate within a given row, but the column headers are all different. So if in a row, a "Corrected By HR Id (1,2,3 or 4)" has the the same number  in it, to remove that number from the row. In the example below I need to remove in the row for id 2, to remove the number in the last column, and in the row for id 5, to remove the number in the Corrected By HR Id2 column.

 

Hope this makes sense...and thank you!

What I have  
idCorrected By HR Id1Corrected By HR Id2Corrected By HR Id3Corrected By HR Id4
110006979   
226997100065961000697910006979
310006979   
410006979   
51000697910006979  
     
What I want to have  
idCorrected By HR Id1Corrected By HR Id2Corrected By HR Id3Corrected By HR Id4
110006979   
2269971000659610006979 
310006979   
410006979   
510006979   
3 REPLIES 3
IraWatt
17 - Castor
17 - Castor

Hey @kas,

Here is one way to do this using the transpose tool and summarize:

IraWatt_0-1658415638104.png

This solution uses the transpose and cross tab tools which can be hard to understand to new users. I would recommend checking out the community Getting-Started-Learning-Path for some context on how they work: https://community.alteryx.com/t5/Learning-Paths/Getting-Started-Learning-Path/ta-p/475117#done 

 

Any questions or issues please ask :)
HTH!
Ira

 

kas
8 - Asteroid

@IraWatt 

 

This looks perfect...thanks so much!

IraWatt
17 - Castor
17 - Castor

No worries @kas glad it worked for you 😄

Labels