dear wizards)
I'm trying to create a search function where I could use input: 1. Table for search 2. Column of this Table in which search will run 3. Value to search in the column specified in 2
the function looks like this:
( 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
yet it results in Error:
Expression.Error: The column 'mColName' of the table wasn't found. Details: mColName
Could there be any suggestions? Many thanks in advance