Forum Discussion

smpa01's avatar
smpa01
Icon for Community Champion rankCommunity Champion
3 years ago
Solved

How to create an empty table from a list where list items become the table columns

The title might be confusing.

 

I have a list as follows

let
    Source = {"c1","c2","c3"}
in
    Source

 

 

I want to end up with an empty table as this is where the column names come from the list values.

 

ImkeF AlexisOlson Anonymous 

Thank you in advance

 

  • let
        Source = {"c1","c2","c3"},
        EmptyTable = #table(Source,{})
    in
        EmptyTable

3 Replies

  • CNENFRNL's avatar
    CNENFRNL
    Icon for Community Champion rankCommunity Champion
    let
        Source = {"c1","c2","c3"},
        EmptyTable = #table(Source,{})
    in
        EmptyTable

    • Anonymous's avatar
      Anonymous
      Not applicable

      Flattered to be included with such illustrious company.

       

      --Nate