Video | Tableau | Data visualisation | Analytics

Ceiling and Floor functions in Tableau

CEILING rounds up, FLOOR rounds down — think of reaching the top or bottom of a room.

Part ofTableau Functions
Watch on YouTube
  • CEILING rounds a value up to the nearest whole number while FLOOR rounds it down — think of reaching the ceiling of a room versus the floor.
  • Set up a test table with decimals by using an average measure (e.g. average sales) and increasing the displayed decimal places via field formatting.
  • You can write quick ad hoc CEILING/FLOOR calculations directly in the calculation window to compare results side by side without creating saved fields.
  • Watch the editor quirk where typing a function immediately next to an existing one deletes the previous function — add a space first.
  • Tableau's decimal-place formatting already rounds automatically (up above halfway, down below), so 215.9 displays as 216 at one decimal place.

CEILING and FLOOR let you force a number up or down to the nearest whole number in Tableau, which is different from how Tableau's own decimal-place formatting rounds values automatically.

Tim builds a quick test table using average sales by subcategory in Superstore, so the values contain decimals to round.

The Breakdown
  1. Build a table with decimal values 0:09

    Use an average measure (rather than a sum) broken down by a dimension so the results naturally include decimal places. Increase the field's displayed decimal places via format > field so you can actually see the decimals to test against.

  2. The ceiling/floor concept 1:15

    Think of a room: reaching the ceiling means going up, reaching the floor means going down. CEILING always rounds a value up to the next whole number; FLOOR always rounds it down, regardless of how close the decimal is to the halfway point.

  3. Write ad hoc calculations to compare 1:31

    You can type FLOOR() and CEILING() directly into the calculation editor as quick, unsaved ad hoc calculations rather than creating permanent fields — useful just for testing or comparing behaviour side by side. Pull the original average measure in alongside them so you can visually check each function against the source values.

  4. Apply CEILING and confirm it always rounds up 2:50

    Copy the same calculation, swap FLOOR for CEILING, and confirm every result now rounds up instead — the ad hoc calculation names each column after its function so you can tell at a glance which is which.

  5. Compare against Tableau's automatic decimal rounding 3:41

    Tableau's built-in decimal-place formatting rounds automatically based on standard rounding rules — up if the value is over halfway, down if under — which is different behaviour from CEILING (always up) and FLOOR (always down). Changing the number of displayed decimal places changes what gets rounded and in which direction, so don't mistake formatted display rounding for CEILING/FLOOR logic.

Worth Knowing
  • Typing a function directly next to an existing one in the calculation editor can delete the previous function — always leave a space first.
  • Ad hoc calculations written in the calculation window don't create saved fields; they're just for quick testing and get labelled by function name in the resulting columns.
  • Tableau's automatic decimal-place formatting rounds using normal halfway rules (e.g. 215.9 displays as 216 at one decimal place), which is not the same as CEILING or FLOOR behaviour.
Use It When

Reach for CEILING or FLOOR when you need a value to always round in one direction regardless of how close it is to the next whole number — standard decimal formatting won't guarantee that.

How this Rollup was made provenance & method

A Rollup is drafted by AI from the video's transcript, then reviewed and edited by Tim. Everything used to produce this one is listed below — the model, the exact prompt, and the source video — so the process is transparent and reproducible.

Transcription
On-device — NVIDIA Parakeet v3 for recent videos, OpenAI Whisper large-v3 for earlier ones. The transcript never leaves the machine or gets published.
Drafting
Claude Sonnet 5 in the cloud, from that transcript.
Prompt
The exact Rollup prompt (v2) — the full system prompt, unedited.
Source video
Watch on YouTube
Drafted
5 July 2026 at 09:38
Reviewed & edited
5 July 2026 at 09:41 · by Tim Ngwena

Model + prompt + video is everything you'd need to recreate a Rollup like this yourself. The one thing we don't share is the transcript.

Rights. The video and its transcript are the property of TN Media Ltd. Unauthorised use or download is prohibited. © TN Media Ltd.