title: Expression.Error: We cannot apply operator < to types Function and Number
body: <p>the error is : </p>
  
  <blockquote>
    <p>Expression.Error: We cannot apply operator &lt; to types Function and Number.
    Details: Operator=&lt;    Left=[Function]   Right=16500</p>
  </blockquote>
  
  <p>the code where the error gives : </p>
  
  <pre><code>#"Added Conditional Column4" = Table.AddColumn(#"Added Custom9", "Custom", List.Max( { 16500, each if [Gross Remuneration] &gt; 200000 then 
  
       Number.From(if  [Gross Remuneration]*0.125 &gt; 40000 then 40000 else [Gross Remuneration]*0.125) +  Number.From( if  [Gross Remuneration]*0.025 &gt; 5000 then 5000 else [Gross Remuneration]*0.025 )
  
       else 
  
       Number.From(if [Gross Remuneration]*0.125 &gt; 20000 then 20000 else [Gross Remuneration]*0.125) +  Number.From(if  [Gross Remuneration]*0.025 &gt; 5000 then 5000 else [Gross Remuneration]*0.025)
  
       })
  
  
      )
  </code></pre>
  
  <p>i tried <code>Number.From</code> in front of the <code>each if</code> but didnt help me the find the maximum number between 16,500 and the number calculated after if clause.</p>
  
  <p>thanks for the help.</p>