【发布时间】:2020-03-12 19:28:28
【问题描述】:
亲爱的巫师)
我正在尝试创建一个可以使用输入的搜索功能: 1. 搜索表 2. 将在其中运行搜索的此表的列 3. 在2中指定的列中搜索的值
函数如下所示:
( mTbl as table, mColName as text, mColValue as text) =>
let
Source = mTbl,
FilteredTable = Table.SelectRows(Source, each ([ mColName ] = mColValue )),
Result = List.Count(FilteredTable[ mColName ])
in
Result
但它会导致错误:
Expression.Error:未找到表的列“mColName”。 细节: mColName
有什么建议吗? 非常感谢提前
【问题讨论】:
标签: function powerquery