Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
jaharris91
New Member

Extracting state and country from unstructured address field

I have a data source that is pulling in address information in a single column and there isn't any structure to how that information is input (see example)

 

Speech Address
Raleigh, NC Convention Center
3799 Las Vegas Blvd, Las Vegas NV 89109
Long Beach, CA
Virtual
Waldorf Astoria DC (1100 Pennsylvania Avenue NW, Washington DC 20004)
Fira de Barcelona
Brussels Belgium
Javits Center

 

I need a column for a graphic that is parsing out City/State for inside the US and City/Country information for outside the US. (example below). Is there any way to accomplish this in Power Query?

 

Speech AddressState/Country
Raleigh, NC Convention CenterRaleigh, North Carolina
3799 Las Vegas Blvd, Las Vegas NV 89109Las Vegas, Nevada
Long Beach, CALong Beach, California
Virtual 
Waldorf Astoria DC (1100 Pennsylvania Avenue NW, Washington DC 20004)Washington, DC, United States
Fira de BarcelonaBarcelona, Spain
Brussels BelgiumBrussels, Belgium
Javits CenterNew York, New York
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jaharris91,

Thanks for reaching out to the Microsoft fabric community forum.

Just following up to your previous conversation with @lbendlin. I'd like to confirm if you've successfully resolved this issue or if you need further help as @lbendlin have already responded to your query.

 

I would also take a moment to thank @lbendlin, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.

 

If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

Best Regards,
Hammad.
Community Support Team

 

If this post helps then please mark it as a solution, so that other members find it more quickly.

Thank you.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @jaharris91,

Thanks for reaching out to the Microsoft fabric community forum.

Just following up to your previous conversation with @lbendlin. I'd like to confirm if you've successfully resolved this issue or if you need further help as @lbendlin have already responded to your query.

 

I would also take a moment to thank @lbendlin, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.

 

If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

Best Regards,
Hammad.
Community Support Team

 

If this post helps then please mark it as a solution, so that other members find it more quickly.

Thank you.

Anonymous
Not applicable

Hi @jaharris91,

As we haven’t heard back from you, so just following up to our previous message. I'd like to confirm if you've successfully resolved this issue or if you need further help.

If yes, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well. If you find a reply particularly helpful to you, you can also mark it as a solution.


If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.
Thank you for your patience and look forward to hearing from you.

Anonymous
Not applicable

Hi @jaharris91,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution so that other community members can find it easily.


Thank you.

Anonymous
Not applicable

Hi @jaharris91,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

 

Thank you.

lbendlin
Super User
Super User

You can run Python and R scripts in Power Query. They need to result in a dataframe, and they require the use of a personal gateway.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors