Dashboard Mode - Custom date formats
Dashboard Goal
Understand sales trends by showing dates in different custom formats to make the timeline easier to read and compare.
Jump into concepts and practice - no test required
Understand sales trends by showing dates in different custom formats to make the timeline easier to read and compare.
| Order ID | Order Date | Sales |
|---|---|---|
| 1001 | 2024-01-15 | 250 |
| 1002 | 2024-02-20 | 450 |
| 1003 | 2024-03-05 | 300 |
| 1004 | 2024-04-10 | 500 |
| 1005 | 2024-05-25 | 350 |
| 1006 | 2024-06-15 | 400 |
SUM([Sales])DATENAME('month', [Order Date]) + ' ' + STR(DATEPART('year', [Order Date])) (e.g., "January 2024")STR(DATEPART('month', [Order Date])) + '/' + STR(DATEPART('year', [Order Date])) (e.g., "1/2024")LEFT(DATENAME('month', [Order Date]), 3) + ' ' + STR(DAY([Order Date])) + ', ' + STR(DATEPART('year', [Order Date])) (e.g., "Jan 15, 2024")DATENAME('month', [Order Date]) + ' ' + STR(DATEPART('year', [Order Date]))STR(DATEPART('month', [Order Date])) + '/' + STR(DATEPART('year', [Order Date]))LEFT(DATENAME('month', [Order Date]), 3) + ' ' + STR(DAY([Order Date])) + ', ' + STR(DATEPART('year', [Order Date]))+----------------------+-----------------------------+ | Total Sales | Sales Over Time | | (KPI Card) | (Line Chart) | +----------------------+-----------------------------+ | Orders with Custom Date Formats | | (Table) | +----------------------------------------------------------+
A date range filter lets users select a start and end date. When changed, all components update:
If you add a filter to show only orders from March 2024 to May 2024, which components update and how?
yyyy-MM-dd display in Tableau?yyyy means four-digit year, MM means two-digit month, and dd means two-digit day.- separate year, month, and day in the output.31/12/2024?dd for day, MM for month, yyyy for year, separated by slashes /.MMM dd, yyyy, what would the date 2024-07-04 display as?MMM shows abbreviated month name (e.g., Jul), dd is two-digit day, yyyy is four-digit year.yyyy/dd/MM in Tableau but the dates look wrong. What is the likely error?yyyy/dd/MM places day before month, which is unusual and likely not intended.January 5, 24. Which format string should you use?MMMM, day without leading zero = d, two-digit year = yy.MMMM d, yy matches exactly: full month, day no leading zero, comma, space, two-digit year.