Tuesday, June 16, 2026

Top Tableau Scenario-Based Interview Questions Set -32 (1- 10) - Important

 

1. How would you identify customers who purchased in consecutive months?

Find customers whose purchase month difference is exactly 1.

DATEDIFF(
'month',
LOOKUP(MIN([Order Date]),-1),
MIN([Order Date])
) = 1

This helps analyze customer engagement and retention.


2. How would you identify customers whose latest purchase amount is greater than their first purchase amount?

Compare sales from first and latest purchase.

First Purchase Date

{ FIXED [Customer ID] :
MIN([Order Date])
}

Latest Purchase Date

{ FIXED [Customer ID] :
MAX([Order Date])
}

Flag customers where latest purchase value exceeds first purchase value.


3. How would you calculate the percentage of customers acquired each month?

Count first-time customers in a month divided by total customers.

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

4. How would you identify products that are sold together frequently?

Create combinations using Order ID.

COUNTD([Order ID])

Then analyze Product A and Product B combinations using self-join in the data source.

This is commonly called Market Basket Analysis.


5. How would you identify customers whose profit is increasing for 3 consecutive months?

Compare profit values across months.

SUM([Profit])
>
LOOKUP(SUM([Profit]),-1)

AND

LOOKUP(SUM([Profit]),-1)
>
LOOKUP(SUM([Profit]),-2)

Useful for identifying growing customers.


6. How would you calculate customer concentration risk?

Measure sales dependency on top customers.

WINDOW_SUM(
IF RANK(SUM([Sales])) <= 5
THEN SUM([Sales])
END
)
/
WINDOW_SUM(SUM([Sales]))

Shows % of revenue coming from Top 5 customers.


7. How would you identify customers whose order frequency is decreasing?

Compare current period order count with previous period.

COUNTD([Order ID])
<
LOOKUP(COUNTD([Order ID]),-1)

Helps identify customers at risk of churn.


8. How would you calculate the average discount given per customer?

Aggregate discount at customer level.

{ FIXED [Customer ID] :
AVG([Discount])
}

Useful for discount optimization analysis.


9. How would you identify products that are profitable but have declining sales?

Combine profit and sales trend.

SUM([Profit]) > 0

AND

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

These products may need marketing support rather than pricing changes.


10. How would you identify regions where sales are increasing but profits are decreasing?

Compare sales growth and profit growth together.

SUM([Sales])
>
LOOKUP(SUM([Sales]),-1)

AND

SUM([Profit])
<
LOOKUP(SUM([Profit]),-1)

This often indicates excessive discounting or rising costs.


These are closer to the real Tableau interview scenarios asked in Deloitte, Accenture, Cognizant, TCS, Infosys, Capgemini, EY, KPMG, EXL, Tiger Analytics, Fractal, and BI Architect interviews than the basic Top-N and Running Total questions.

Monday, June 15, 2026

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

 

1. How would you identify customers whose average order value is increasing month over month?

Calculate Average Order Value (AOV) and compare it with the previous month.

(
SUM([Sales]) / COUNTD([Order ID])
)
>
LOOKUP(
SUM([Sales]) / COUNTD([Order ID]),
-1
)

This identifies customers whose spending per order is growing.


2. How would you calculate the percentage of profitable orders?

Count profitable orders and divide by total orders.

COUNTD(
IF [Profit] > 0
THEN [Order ID]
END
)
/
COUNTD([Order ID])

This measures order quality rather than revenue volume.


3. How would you identify products that contribute more than 10% of category sales?

Compare product sales against category sales using FIXED LOD.

{ FIXED [Product Name] :
SUM([Sales])
}
/
{ FIXED [Category] :
SUM([Sales])
}
> 0.10

This helps identify key products within each category.


4. How would you calculate the average time between a customer's first and last purchase?

Calculate the duration of the customer relationship.

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

This is often used in customer lifecycle analysis.


5. How would you identify categories whose sales are growing faster than the company average?

Compare category growth rate against overall growth rate.

Category Growth:

(
SUM([Sales])
-
LOOKUP(SUM([Sales]),-1)
)
/
ABS(LOOKUP(SUM([Sales]),-1))

Compare with Overall Average Growth:

(
SUM([Sales])
-
LOOKUP(SUM([Sales]),-1)
)
/
ABS(LOOKUP(SUM([Sales]),-1))
>
WINDOW_AVG(
(
SUM([Sales])
-
LOOKUP(SUM([Sales]),-1)
)
/
ABS(LOOKUP(SUM([Sales]),-1))
)

This highlights categories outperforming the business average growth rate.