Your CEO sees “Infinity” on the margin card: replace / with DIVIDE

Updated 2026-11-27 · 2 min read

Symptom

A region with no sales shows Infinity or NaN; totals and sorting go wrong in front of management.

Cause

The / operator divides by zero without complaint.

Fix

DIVIDE returns a blank instead, and blanks disappear from visuals.

The problem

A rate such as margin / revenue shows Infinity or NaN as soon as a region has no sales. Visuals look broken and totals become unreadable.

The fix

DIVIDE(numerator, denominator [, alternate]) returns blank (or the alternate value) when the denominator is zero or blank. Blank rows disappear from tables and charts, which is usually what you want.

Margin rate =
DIVIDE ( [Gross margin], [Revenue] )

-- Show 0 instead of blank when you really need a value
Margin rate (0) =
DIVIDE ( [Gross margin], [Revenue], 0 )

Why it matters

DIVIDE also reads better in reviews: anyone sees that the zero case was thought about. Use the plain / operator only when the denominator is a constant you control.

Keep learning

Generate a Power BI report for free