title: PowerBI Filter Context Problems
body: <p>I have a measure setup in Power BI, that is not behaving as I would expect and I'm trying to figure out what is missing here.  The measure that I have defined is fairly straightforward and seen below.</p>
  <pre><code>Test Filter Removal = 
  CALCULATE(
      SELECTEDVALUE('Report Options'[Operation Costs], &quot;Costs &quot;),
      REMOVEFILTERS('Report Options'),
      FILTER('Report Options', 'Report Options'[Operation Costs] = &quot;Costs at Current Year Rates&quot;)
  )
  </code></pre>
  <p>The table 'Report Options'[Operation Costs] has 2 options in it &quot;Costs at Actual Year Rates&quot; and &quot;Costs at Current Year Rates&quot;.  The context on the page for this report is that the Costs at Actual Year Rates is selected, but for this measure I want it to report Costs at Current Year Rates.</p>
  <p>The full measure is more complicated then this, but the whole problem of the more complicated measure comes down to the fact that this part of the measure is returning &quot;Costs &quot; in this example, which is the default value being used in the SelectedValue function.</p>
  <p>What I don't understand about this is that the filter specified is should be specifically setting it to Costs at Current Year Rates.  I'm sure that the problem has to do with context, but I'm not seeing what it is.</p>