- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Power Query Help - removing values in one column if they appear in another
I have some nomination data, which includes nominee name and nomination comment. For data protection purposes i am not allowed to include any personal details in my dashboard. I would ideally like to produce a word cloud or similar showing common nominations reasons but i dont want to include the names which nominators have included in the comment section.
Nominee Name | Nomination Comment |
John Smith | John Smith is supportive and patient leader |
Where Nominee Name is present in Nomination Comment, is there a way to remove it?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @User57639205 ,
Based on the sample and description you provided, you can try code as below to add a custom column in Power Query.
Text.Replace([Nomination Comment], [Nominee Name], "")
Result is as below.
Is this the result you expect?
Best Regards,
Yulia Yan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @User57639205 ,
Based on the sample and description you provided, you can try code as below to add a custom column in Power Query.
Text.Replace([Nomination Comment], [Nominee Name], "")
Result is as below.
Is this the result you expect?
Best Regards,
Yulia Yan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
03-18-2024 10:25 AM | |||
Anonymous
| 12-28-2023 06:37 PM | ||
08-12-2024 10:10 PM | |||
11-25-2022 02:16 AM | |||
01-17-2024 11:27 AM |
User | Count |
---|---|
134 | |
106 | |
88 | |
55 | |
46 |