Forum Discussion
JSON data stored in 2 lists. 1 columns header, 1 data. Need to make into a table
- 3 years ago
Hi AshleyWells
Please add a custom column with this. Notice that there is a pair of {} around [ColumnData].
= Table.AddColumn(PreviousStep, "Custom", each #table([ColumnNames],{[ColumnData]}))Then expand the custom table column.
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi AshleyWells,
Could you share an image of the contents of the [ColumnData] column as well?
I've assumed it contained either a list with nested lists (one for each column header) in that case the list count for [ColumnData] and [ColumnHeaders] should be equal. OR it contained a list with nested lists (one for each row in the table) BUT it could also contain a list with nested records...
Can you drill down intoit and let met know what you find?
Thanks!
Hi m_dekorte
I have to be carefull with this data as it's sensitive
Both [ColumnData] and [ColumnNames] should hold the same amount of data in each list.
In the bottom 2 rows of the [ColumnData] there is nested data but I don't need this extracting.
Thanks so much for your help so far
Ash
- v-jingzhang3 years ago
Community Support
Hi AshleyWells
Please add a custom column with this. Notice that there is a pair of {} around [ColumnData].
= Table.AddColumn(PreviousStep, "Custom", each #table([ColumnNames],{[ColumnData]}))Then expand the custom table column.
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.- AshleyWells3 years agoRegular Visitor
v-jingzhang that works perfectly, thanks so much!