Forum Discussion
Jayendran
Solution Sage
7 years agoConvert json List Record to Table value
Hi, I'm totally new to Power BI so I'm tried different approached to convert my JSON file to a table but unsuccessful so far. This is my JSON File {
"Family": [
{
...
- 7 years ago
You can use this
let Source = Json.Document(File.Contents("C:\Users\hp\Desktop\File.JSON")), Family = Source[Family], #"Converted to Table" = Table.FromList(Family, Splitter.SplitByNothing(), null, null, ExtraValues.Error), #"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"Father", "Age", "Mother", "MAge", "Children"}, {"Father", "Age", "Mother", "MAge", "Children"}) in #"Expanded Column1"Please see attached files as well
Zubair_Muhammad
Community Champion
7 years ago
You can use this
let
Source = Json.Document(File.Contents("C:\Users\hp\Desktop\File.JSON")),
Family = Source[Family],
#"Converted to Table" = Table.FromList(Family, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"Father", "Age", "Mother", "MAge", "Children"}, {"Father", "Age", "Mother", "MAge", "Children"})
in
#"Expanded Column1"
Please see attached files as well
Jayendran
Solution Sage
7 years agoThanks for the solution, Actually I'm missing the ExpandRecordColumn Function