SOLVED
"if two numbers are equal then add numbers together" if statement question
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
acerdell
8 - Asteroid
‎10-25-2018
06:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
I have been working on a project at and got stuck on a minor problem; I would like to remove the duplicate codes by adding their corresponding numbers together. I appreciate for the help
Code | n_ops |
112233 | 5 |
123456 | 6 |
362343 | 8 |
123456 | 3 |
874531 | 4 |
987655 | 5 |
This is the output that I would like (below)
Code | n_ops |
112233 | 5 |
123456 | 9 |
362343 | 8 |
874531 | 4 |
987655 | 5 |
Solved! Go to Solution.
Labels:
- Labels:
- Data Investigation
- Join
2 REPLIES 2
garthheward
7 - Meteor
‎10-25-2018
07:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
A Summarize tool can do this for you.
Summarize, and group by "Code" and sum "n_ops"
kat
12 - Quasar
‎10-27-2018
08:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @acerdell
I saw that you hadn't yet marked this as resolved. In case you're not sure how to set this up, I've attached an example workflow.
configuration of the summarize tool
Cheers
Kat
