title: SSRS - Report Builder 3.0 - This Day Last Year
body: <p>I'm trying to get a Today vs This Day Last Year Comparison Report sorted. </p>
  
  <p>I set a <code>'From'</code> and <code>'To'</code> date based on a <code>'Preset'</code> parameter.</p>
  
  <p>So if it is set to <code>'This Week'</code> it sets the start date to Monday and the end date to Sunday.</p>
  
  <p>What I want now is a Today vs This Day Last Year. So for example, if i were to do it for today, I would get <code>09/04/2015</code> vs <code>10/04/2014</code>. So as today is Thursday, I want the nearest Thursday from <code>09/04/2014</code>.</p>
  
  <p>Also want the same for <code>'Yesterday'</code>. <code>So 08/04/2015</code> vs <code>09/04/2014</code></p>
  
  <p>Is there a way to do this in either the Parameters SSRS expression, or within the custom 'Code' section?</p>