KNOWLEDGE BASE

Setting Date Range Filter Values Using a URL Parameter


Published: 08 Oct 2014
Last Modified Date: 14 Oct 2018

Question

How to set date range filter values using a URL parameter. 

Environment

  • Tableau Online
  • Tableau Server

Answer

  1. Create start and end date parameters. For more information, see Creating a Filter for Start and End Dates Using Parameters.
  2. Go to Dashboard > Actions > Add Action > Go to URL...
  3. Use the start and end date parameters in your URL. Example: mytableauserver/#/site/sitename/views/workbook/view?Start_Date=<Parameters.Start_Date>&End_Date=<Parameters.End_Date> For more information, see How View URLs Are Structured.
Note: Date (and time) values passed via URL parameter need to match the following Tableau default format: yyyy-mm-dd hh:mm:ss
The desired format can be applied by right-clicking the parameter > Default Properties > Date format...
Did this article resolve the issue?