Complete the code to filter data for the last 7 days using relative date filtering in Tableau.
FILTER [Order Date] >= DATEADD('day', [1], TODAY())
Using DATEADD with -7 days filters data from the last 7 days including today.
Complete the code to filter data for the current month using relative date filtering in Tableau.
FILTER DATETRUNC('month', [Order Date]) = DATETRUNC('month', [1])
Using TODAY() truncates to the current month, filtering data for this month.
Fix the error in the relative date filter to show data from the last 3 months.
FILTER [Order Date] >= DATEADD('month', [1], TODAY())
The number must be negative to go back 3 months from today.
Fill both blanks to filter data for the last 14 days excluding today.
FILTER [Order Date] > DATEADD('day', [1], TODAY()) AND [Order Date] <= DATEADD('day', [2], TODAY())
Start 14 days ago (exclusive) and end 1 day ago (inclusive) to exclude today.
Fill all three blanks to filter data for the current quarter in Tableau.
FILTER DATETRUNC('quarter', [Order Date]) = DATETRUNC('[1]', [2]) AND [Order Date] <= [3]
Use 'quarter' to truncate dates to the quarter, compare with current date TODAY(), and filter dates up to today.