Customer retention rate from 2024 to 2025 with INTERSECT

Learn INTERSECT on two fixed customer lists: of the customers who bought in 2024, what share bought again in 2025, product by product?

You will learn to

  • Keep rows that appear in two tables with INTERSECT
  • Reuse table variables for a numerator and a denominator
  • Build a retention rate that follows the report’s filters

How it works

`INTERSECT(a, b)` keeps the rows of `a` that also appear in `b`. With two customer lists, that is “customers in both”.

A **retention rate** asks: of the customers we had in the earlier period, what share came back in the later one? The denominator is the earlier list, not everyone, and not the later list.

Table variables make this tidy. Build each year’s list once, then use the first list twice: inside `INTERSECT` for the numerator and on its own for the denominator. Because the lists come from Sales, the rate follows any product, category or region filter.

Practice it hands-on with a real data model and a live report that updates as you type.

Customers in Both Halves =
VAR H1 = CALCULATETABLE(VALUES(Sales[CustomerKey]), 'Date'[Month] <= 6)
VAR H2 = CALCULATETABLE(VALUES(Sales[CustomerKey]), 'Date'[Month] > 6)
RETURN COUNTROWS(INTERSECT(H1, H2))