Forum Discussion
CSV import is splitting JSON data into their own columns
- 6 years ago
Hi Anonymous ,
Glad to hear that you have resolved your problem. Thank you for sharing this wonderful solution, would you please kindly mark your sharing solution as an answer so that it can benefit more users?
Best regards,
Yes, there is a JSON string in every row. I'm stumped on this one. Thank you!
Hi Anonymous ,
Sorry for that, we cannot access your link. Could you please put several json strings based on fake data into the rows of table? Please don't have any Confidential Information or Real data in it. Please delete your shared link if it contain real data.
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous6 years agoNot applicable
Let me see if I can simplify the example just a bit.
- Source file is a .csv
- The "details" header or column contains a JSON string. Here is an example of text from the raw .csv
- {"shipstation-synced":true,"shipstation-orderId":5287458}
- This is what PowerBI is doing to the JSON String. It's being "pushed" into the shopify_order_id column.
- Anonymous6 years agoNot applicable
- alena2k6 years agoResolver IV
Is it always splitting csv into the same set of undesired columns? If so, it should be possible to merge them back with ," as separator and parse the results normally
e.g.
#"Merged Columns" = Table.CombineColumns(#"Replaced Value1",{"details", "shopify_order_id"},Combiner.CombineTextByDelimiter(",""", QuoteStyle.None),"Merged"),
#"Parsed JSON" = Table.TransformColumns(#"Merged Columns",{},Json.Document)
in
#"Parsed JSON"