Show 0 instead of blank with COALESCE

Replace empty cells with a real zero using COALESCE, so a matrix says “none” instead of leaving readers guessing.

You will learn to

  • Explain the difference between blank and zero
  • Replace blank with a fallback value using COALESCE
  • Know when showing zeros helps and when it clutters a report

How it works

When there is nothing to count, DAX returns **blank**, not zero. A matrix shows blank as an empty cell, and readers cannot tell whether the answer is “none” or “no data”.

`COALESCE(value, fallback)` returns the first argument that is not blank. Put a measure first and `0` second, and you get the measure’s result when there is one and 0 when there is not. It is a shorter way of writing an `IF(ISBLANK(…), 0, …)` test.

Use it with care. Power BI hides rows where every measure is blank; once a measure returns 0, those rows come back. That is what you want for a short list like these customers, but it can flood a big table with rows of zeros.

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

Bike Lines = COALESCE(CALCULATE([Order Lines], Product[Category] = "Bikes"), 0)