This is a follow-up to my previous question which was answered by @SamNseir - thanks again!
I found another type of data in my original source column: several JSON array, comma-separated ....
Example:
Answer
-----------------------------
["German","English","French"]
["Ja","Yes","Oui"]
["A","B","C"],["A1","B1","C1"],["A2","B2","C2"]
0
Bern
I would like to "convert" this mixed bag of data so that
So in the end, I'd like to have this:
Answer
------
German
Ja
A,A1,A2
0
Bern
Any ideas? I'm still trying to get the hang of doing this kind of stuff in PowerBI ...
Not the most elegant but works.
if Text.Contains ([Answer],"],[") then Text.Combine( List.Transform( List.RemoveFirstN( Text.Split([Answer], "["""),1), each Text.BeforeDelimiter( _, """,")),",") else
try Json.Document([Answer]){0} otherwise [Answer]