title: Tableau, Week to Date, Month To Date, Year to Date parameter
body: <p>I have a data set spanning 2 years and is updated daily, created a dashboard to give a view of incidents by date group. I have created a parameter using date trunc for Day/Week/Month/Quarter/Year. This is in Tableau.</p>
  
  <p>I am trying to get the parameter to show a Week to date, Month to date and so on view. IE if on Weds 15th Dec I selected the weekly view, it would only show data for every week in the data set for Sat-Weds (My weeks go Sat-Fri) or the monthly view every month between 1st-15th</p>
  
  <p>Ideally I am wanting this as a simple parameter for a drop down menu, I can do the week to date stuff as a rolling sum restarting every week in a separate table, but for ease I just need a date group function that will allow to do this.  </p>
  
  <p>Any suggestions would be appreciated. </p>
  
  <p>Cheers</p>
  
  <p>Pete </p>