Friday, June 5, 2026

Top Tableau Scenario-Based Interview Questions Set - 22 (1- 5)

 

1. How would you identify customers who have not placed any order in the last 90 days?

Calculate the difference between today's date and the customer's last order date.

Example:

DATEDIFF(
'day',
{ FIXED [Customer ID] : MAX([Order Date]) },
TODAY()
) > 90

2. How would you calculate the average sales of the Top 10 customers?

Rank customers by sales and average the Top 10.

Example:

IF RANK(SUM([Sales])) <= 10
THEN SUM([Sales])
END

Then place:

AVG([Top 10 Sales])

in the view.


3. How would you identify products whose sales are below the overall average sales?

Compare product sales against overall average sales.

Example:

SUM([Sales])
<
WINDOW_AVG(SUM([Sales]))

Compute using Product.


4. How would you calculate customer recency score?

Measure the number of days since the last purchase.

Example:

DATEDIFF(
'day',
{ FIXED [Customer ID] : MAX([Order Date]) },
TODAY()
)

Lower values indicate more recent customers.


5. How would you identify the top-performing sub-category within each category?

Rank sub-categories by sales within each category.

Example:

RANK(SUM([Sales])) = 1

Compute Using: Sub-Category
Partition By: Category

This returns the highest-selling sub-category for each category.

Thursday, June 4, 2026

Top Tableau Scenario-Based Interview Questions Set - 21 (1- 5)

 

1. How would you identify customers whose sales are declining for 3 consecutive months?

Compare current month sales with the previous two months using table calculations.

Example:

SUM([Sales]) < LOOKUP(SUM([Sales]),-1)
AND
LOOKUP(SUM([Sales]),-1) < LOOKUP(SUM([Sales]),-2)

2. How would you calculate the percentage of new customers each month?

Identify customers whose first purchase occurred in the selected month and divide by total customers.

Example:

COUNTD(
IF DATETRUNC('month',[Order Date]) =
{ FIXED [Customer ID] : DATETRUNC('month',MIN([Order Date])) }
THEN [Customer ID]
END
)
/
COUNTD([Customer ID])

3. How would you identify products with sales above the category average?

Compare product sales against category average using a FIXED LOD.

Example:

SUM([Sales]) >
{ FIXED [Category] : AVG([Sales]) }

4. How would you calculate customer profitability ranking?

Rank customers based on total profit generated.

Example:

RANK(SUM([Profit]))

Sort Profit descending to get highest-profit customers at Rank 1.


5. How would you identify regions contributing more than 25% of total sales?

Calculate regional contribution and filter regions above 25%.

Example:

SUM([Sales])
/
TOTAL(SUM([Sales]))
> 0.25

This highlights the regions driving a significant portion of overall revenue.