Forum Discussion
PrachiShepunde
1 year agoRegular Visitor
Dataflow Gen2-To read a JSON data column n load multiple tables named after parent keys
I need to read a column having JSON format using Dataflow Gen2. It is around 1000 lines of code multiple attributes. I want to store each KeyValue data in seperate table. I do not see option for the ...
- 1 year ago
In Dataflow Gen2, there’s no direct option to automatically split a JSON column into multiple tables based on parent keys, but you can do it manually using Power Query. First, use Json.Document to parse the JSON column, then create separate queries for each key by drilling into the relevant parts of the JSON. Each of these queries can be expanded into table format and marked as output tables individually. This way, each parent key's data is loaded into its own table.
PrachiShepunde
1 year agoRegular Visitor
Thanks! which would be better option? Doing this transformation in the Notebook or the Dataflow?