title: SSRS Weekday Expressions
body: <p>I have two tables in <strong>SQL Server 2008 R2 Report Builder 3.0</strong> each with the same three columns: Task, Assigned To and Due Date. </p>
  
  <p>My goal is to use the expression builder to show me a specific range of dates for each table.</p>
  
  <p>In the first table, I want to show only the records/rows where the due date is older than or equal to the previous Friday. All records that show up last week (Monday - Friday) must have the Fields!Due_Date.value highlighted as yellow. If Fields!Due_Date.value is two Fridays ago or older, the record will be highlighted as red.</p>
  
  <p>The second table contains the same columns as the first. In this table, I only want to display the records where the Due Date value is within the current week (Monday - Friday). There does not need to be a color.</p>
  
  <hr>
  
  <p>MY PROGRESS</p>
  
  <hr>
  
  <p><strong>There are two filters in the first table:</strong></p>
  
  <ul>
  <li>Expression: [Due_Date]</li>
  <li>Data Type: Date/Time</li>
  <li>Operator: &lt;</li>
  <li>Value: =Today()</li>
  </ul>
  
  <p><strong>AND</strong></p>
  
  <ul>
  <li>Expression: =IsNothing(Fields!Due_Date.Value)</li>
  <li>Data Type: Boolean</li>
  <li>Operator: =</li>
  <li>Value: False</li>
  </ul>
  
  <p>I have customized the Background Color for the Due Date TextBox and use the following expression:</p>
  
  <pre><code>=IIF(Fields!Due_Date.Value &lt;= DateAdd("d", -8(today()), "Red", "Yellow")
  </code></pre>
  
  <p>These expressions and filters will only give me the results that I want when the current day is Monday. </p>
  
  <p>To reiterate, I want the table to show records where the due date is less than today and where the background color of the Due Date cell is yellow when the value is any day of last week, AND where if the due date is two past fridays or older, then the background color to be red.</p>