title: Pass expression as parameter to Dataset in SSRS
body: <p>In FetchXml Query I have end date being passed as parameter but for Start Date the parameter is based on user selection. For example, a user can select as MTD, QTD and YTD as reporting time. So if user select QTD as start date and End Date is select some date in February like 25th. So I need to pull records that were created from Start of the quarter to the selected date in end date. </p>
  
  <p>What I can do I make parameter but its values are fixed in a sense what if the user is interested to select date form last year. </p>
  
  <p>The way around is to use textbox and get sorted the start date based and selected value and pass this new expression as parameter to dataset. </p>
  
  <p>These are just assumption, I would like to hear form gurus to get this query sorted out. </p>
  
  <p>Below is my FetchXml query:</p>
  
  <pre><code>&lt;fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true" &gt;
      &lt;entity name="account" &gt;
          &lt;attribute name="name" /&gt;
          &lt;attribute name="address1_telephone1" /&gt;
          &lt;attribute name="fax" /&gt;
          &lt;attribute name="accountid" /&gt;
          &lt;order attribute="fullname" descending="false" /&gt;
          &lt;filter type="and" &gt;
              &lt;condition attribute="createdon" operator="on-or-after" value="" /&gt;
              &lt;condition attribute="createdon" operator="on-or-before" value="" /&gt;
          &lt;/filter&gt;
      &lt;/entity&gt;
  &lt;/fetch&gt;
  </code></pre>