New Year Sale 2026! 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

Actual exam question for Salesforce's Analytics-Con-301 exam
Question #: 2
Topic #: 1
[All Analytics-Con-301 Questions]

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?

Show Suggested Answer Hide Answer
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.


Contribute your Thoughts:

0/2000 characters
Gladys
2 months ago
Wait, why are we using weeks in A? Seems off.
upvoted 0 times
...
Twanna
3 months ago
I think A is better for weeks, but not sure.
upvoted 0 times
...
Mitsue
3 months ago
Option B looks solid, using days makes sense.
upvoted 0 times
...
Dorinda
3 months ago
Definitely B, average wait time should be in days.
upvoted 0 times
...
Ozell
3 months ago
Not convinced, why not just calculate the total days directly?
upvoted 0 times
...
Annett
3 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?
upvoted 0 times
...
Floyd
4 months ago
I feel like we practiced something similar, but I can't recall if we used DATETRUNC or just a simple date difference.
upvoted 0 times
...
Santos
4 months ago
I think option B makes sense because it calculates the average wait time in days, which seems more straightforward than weeks.
upvoted 0 times
...
Nidia
4 months 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.
upvoted 0 times
...
Malcom
4 months 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.
upvoted 0 times
...
Rachael
5 months 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.
upvoted 0 times
...
Staci
5 months 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.
upvoted 0 times
...
Rhea
5 months 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.
upvoted 0 times
...
Naomi
5 months ago
This looks like a tricky one. I'll need to think through the logic carefully to make sure I get the right calculation.
upvoted 0 times
...
Tiera
6 months ago
I disagree, I believe option C is the correct calculation.
upvoted 0 times
...
Ivory
6 months ago
I think the consultant should use option B.
upvoted 0 times
...

Save Cancel