RELATED only looks one way

Filter sales by a product’s list price — and learn why RELATED works from Sales to Product but never the other way round.

You will learn to

  • Use RELATED from the many side of a relationship
  • Explain why RELATED fails from the one side
  • Filter a fact table by a column of a dimension

How it works

When DAX walks through `Sales` one row at a time (inside `FILTER(Sales, …)` or `SUMX(Sales, …)`), it can only see that row’s own columns. `Product[Price]` lives in another table, so you write `RELATED(Product[Price])` to follow the relationship from this sale to **its** product.

That works because each sale has exactly **one** product. Going the other way doesn’t: one product has hundreds of sales, so “the related sale” makes no sense, and `RELATED(Sales[Amount])` from a Product row is an error. From the one side you need a whole table instead — `RELATEDTABLE(Sales)` — or a measure.

A handy rule: **RELATED** looks up to the dimension, **RELATEDTABLE** looks down to the facts.

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

Red Line Sales = SUMX(FILTER(Sales, RELATED(Product[Color]) = "Red"), Sales[Amount])