SOLVED
How to arrive unique values as per account
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
Lalaiah
8 - Asteroid
‎03-21-2024
12:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Team,
I have the input as below and need output as per below mentioned. Can you please how to arrive this.
Input | ||
Account | Department | PO |
1 | 56 | 1 |
2 | 23 | 2 |
3 | 56 | 3 |
1 | 23 | 4 |
2 | 45 | 5 |
3 | 53 | 6 |
4 | 75 | 7 |
5 | 96 | 8 |
6 | 85 | 9 |
1 | 63 | 10 |
2 | 79 | 11 |
OutPut | ||
Account | Department | PO |
1 | 56/23/63 | 1/4/2010 |
2 | 23/45/79 | 2/5/2011 |
3 | 56/53 | 6-Mar |
4 | 75 | 7 |
5 | 96 | 8 |
6 | 85 | 9 |
Solved! Go to Solution.
Labels:
- Labels:
- Developer
4 REPLIES 4
ShankerV
17 - Castor
‎03-21-2024
12:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Lalaiah
This can be achieved in 3 steps.
1. Sort tool
2. Select tool
3. Multi row formula tool
Many thanks
Shanker V
ShankerV
17 - Castor
‎03-21-2024
12:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Lalaiah
Step 1: Sort tool
Account -> Ascending
PO -> Ascending
Step 2: Select tool
To modify the data type as V_WString for the columns [Department and PO]
Step 3: Multi-Row Formula
IF [Account] = [Row-1:Account]
THEN tostring([Row-1:Department]) + "/" + tostring([Department])
ELSE [Department]
ENDIF
Many thanks
Shanker V
21 - Polaris
‎03-21-2024
01:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Lalaiah
We can use the Summarize Tool
‎03-21-2024
02:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
