亲爱的巫师)
我正在尝试创建一个可以使用输入的搜索功能: 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
Run Code Online (Sandbox Code Playgroud)
但它导致错误:
Expression.Error:未找到表的“mColName”列。详细信息:mColName
有什么建议吗?提前谢谢了