0
0
Tableaubi_tool~5 mins

Date calculations (DATEDIFF, DATEADD) in Tableau - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the DATEDIFF function do in Tableau?
DATEDIFF calculates the difference between two dates in a specified unit like days, months, or years.
Click to reveal answer
beginner
How do you use DATEADD in Tableau?
DATEADD adds a specified number of units (days, months, years) to a date and returns the new date.
Click to reveal answer
beginner
Example: What is the result of DATEDIFF('month', #2023-01-01#, #2023-04-01#)?
The result is 3 because there are 3 full months between January 1, 2023, and April 1, 2023.
Click to reveal answer
beginner
If you want to find the date 10 days after March 5, 2024, which function and parameters do you use?
Use DATEADD('day', 10, #2024-03-05#) to get March 15, 2024.
Click to reveal answer
intermediate
Why is it useful to use DATEDIFF and DATEADD in business reports?
They help compare dates, calculate durations, and create dynamic date ranges for better insights.
Click to reveal answer
What does DATEDIFF('day', #2024-01-01#, #2024-01-10#) return?
A9
B10
C11
D1
Which function adds months to a date in Tableau?
ADATEDIFF
BNOW
CDATENAME
DDATEADD
What will DATEADD('year', -1, #2023-06-15#) return?
A#2024-06-15#
B#2022-06-15#
C#2023-05-15#
D#2023-07-15#
If you want to find how many months between two dates, which function do you use?
ADATEDIFF
BNOW
CDATEADD
DMAKEDATE
What is the result of DATEDIFF('week', #2024-01-01#, #2024-01-15#)?
A1
B0
C2
D3
Explain how you would calculate the number of days between two dates using Tableau functions.
Think about which function measures difference and what unit to use.
You got /3 concepts.
    Describe how to add 3 months to a given date in Tableau and why this might be useful in reports.
    Focus on the function that changes dates by adding time.
    You got /4 concepts.