Sales per customer: build measures from measures
Combine two measures you already have into a new one, so a fix in one place updates every report that uses it.
You will learn to
- Reference existing measures by name
- Combine two measures into a ratio with DIVIDE
- See why reusing measures keeps a report consistent
How it works
Good DAX is built like Lego. Once you have `[Total Sales]` and `[Customers]`, you never need to rewrite their logic — you snap them together.
A measure name in square brackets, like `[Customers]`, means “calculate that measure here, under this visual’s filters”. So in the June 2025 point, both `[Total Sales]` and `[Customers]` are June 2025 numbers.
This matters when things change. If the definition of a customer is ever updated, you fix `[Customers]` once and every measure built on it follows along.
Practice it hands-on with a real data model and a live report that updates as you type.
Units per Customer = DIVIDE(SUM(Sales[Quantity]), [Customers])