title: PowerBI CALCULATETABLE, FILTER with SELECTEDVALUE
body: <p>Am creating a table from original with filter condition, where my filter value is from SELECTEDVALUE</p>
  <p><a href="https://i.stack.imgur.com/PejKU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PejKU.png" alt="enter image description here" /></a></p>
  <p>Table is not getting filtered on SELECTEDVALUE, if I replace with a real value then it works.</p>
  <p>Code (doesn't work)</p>
  <pre><code>TransGt5 = 
  var seletectedQuanity = SELECTEDVALUE(QuantityFilter[Quantity])
      return CALCULATETABLE(
          Transactions,
          FILTER(
                  ALL(Transactions),
                  Transactions[Quantity] &gt;= seletectedQuanity
              ))
  </code></pre>
  <p>Code works file with hard coded value:</p>
  <pre><code>TransGt5 = 
  var seletectedQuanity = SELECTEDVALUE(QuantityFilter[Quantity])
      return CALCULATETABLE(
          Transactions,
          FILTER(
                  ALL(Transactions),
                  Transactions[Quantity] &gt;= 3
              ))
  </code></pre>
  <p>what am doing wrong?</p>