Skip to content

Instantly share code, notes, and snippets.

@whitemx
Created April 23, 2015 09:38

Revisions

  1. whitemx created this gist Apr 23, 2015.
    10 changes: 10 additions & 0 deletions GetTableData
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    let
    PageRange = {1..100},
    Source = List.Transform(PageRange, each try {_, fnGetCollectionData(_)} otherwise null),
    First = List.FirstN(Source, each _ <> null),
    Table = Table.FromRows(First, {"Page", "Column1"}),
    split = Splitter.SplitTextByDelimiter(","),
    fieldnames = split(fnGetParameter("fields")),
    Expanded = Table.ExpandTableColumn(Table, "Column1", fieldnames)
    in
    Expanded