Cheat Sheets/Power BI/CEILING / FLOOR
DAX function

CEILING / FLOORDAX function reference

Round to a multiple.

Syntax

dax
CEILING(<number>, <significance>)    FLOOR(<number>, <significance>)

Examples

dax
CEILING([Price], 0.05)
A number
dax
FLOOR([Unit Price], 0.05)
Rounds price down to the nearest 5 cents, e.g. for a price-ending strategy
dax
CEILING(COUNTROWS(Sales) / 25, 1)
Number of full batches of 25 needed, always rounding up to a whole batch

Common mistakes & gotchas

Related DAX functions

From Math & statistics

Used in these tutorials

← Back to the Power BI (DAX) cheat sheet