KNOWLEDGE BASE

Synchronise The Slider Label Of DATETRUNC Month Filter With Displayed Month To Axis


Published: 19 Mar 2020
Last modified date: 27 Oct 2022

Question

When placing a continuous DATETRUNC field, such as year or month, to filter. The labels of the filter slider and the date displayed to the axis are not synchronised. How can I synchronise them?
User-added image

 

Environment

  • Tableau Desktop

Answer

Self-blend the data source with a relationship of MY(Order Date). Here are the steps demonstrated in the attached workbook.
  1. Right-click on the Sample - Superstore data source and click Duplicate.
  2. Click Data > Edit Relationships.
  3. Confirm that the primary data source is Sample - Superstore and select Custom.
  4. Remove all other relationships except MY(Order Date) then click OK.
  5. Open the Sample - Superstore (copy) data source and right-click Order Date > Default Properties > Date Format.
  6. Select Customise and set yyyy/mm. 
  7. Open the Sample - Superstore data source and Place Order Date to columns and select MY(Order Date).
  8. Place Sales to rows.
  9. Open the Sample - Superstore (copy) data source and place Order Date to filter and right-click > Show Filter.
Did this article resolve the issue?