title: Power Query column name as parameter
body: <p>dear wizards)</p>
  
  <p>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</p>
  
  <p>the function looks like this:</p>
  
  <pre><code>( mTbl as table, mColName as text, mColValue as text) =&gt;
  
  let
      Source = mTbl,
      FilteredTable = Table.SelectRows(Source, each ([ mColName ] =  mColValue )),
      Result = List.Count(FilteredTable[ mColName ])
  in
      Result
  </code></pre>
  
  <p>yet it results in Error:</p>
  
  <blockquote>
    <p>Expression.Error: The column 'mColName' of the table wasn't found.
    Details:
        mColName</p>
  </blockquote>
  
  <p>Could there be any suggestions?
  Many thanks in advance</p>