Skip to content

Instantly share code, notes, and snippets.

View anton-dudarev's full-sized avatar
🎯
Focusing

Anoubis anton-dudarev

🎯
Focusing
View GitHub Profile
@anton-dudarev
anton-dudarev / fnJsonToTable.pq
Last active September 5, 2020 11:50 — forked from Hugoberry/JSON2table.m
JSON to Table in Power Query M
(json) => 
  let
    //List the expandable columns
    expandableColumns = (_) => List.Accumulate(
        Table.ColumnNames(_), 
        {}, 
        (s, c) => 
          s
            & (
            if Type.Is(Value.Type(Record.Field(_{0}, c)), type record)