Reply
Ksyokz23
Frequent Visitor
Partially syndicated - Outbound

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 

Ksyokz23_0-1700606514998.png

 Thank you in Advance

 

1 ACCEPTED SOLUTION
avatar user
Anonymous
Not applicable

Syndicated - Outbound

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. 

View solution in original post

5 REPLIES 5
avatar user
Anonymous
Not applicable

Syndicated - Outbound

Don't you have State field in the db table ? 

Syndicated - Outbound

There is no State field

 

Syndicated - Outbound

That is the only Location Column they have in the report

avatar user
Anonymous
Not applicable

Syndicated - Outbound

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. 

Syndicated - Outbound

Thanks Dan add a conditional column using the if statement

avatar user

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)