Comparing columns to generate new column
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
NY2BOS
7 - Meteor
‎04-01-2022
06:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi all.
I am looking to make a new column value based on the data in other columns in a row.
For Example,
| Project 1 | Project 2 | Project 3 | Project 4 | Overlap | |
Asset A | X | X | YES | ||
| Asset B | X | X | YES | ||
| Asset C | X | X | YES | ||
| Asset D | X | X | YES | ||
| Asset E | X | NO |
Overlap would be the new column if 2 or more Projects have an X if only one project has an X it would say no.
Thank you and I look forward to the solutions.
Labels:
- Labels:
- Data Investigation
- Workflow
1 REPLY 1
17 - Castor
‎04-01-2022
06:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @NY2BOS
Here's how I would do this. This solution is dynamic in case more projects come into the dataset:
- Transpose project data
- Count non-null values
- IF Statement to check if count is >=2 and assign overlap value
- Join back to data
