{"id":305,"date":"2014-03-26T00:09:00","date_gmt":"2014-03-26T00:09:00","guid":{"rendered":"http:\/\/arunethan.com\/?p=305"},"modified":"2015-12-01T16:30:28","modified_gmt":"2015-12-01T16:30:28","slug":"using-rangerelative-filter-for-a-discrete-date-field-in-tableau","status":"publish","type":"post","link":"http:\/\/arunethan.com\/?p=305","title":{"rendered":"Using Range\/Relative filter for a discrete Date field in Tableau"},"content":{"rendered":"<div class=\"pf-content\"><h2><span style=\"color: #000080;\">Different Date filters<\/span><\/h2>\n<p><strong>Relative Date<\/strong>\u00a0&#8211; This filter helps to analysis the data with respect to year, quarter, month, weeks, days relative to the current date or an user created anchor date.<\/p>\n<p><strong>Range of Dates<\/strong> &#8211; If the data has to be analyzed based on certain user defined interval<\/p>\n<p><strong>Start Date and End Date<\/strong> &#8211; End date is helpful for As-of Date analysis<\/p>\n<p><strong>Browse Period<\/strong> &#8211; Data can be analyzed on various date granularity<\/p>\n<h2><span style=\"color: #000080;\">My Use-case<\/span><\/h2>\n<p>To have a range filter in my dashboard to filter crosstab data, which consist of sales values aggregated by months.<\/p>\n<h2><span style=\"color: #000080;\">Steps<\/span><\/h2>\n<p>Create a dashboard with Date field in it<\/p>\n<p><a href=\"http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/121.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-306\" src=\"http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/121-1024x527.png\" alt=\"1\" width=\"936\" height=\"481\" srcset=\"http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/121-1024x527.png 1024w, http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/121-300x154.png 300w, http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/121.png 1366w\" sizes=\"(max-width: 936px) 100vw, 936px\" \/><\/a><\/p>\n<p>Right-click on the Date field and select \u201cshow quick filter\u201d<\/p>\n<p><a href=\"http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/27.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-307\" src=\"http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/27.png\" alt=\"2\" width=\"1093\" height=\"566\" srcset=\"http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/27.png 1366w, http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/27-300x155.png 300w, http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/27-1024x529.png 1024w\" sizes=\"(max-width: 1093px) 100vw, 1093px\" \/><\/a><\/p>\n<p>In the Filter option of the Date field, select \u201cContinuous\u201d instead of \u201cDiscrete\u201d<\/p>\n<p><a href=\"http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/34.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-308\" src=\"http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/34.png\" alt=\"3\" width=\"1366\" height=\"707\" srcset=\"http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/34.png 1366w, http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/34-300x155.png 300w, http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/34-1024x529.png 1024w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<h2><span style=\"color: #000080;\">Result<\/span><\/h2>\n<p><a href=\"http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/43.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-309\" src=\"http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/43.png\" alt=\"4\" width=\"1366\" height=\"705\" srcset=\"http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/43.png 1366w, http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/43-300x154.png 300w, http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/43-1024x528.png 1024w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<h2><span style=\"color: #000080;\">OR<\/span><\/h2>\n<p>Drag and drop the Date field to the filters mark and you will get all the option related to Date filter<\/p>\n<p><a style=\"line-height: 1.5em;\" href=\"http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-310\" src=\"http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/5.png\" alt=\"5\" width=\"1366\" height=\"707\" srcset=\"http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/5.png 1366w, http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/5-300x155.png 300w, http:\/\/arunethan.com\/wp-content\/uploads\/2014\/03\/5-1024x529.png 1024w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Different Date filters Relative Date\u00a0&#8211; This filter helps to analysis the data with respect to year, quarter, month, weeks, days relative to the current date or an user created anchor date. Range of Dates&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":310,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105],"tags":[45,27],"_links":{"self":[{"href":"http:\/\/arunethan.com\/index.php?rest_route=\/wp\/v2\/posts\/305"}],"collection":[{"href":"http:\/\/arunethan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/arunethan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/arunethan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/arunethan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=305"}],"version-history":[{"count":9,"href":"http:\/\/arunethan.com\/index.php?rest_route=\/wp\/v2\/posts\/305\/revisions"}],"predecessor-version":[{"id":349,"href":"http:\/\/arunethan.com\/index.php?rest_route=\/wp\/v2\/posts\/305\/revisions\/349"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/arunethan.com\/index.php?rest_route=\/wp\/v2\/media\/310"}],"wp:attachment":[{"href":"http:\/\/arunethan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/arunethan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=305"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/arunethan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}