SOLVED
Formula Replacing Multiple "ID code"
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
jcsoh
7 - Meteor
‎07-05-2020
11:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi all,
I I would like to replace some of ID in the "ID code" column. Please advise how I could do it in Alteryx? I list below examples of what I want.
Before:
Company Name | ID code | Total |
Company A | 1 | 100 |
Company B | 2 | 200 |
Company B | 3 | 300 |
Company D | 4 | 400 |
Company E | 5 | 500 |
Company F | 6 | 600 |
Company G | 7 | 700 |
Company H | 8 | 800 |
Company I | 9 | 900 |
After:
Company Name | ID | Total |
Company A | 1 | 100 |
Company B | BB | 200 |
Company B | BB | 300 |
Company D | DE | 400 |
Company E | DE | 500 |
Company F | 6 | 600 |
Company G | OTH | 700 |
Company H | OTH | 800 |
Company I | OTH | 900 |
Cheers,
J
Solved! Go to Solution.
Labels:
4 REPLIES 4
14 - Magnetar
‎07-05-2020
11:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
What have you tried so far?
This looks like it just requires a formula.
Example:
if
[Company Name] ='Company B'
then
'BB'
elseif
.....
and so on.
‎07-05-2020
01:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @patrick_mcauliffe do you mind doing up some mockups based on my examples? I tried your suggestion but didn't seem to work.
17 - Castor
‎07-05-2020
03:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
grazitti_sapna
17 - Castor
‎07-05-2020
09:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @jcsoh , you can either use this formula on id code or company to get the desired output.
Sapna Gupta
