Alteryx Designer Desktop Discussions

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

Loop through then keep only value first row when unique id match

rockeylearning
8 - Asteroid

Hi Everyone!

 

I need some help on how to accomplish this. How do I loop through the able and update the ID column with the value "header" if Line 1 matching. Basically, only keep the value "Header" on the first row and remove the rest when Line 1 is the same.

 

This is the sample 

IDLine 1AmountLine 3
HeaderABC12333.33Some description
HeaderABC12311.11Some description
HeaderABC12311.11Some description
HeaderABC12311.11Some description
HeaderEDF45645.36Some description1

 

Output

IDLine 1AmountLine 3
HeaderABC12333.33Some description
 ABC12311.11Some description
 ABC12311.11Some description
 ABC12311.11Some description
HeaderEDF45645.36Some description1

 

 

 

4 REPLIES 4
JosephSerpis
17 - Castor
17 - Castor

Hi @rockeylearning one way to do this is to use a Multi-Row tool to rank your data then use a formula tool to blank any data that is not Rank 1. I mocked up an approach showcasing this.

 

Multi_Row_13092023.JPG

binuacs
21 - Polaris

@rockeylearning One way of doing this

image.png

rockeylearning
8 - Asteroid

@binuacs thank you so much. This works perfectly!

rockeylearning
8 - Asteroid

@JosephSerpis thank you! this solution works as well.

Labels
Top Solution Authors