Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Analytics-Con-301 Exam - Topic 1 Question 2 Discussion

Posted by Carman on Aug 17, 2025 at 11:22 PM

An online sales company has a table data source that contains Order Date. Products ship on the first day of each month for all orders from the previous month.

The consultant needs to know the average number of days that a customer must wait before a product is shipped.

Which calculation should the consultant use?

Suggested Answer: B

The correct calculation to determine the average number of days a customer must wait before a product is shipped is to first find the shipping date, which is the first day of the following month after the order date. This is done using DATETRUNC('month', DATEADD('month', 1, [Order Date])). Then, the average difference in days between the order date and the shipping date is calculated using AVG(DATEDIFF('day', [Order Date], [Calc1])). This approach ensures that the average wait time is calculated in days, which is the most precise measure for this scenario.

References: The solution is based on Tableau's date functions and their use in calculating differences between dates, which are well-documented in Tableau's official learning resources and consultant documents12.

To calculate the average waiting days from order placement to shipping, where shipping occurs on the first day of the following month:

Calculate Shipping Date (Calc1): Use the DATEADD function to add one month to the order date, then apply DATETRUNC to truncate this date to the first day of that month. This represents the shipping date for each order.

Calculate Average Wait Time (Calc2): Use DATEDIFF to calculate the difference in days between the original order date and the calculated shipping date (Calc1). Then, use AVG to average these differences across all orders, giving the average number of days customers wait before their products are shipped.

References:

Date Functions in Tableau: Functions like DATEADD, DATETRUNC, and DATEDIFF are used to manipulate and calculate differences between dates, crucial for creating metrics that depend on time intervals, such as customer wait times in this scenario.


Get Premium Analytics-Con-301 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
16 comments · newest first
GL
Gladys 10 months ago
Wait, why are we using weeks in A? Seems off.
TW
Twanna 11 months ago
I think A is better for weeks, but not sure.
MI
Mitsue 11 months ago
Option B looks solid, using days makes sense.
DO
Dorinda 11 months ago
Definitely B, average wait time should be in days.
OZ
Ozell 11 months ago
Not convinced, why not just calculate the total days directly?
AN
Annett 11 months ago
I'm leaning towards option A, but I’m uncertain about using weeks. Shouldn't we focus on days for a more precise average?
FL
Floyd 12 months ago
I feel like we practiced something similar, but I can't recall if we used DATETRUNC or just a simple date difference.
SA
Santos 12 months ago
I think option B makes sense because it calculates the average wait time in days, which seems more straightforward than weeks.
NI
Nidia 1 year ago
I remember we discussed how to calculate shipping delays, but I'm not sure if using weeks or days is better for this question.
MA
Malcom 1 year ago
I'm leaning towards option B as well. The other options seem a bit more convoluted, and I want to keep things simple and straightforward for this exam question.
RA
Rachael 1 year ago
Option B seems straightforward - it's calculating the difference in days between the order date and the first of the following month. That should give us the average wait time.
ST
Staci 1 year ago
I'm a bit confused by the different date functions used in the options. I'll need to double-check my understanding of DATETRUNC and DATEADD to make sure I'm applying them correctly.
RH
Rhea 1 year ago
Okay, let's see. We need to find the average number of days between the order date and the shipping date, which is the first of the following month. I think option B might be the way to go here.
NA
Naomi 1 year ago
This looks like a tricky one. I'll need to think through the logic carefully to make sure I get the right calculation.
TI
Tiera 1 year ago
I disagree, I believe option C is the correct calculation.
IV
Ivory 1 year ago
I think the consultant should use option B.
0/2000 characters

Save Cancel