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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
jlowelowe
New Member

How do I clean this up?

(Apologies if I'm posting this in the wrong place. If so, I'm happy to be sent off in the right direction.)

 

I'm trying just to create a table, for now. I imported a .CSV into Power BI and one my columns is filled with values that looks like this:

 

{"or":[{"tag":"northbay","group":"otvTagGroup"},{"tag":"napa","group":"otvTagGroup"},{"tag":"petaluma","group":"otvTagGroup"},{"tag":"sanrafael","group":"otvTagGroup"},{"tag":"santarosa","group":"otvTagGroup"},{"tag":"sonoma","group":"otvTagGroup"}]}

 

What's the best way to go about cleaning this up? All I need are the terms like: northbay, napa, petaluma, sanrafael, etc.

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

Hello @jlowelowe 

In the query editor you can do some replace steps to clean it up.

Replace ","group":"otvTagGroup"} with nothing

Replace {"tag":" with nothing

Replace {"or":[ with nothing

Replace ]} with nothing

ReplaceValues.jpgReplaceValuesSteps.jpg

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

Hello @jlowelowe 

In the query editor you can do some replace steps to clean it up.

Replace ","group":"otvTagGroup"} with nothing

Replace {"tag":" with nothing

Replace {"or":[ with nothing

Replace ]} with nothing

ReplaceValues.jpgReplaceValuesSteps.jpg

Ok I see, I'll give this a shot. Thanks!

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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