How would you identify customers who buy only one product category?
Count distinct categories purchased by each customer and filter those with exactly one category.
Example:
{ FIXED [Customer ID] : COUNTD([Category]) } = 1
This helps identify customers with limited product adoption and cross-sell opportunities.
2. How would you calculate the percentage of customers retained from the previous year?
Count customers who purchased in both the current and previous year and divide by last year's customers.
Example:
COUNTD(
IF YEAR([Order Date]) = YEAR(TODAY())
AND
{ FIXED [Customer ID] : MIN(YEAR([Order Date])) } < YEAR(TODAY())
THEN [Customer ID]
END
)
/
COUNTD(
IF YEAR([Order Date]) = YEAR(TODAY()) - 1
THEN [Customer ID]
END
)
This provides a simple annual customer retention metric.
3. How would you identify the category contributing the highest profit percentage?
Calculate each category's share of total profit and rank it.
Example:
SUM([Profit])
/
TOTAL(SUM([Profit]))
To get the top category:
RANK(SUM([Profit])) = 1
This highlights the category contributing the largest share of company profit.