代码之家  ›  专栏  ›  技术社区  ›  Error 1004

将表源作为变量传递-Power BI

  •  0
  • Error 1004  · 技术社区  · 2 年前

    我试图使用一个变量的源字符串,但我遇到了一个错误,无法将字符串转换为列表。

    我有以下步骤作为来源:

    = Table.Combine({#"File 2023", #"File 2024", #"File 2025"})

    我创建了一个表,并将其作为值导入下面的字符串

    {#"File 2023", #"File 2024", #"File 2025"}

    调用了变量 cnsList 创建,字符串成功传递到变量中。

    当我使用 = Table.Combine(cnsList) 我得到了一个错误,我不能使用文本作为列表。

    有什么想法吗?

    更新

    高级编辑器查询

    enter image description here

    测试变量

    enter image description here

    错误

    enter image description here

    1 回复  |  直到 2 年前
        1
  •  1
  •   davidebacci    2 年前

    试试这个:

    Table.Combine(Expression.Evaluate(cnsList, #shared))