Rounds down (integer).
| Field | Value |
|---|---|
| Category | Math |
| Type | Scalar (operates value by value) |
| Arity | 1 argument (fixed) |
| Compiles to SQL (calculated column) | Yes |
| Version | Formula engine v3. |
Aliases#
Canonical name: PISO. Accepted aliases (case-insensitive): floor.
Syntax#
code
PISO(expr)All arguments are expressions.
Returns#
Number.
Null handling#
Text that is not a number, or a blank value in a calculation, becomes a friendly error (pt-BR) — never a silent zero.
Evaluation context#
Scalar — evaluated on the result of the arguments (in calculated columns, it runs row by row).
Differences from DAX#
- DAX equivalent: FLOOR
- Compatibility: Compatible with DAX
- Note: Rounds to an integer; DAX FLOOR requires the multiple — use FLOOR(x, 1).
Examples#
code
PISO(4,8)Example with values#
Input: value = 4,8.
code
PISO(4,8) → 4Expected result: 4
Business example#
Normalize financial numbers — round prices, remove the sign from a deviation, compute powers/roots.
Common errors#
Typos in a column name, an incompatible type, or an invalid argument become a friendly message (pt-BR) — the engine never silently returns a wrong number.