- 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

Clean up Similar Location/US State column in Power Query
I have a request to clean up the messy Location column, (NV Central, Nevada Region, Nevada or NV) should fall under Nevada and the Medical Centers should fall under Nevada when you apply the Filter. What will be the best Power Query approach to have only one format for the state = Nevada and have the Medical Centers locations fall under the Nevada State when you apply the filter. Diagram below shows the Location Column that needs to be cleaned up. Keep in mind I have no access to the Data Source.
Before
Thank you in Advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Then you might have to write conditional columns statements if city is Las Vegas or Reno or if it contains NV Or Nevada then state = Nevada
you may have to accommodate for many scenarios.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Don't you have State field in the db table ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

There is no State field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

That is the only Location Column they have in the report
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Then you might have to write conditional columns statements if city is Las Vegas or Reno or if it contains NV Or Nevada then state = Nevada
you may have to accommodate for many scenarios.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thanks Dan add a conditional column using the if statement

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
02-27-2024 06:49 PM | |||
04-03-2024 03:18 AM | |||
02-20-2024 04:23 AM | |||
Anonymous
| 11-24-2021 06:28 AM | ||
04-13-2024 01:19 PM |
User | Count |
---|---|
28 | |
27 | |
25 | |
14 | |
10 |
User | Count |
---|---|
24 | |
21 | |
16 | |
16 | |
10 |