A workbook contains the fields Order Date and Ship Date. You must create a calculated field that returns the number of days an order spent in transit, counting both the day the order was placed and the day it shipped. Which expression meets this requirement?
DATEDIFF returns the number of date boundaries crossed, so the difference between two identical dates is 0. To include both the start and end dates in the count, you add 1 to the DATEDIFF result. Therefore, adding 1 to DATEDIFF('day',[Order Date],[Ship Date]) produces an inclusive day count. The other expressions either reverse the arguments (producing negative values), omit the +1 (exclusive of one date), or subtract 1 (making the result too small).
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of the DATEDIFF function in Tableau?
Open an interactive chat with Bash
Why do we add 1 to the DATEDIFF function result in this scenario?
Open an interactive chat with Bash
What happens if the arguments in DATEDIFF are reversed?
Open an interactive chat with Bash
What is the purpose of the DATEDIFF function in Tableau?
Open an interactive chat with Bash
Why do we add 1 to the DATEDIFF result in this calculation?
Open an interactive chat with Bash
What happens if you reverse the arguments in the DATEDIFF function?
Open an interactive chat with Bash
What is the purpose of the DATEDIFF function in Tableau?
Open an interactive chat with Bash
Why do we add 1 to the DATEDIFF result for an inclusive count?
Open an interactive chat with Bash
What happens if you reverse the arguments in the DATEDIFF function?
Open an interactive chat with Bash
Tableau Desktop Foundations
Exploring and Analyzing Data
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .