Forum Discussion

Kopec's avatar
Kopec
Icon for Helper I rankHelper I
5 years ago
Solved

Source; table ACC; several tables, select one if exist, if not select the second... TRABL

Hi, I need to select a table from the list of names several tables in a fixed order. And it's possible that first tables do not exist. I need to try the first name of the table and test if does exi...
  • artemus's avatar
    5 years ago

    let

    Source = Excel.CurrentWorkbook(),

    ActiveTable = (Source{[Name="Table1"]}? ?? Source{[Name="Table2"]}? ?? Source{[Name="Table3"]}?)[Content]

    in

    ActiveTable