Forum Discussion
Anonymous
5 years agoNot applicable
Parse JSON String in column
Hi, How is possible to parse JSON string in the column to several columns?
v-alq-msft
5 years agoCommunity Support
Hi, Anonymous
You may try adding a new step with the following m codes.
=Table.TransformColumns(#"Last Step",{{"device",Json.Document},{"geo",Json.Document},
{"app_info",Json.Document}})
Then you may expand the column to get the corresponding result.
For further information, please refer to the following link.
Convert JSON strings to tables in Power Query/ Power BI
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- CNENFRNL5 years agoCommunity Champion
Hi, v-alq-msft , you might want to simply the code this way if the table consists of too many columns
= Function.Invoke(Table.TransformColumns, {#"Last Step", List.Accumulate(Table.ColumnNames(#"Last Step"), {}, (s,c)=>s&{{c,Json.Document}})}) - Anonymous5 years agoNot applicable
Hi,
Where I need to add "New Step"?- v-alq-msft5 years agoCommunity Support
Hi, Anonymous
You may right click the last step of the query and click 'Insert Step After' like below.
Best Regards
Allan