title: How to filter a dataset using a parameter?
body: <p>I have two reports which share one stored procedure as a dataset source and are almost identical except of filter clausule.
  I've created an inner report parameter and what to set a filter according to this param.</p>
  
  <p>I've tried:</p>
  
  <pre><code>...data
      WHERE 
          CASE WHEN @ReportFilter = 1 THEN apd.[Date] BETWEEN @DateFrom AND @DateTo
               WHEN @ReportFilter = 2 THEN pd.[Date] BETWEEN @DateFrom AND @DateTo
          END
  </code></pre>