SOLVED
Loop through then keep only value first row when unique id match
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
rockeylearning
8 - Asteroid
‎09-13-2023
12:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
ID | Line 1 | Amount | Line 3 |
Header | ABC123 | 33.33 | Some description |
Header | ABC123 | 11.11 | Some description |
Header | ABC123 | 11.11 | Some description |
Header | ABC123 | 11.11 | Some description |
Header | EDF456 | 45.36 | Some description1 |
Output
ID | Line 1 | Amount | Line 3 |
Header | ABC123 | 33.33 | Some description |
ABC123 | 11.11 | Some description | |
ABC123 | 11.11 | Some description | |
ABC123 | 11.11 | Some description | |
Header | EDF456 | 45.36 | Some description1 |
Solved! Go to Solution.
Labels:
- Labels:
- Designer Cloud
- Expression
4 REPLIES 4
17 - Castor
‎09-13-2023
12:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
binuacs
21 - Polaris
‎09-13-2023
12:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@rockeylearning One way of doing this
‎09-13-2023
01:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@binuacs thank you so much. This works perfectly!
‎09-13-2023
01:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@JosephSerpis thank you! this solution works as well.
