title: PowerQuery conditional replace error values
body: <p>I'm trying to execute a step in PowerQuery that replaces error values with one of two possible values.
  The values in [B] would be 1 or 0 depending on the value of [A] (less than 5).</p>
  <p>My statement returns a Function instead of a value, but I can't see why:</p>
  <pre><code>= Table.ReplaceErrorValues(#&quot;Step x&quot;, {{&quot;B&quot;, each if [A] &lt; 5 then 0 else 1}})
  </code></pre>
  <p>I've used the same conditional syntax for simple .Replace statements, but I'm wondering if I can't put the condition in a curly braces list. Can anyone see what I'm doing wrong here?</p>