Percent of customers who bought: a ratio formatted as a percent
Show what share of your customers bought in each month with DIVIDE, and format the ratio as a percent instead of multiplying by 100.
You will learn to
- Build a ratio measure and show it as a percentage
- Use a denominator that follows the report’s filters
- Explain why hard-coded totals break in filtered visuals
How it works
Many useful measures are **ratios**: one count divided by another. Return the ratio itself (0.85) and set the measure’s format to Percentage; Power BI shows 85%. If you multiply by 100 the value becomes 85, which then shows as 8,500%.
The denominator deserves care. A hard-coded number such as 40 is right for the whole company and wrong everywhere else. In a North row only 10 customers live in that region, so the ratio should be out of 10.
Counting the rows of a lookup table gives a denominator that follows the filters that reach that table. Remember that `[Customers]` counts customers in **Sales**, so it is the ones who bought, while the **Customer** table lists every customer in scope, buyers or not.
Practice it hands-on with a real data model and a live report that updates as you type.
Bike Line Share = DIVIDE(CALCULATE(COUNTROWS(Sales), Product[Category] = "Bikes"), COUNTROWS(Sales))