Sunday, May 31, 2026

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

 

How would you calculate the percentage of total sales for each product?

Divide product sales by total sales.

Example:

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

2. How would you identify customers who placed only one order?

Count distinct orders per customer and filter those with exactly one order.

Example:

COUNTD([Order ID]) = 1

3. How would you calculate the average sales per day?

Divide total sales by the number of distinct order dates.

Example:

SUM([Sales]) / COUNTD([Order Date])

4. How would you identify the month with the highest sales?

Rank monthly sales and select Rank 1.

Example:

RANK(SUM([Sales])) = 1

5. How would you calculate the sales variance from the previous month?

Subtract previous month's sales from current month's sales.

Example:

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

6. How would you identify products contributing less than 1% of total sales?

Calculate contribution percentage and filter.

Example:

SUM([Sales]) / TOTAL(SUM([Sales])) < 0.01

7. How would you calculate the average order value by region?

Divide regional sales by distinct order count.

Example:

SUM([Sales]) / COUNTD([Order ID])

Place Region in the view.


8. How would you identify customers who generated a loss?

Filter customers whose total profit is negative.

Example:

SUM([Profit]) < 0

9. How would you calculate the percentage of returned orders?

Divide returned orders by total orders.

Example:

COUNT(
IF [Returned] = "Yes"
THEN [Order ID]
END
)
/
COUNT([Order ID])

10. How would you identify the best-performing state within each region?

Rank states by sales within each region.

Example:

RANK(SUM([Sales])) = 1

Compute Using: State
Partition By: Region

1 comment:

  1. Top Tableau Scenario-Based Interview Questions Set - 17 (1- 10)

    ReplyDelete