1. How would you calculate Customer Retention Rate in Tableau?
Calculate customers who purchased in both current and previous periods divided by total customers.
Example:
COUNTD([Retained Customer ID])
/
COUNTD([Customer ID])
A retained customer can be identified using a Set or LOD calculation.
2. How would you identify the Top 3 Products within each Category?
Use Rank table calculation partitioned by Category.
Example:
RANK(SUM([Sales])) <= 3
Set Compute Using = Product and Restart Every = Category.
3. How would you calculate a customer's first purchase date?
Use a FIXED LOD expression.
Example:
{ FIXED [Customer ID] : MIN([Order Date]) }
This returns the first purchase date regardless of filters in the view.
4. How would you show customers whose sales are above their regional average?
Compare customer sales against the average sales within the region.
Example:
SUM([Sales])
>
WINDOW_AVG(SUM([Sales]))
Compute using Customer and partition by Region.
5. How would you identify the Bottom 10 Products by Profit?
Use Rank on Profit in ascending order.
Example:
RANK(SUM([Profit]),'asc') <= 10
Filter TRUE to display the 10 least profitable products.