title: PowerBI_variables_error message "cannot convert value of type Text to type TRUE/FALSE"
body: <p>In PowerBI I have a table like this:</p>
  
  <p><a href="https://i.stack.imgur.com/NsA8A.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NsA8A.png" alt="enter image description here"></a></p>
  
  <p>I created a measure to calculate the total head count for selected groups and selected age:</p>
  
  <pre><code>head count_total = 
  VAR
    Category = FILTER(ALL('table'[group]), 'table'[group] = "apple" || "pear")
  VAR
    includeage = FILTER(ALL('table'[age]), table[age]&gt;=20)
  RETURN
    CALCULATE(SUM('table'[head count]), Category, includeage)
  </code></pre>
  
  <p>I get this error message:</p>
  
  <blockquote>
    <p>Cannot convert value “pear” of type Text to type TRUE/FALSE</p>
  </blockquote>
  
  <p>Can anyone help diagnose where went wrong in the coding? Many thanks!</p>