List the products each customer bought with CONCATENATEX

Turn a filtered virtual table into one readable, sorted text list with CONCATENATEX — perfect for tooltips and detail tables.

You will learn to

  • Join the rows of a table into text with CONCATENATEX
  • Filter a dimension list down to the items that sold
  • Control the order of the list

How it works

`CONCATENATEX(table, expression, delimiter)` evaluates the expression for each row and glues the results into one piece of text. Add an order expression and a direction to sort the list: `CONCATENATEX(t, Customer[Customer], ", ", Customer[Customer], ASC)`.

The tricky part is the table. In a row for one customer, `VALUES(Product[Product])` still returns **every** product, because a filter on Customer flows to Sales, not across to Product. To list only what the customer bought, keep the products where a sales measure isn’t blank.

`FILTER` with a measure in the condition does exactly that: context transition evaluates the measure per product, inside the customer’s row.

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

Regions Served = CONCATENATEX(FILTER(VALUES(Customer[Region]), [Total Sales] > 0), Customer[Region], " / ", Customer[Region], ASC)