DocsMOSAICPages & data

Tables

16 min read

On this page

A table is a small database inside a page or on a canvas: records (rows) with typed columns such as status, dates, check boxes, progress bars, the time remaining between two dates and computed formula columns. Show it as a grid or as a kanban grouped by status. The same table is used in pages, on boards and as the Table view of plans (see Tables in plans). Use tables for asset lists, bug triage, level checklists, budgets, balancing numbers, anything you would otherwise keep in a spreadsheet next to the project.

Adding a table

  • In a page: type /table and press Enter (slash menu > Table), or paste a markdown pipe table (| a | b | lines).
  • On a canvas: dock More > Table, or right-click the board > Add > Table.

A new table has four columns, Title (text), Status (Not started, In progress, Done), Progress and Notes, and three empty records. Change everything.

On a canvas the table is live from 50 % zoom on (and at least about 120 x 90 pixels on screen); further out it is drawn as a light grid. Up to six tables and calculators are live at once (the selected ones and the biggest on screen first). Click a live table once to select the item, then click again to work in it; drag the item by its title strip. Double-click a table that is too small to read to zoom in on it. Right-click > Rename Table names it.

On a canvas a table item never gets smaller than the table needs for its view (see Minimum sizes), and a right-click that the table does not use opens the item's menu.

Every change is one undo step (Ctrl+Z), and tables are saved inside their document.

The table at a glance

A table with select, number, formula, status and person columns: the DPS footer shows the average and a colour rule marks high values
A table with select, number, formula, status and person columns: the DPS footer shows the average and a colour rule marks high values
PartWhat it does
ToolbarTable / Kanban view switch, Search records (filter), Sort, More (group by, hidden columns, copy, add column), Cards in the kanban view (see Kanban cards) and the compact accent + New button (a record at the end; Shift+Enter). In pages and on canvases the toolbar appears when you hover the table
Header rowOne header per column with its type icon. Hover a header for its name, type, description and formula; click it for the column menu; drag a header onto another to move the column; drag its right edge to resize the column, double-click the edge to fit the width to the content. + at the end adds a column, a quick field or a custom field
RecordsOne row per record. Hover a row for its handle (drag to reorder, click for the record menu)
+ New rowA faint "+ New record" row at the end of the records: adds a record and starts editing its first cell
FooterA Calculate cell under each column for its summary
Scroll barWhen the columns are wider than the table, a horizontal scroll bar under it (see Wide tables)

Column types

TypeCellEdit
TextText (the first column shows Untitled when empty)Type
NumberA right-aligned number, with the column's decimalsType a number (12, -3.5, 1e3; a comma decimal separator is accepted). Typing = and an expression stores its result: =12*4 stores 48
SelectOne coloured chipA picker: choose an option, or type to search and Create a new one
Multi-selectSeveral chipsThe same picker; choose several
StatusA status chipLike Select, with the options Not started, In progress, Done to start with
DateA date, with its time of day when the column has Include time ("20 Nov 14:30")A date picker: type YYYY-MM-DD or DD/MM/YYYY, pick a day, Today or Clear; with Include time, a time row too (see Dates with a time)
CheckboxA check boxClick it, or Space
ProgressA bar with its value and %, 0 to 100; a handle shows on hoverDrag the bar (the value follows live, whole numbers, Shift steps by 10; one undo step per drag) or click a position on it; double-click or Enter to type a number (a trailing % is fine); right-click for 0 % to 100 % presets, Type a value..., Clear and Row actions.... Values are kept between 0 and 100
FormulaThe computed value (read only); a bar when the field is shown as progressEdit the column's formula (below). See Formulas
URLThe address, with a button that opens it in your web browserType
PersonA name with its initials avatarType a name
RemainingThe time left between two date columns, with a bar (read only; see Remaining columns)Choose its start and end columns in the column menu

Values are stored as plain text in the document (numbers with a . decimal point, dates as ISO YYYY-MM-DD, or YYYY-MM-DDTHH:MM:00 with a time of day), so they merge well in source control and read the same on every computer.

Dates with a time

Include time in the column menu of a date column gives its dates an hour and minute (one undo step; turn it off again for Date Only). The date picker then shows a time row:

  • Add time / Remove time gives the date a time of day or keeps only the day.
  • The hour (0 to 23) and minute fields: type, drag or use the mouse wheel (minutes move in 15 minute steps); the arrows move 15 minutes earlier or later. While you drag a field the cell follows live, and the whole drag is one undo step.
  • Quick chips set 09:00, 12:00, 15:00 or 18:00.

A date without a time counts as the whole day (it is overdue from the next day on); a date with a time is overdue as soon as that time has passed. Times use the 24-hour clock after the date in your Date Format.

Remaining columns

A Remaining column shows how much time is left between a start date column (optional) and an end date column (the deadline), live:

StateShows
Before the start"Starts in 2d"
Running"3d 4h left", with a bar of the time elapsed between the start and the end
The end is today"Due today" (or "Due in 3h" when the end has a time)
Past the end"Overdue 1d", in red
Done"Done"

Add one with + > Quick fields > Remaining: a small panel asks for STARTS (a date column, or none) and ENDS (DEADLINE), with columns named like Start and Due preselected (a Due column is added when the table has no date column). Or set the type of a column to Remaining. Change its dates with Starts: ... and Ends: ... in its column menu. A record counts as done when the table's first status column holds its last option (Done by default), or, without a status column, when its first check box is ticked. Remaining cells follow the clock (they refresh every minute), work with colour rules and can be used in formulas (see remaining() and hoursLeft() in Formulas).

Options of select columns

Select, multi-select and status columns have options with colours. Manage them where you meet them:

  • In the picker of a cell: type a new name and choose Create to add an option. Each option has a ... button (Rename, colour, reorder or delete this option) with a colour palette, Move up / Move down, a name field and Delete (the cells that used it are cleared).
  • Edit options... in the column menu (or Edit options at the bottom of a picker): add (type and press Enter), rename in place, click a colour dot for the next colour, open an option's menu for the rest.
  • In the kanban view: each list is an option of the grouping column. Double-click a list's name to rename it, drag a list by its header to reorder, + Add another group adds one, and the list menu has Colour, Edit groups... (the options editor) and Delete group (see Kanban view).

The order of the options is the order of the picker and of the kanban lists. Every change is one undo step.

Formula columns

A formula column (a "field") computes its value from the other columns. Create one with + > Custom field (formula)... or a quick field, or choose Formula as the type of a column. Edit it with Edit field (formula)... in the column menu, or click one of its cells: both open the field builder.

A formula reads the other columns of the same record with prop("Column"):

Text
prop("Hours") * 40
if(prop("Done"), "Shipped", "Open")
round(prop("Spent") / prop("Budget") * 100, 1)
dateBetween(prop("Due"), today(), "days")

Formula columns can use other formula columns; a loop gives #ERR: circular reference. An error shows in the cell as #ERR: and a short message, for that record only. Hover a formula column's header to see its formula. See Formulas for the whole language.

The field builder

The field builder is a panel for writing a formula field comfortably:

PartWhat it does
Field nameThe column's name
DescriptionWhat the field means; shown when you hover the column header
FormulaThe expression (daysLeft(prop("Due")), prop("Hours") * prop("Rate")...). While you type a name, suggestions of columns and functions appear: click one, or press Tab for the first
ColumnsThe table's columns: click one to insert prop("Name")
FunctionsEvery function, grouped (Logic, Math, Text, Date, Table), with its signature and a one-line description; Search functions filters the list, a click inserts the function
PreviewThe result for the first five records ("Record 1 = ..."), updated as you type; a mistake shows its error message here. A table without records says Add a record to see results
Show as progress barShows numeric results from 0 to 100 as a progress bar (the field gets the % suffix)
Create field / Apply, CancelAdds the field (or saves your changes) as one undo step

Quick fields

+ at the end of the header row > Quick fields adds a ready-made formula field. A quick field uses the columns it needs when the table has them (for example a date column named Due, Due date or Deadline, or any date column) and adds them when it does not:

Quick fieldFormulaExtras
Days leftdaysLeft(prop("Due")), shown as "n d"Colour rules: red when overdue, orange within 3 days, yellow text within 7 days
OverdueDue date before today and the record not doneA check; red fill rule; the footer counts the checked records
Due this weekDue date within the next 7 days and the record not doneA check; orange fill rule; the footer counts them
Checklist progressThe percentage of the checkbox columns ticked in each record (three "Step" check boxes are added when there are none)Shown as a progress bar; the footer averages it
DurationDays from Start to End (dateBetween)"n d"; the footer sums it
AgeDays since a date (Created, Reported or Date)"n d"; orange text after 30 days; the footer averages it
Week numberThe ISO week of the due date, shown as "W47"
Percent doneround(percent(prop("Done"), prop("Total"))) (two number columns)Shown as a progress bar
Total (quantity x price)Quantity (or Qty, Hours) times Price (or Rate, Cost), two decimalsThe footer sums it
RemainingA Remaining column between two date columns you pick"3d 4h left" with an elapsed bar

"Not done" means: a Done (or Completed, Finished) check box that is not ticked, or a Status column whose value is not its Done option. Quick fields are ordinary formula fields: open them in the field builder to see or change their formula, description and rules.

Colour rules

A column can colour its cells by value: Colour rules... in the column menu (it shows the number of rules, for example Colour rules (2)...). Rules also colour the cards of the kanban view.

  • Add rule adds a custom rule: a Condition, its value (two values for Between), a colour, and Fill (the cell background) or Text (the text only).
  • Quick rules add a common rule in one click, depending on the column: Overdue dates in red, Due within 3 days in orange, Today in green (dates); Negative numbers in red, Below 3 in orange, 100 or more in green (numbers); Checked in green, Checked in red (alerts) (check boxes); Empty cells in grey.
  • Rules are checked from the top: the first matching rule colours the cell. Move a rule up to give it priority; delete it with its button.
ConditionMatches
Less than, At most, Greater than, At least, Equals, Not equalNumbers compared as numbers, dates with a YYYY-MM-DD value, text ignoring case
BetweenFrom the first value to the second, both included
ContainsText containing the value (ignoring case)
Is empty, Is not emptyEmpty or filled cells
Is checked, Is not checkedTicked check boxes, true formula results
OverdueDates before today
Due within N daysDates from today to today + N days
Is todayToday's date

Column descriptions

Description (shown on hover) at the top of the column menu (or Description in the field builder) explains what a column means. Hovering the column header shows the column's name, type, description and formula.

Columns

Click a column header for its menu:

EntryWhat it does
NameRename the column (type and press Enter)
Description (shown on hover)The column's description
Type: ...Change the type. Values are kept as they are (switching back restores them); select types learn the existing values as options. Switching to Formula clears the stored values
Edit options...Select, multi-select and status columns
Edit field (formula)...Formula columns: the field builder
Colour rules...The column's colour rules
Fit width to contentThe width that shows the longest value (also: double-click the column's right edge)
Include timeDate columns: dates with an hour and minute (see Dates with a time)
Starts: ... / Ends: ...Remaining columns: the start and end date columns
DecimalsNumber, progress and formula columns: Automatic, or 0 to 4
Sort ascending / Sort descendingSorts the records by this column
CalculateThe summary in the footer
Insert left / Insert rightA new column next to it (pick its type, a quick field or a custom field)
DuplicateA copy of the column with its values
HideHides the column (show it again from More > Hidden columns)
Delete columnDeletes the column and its values

Wide tables

When the columns do not fit, the table scrolls sideways: drag the scroll bar under the table, or Shift + mouse wheel over it. The first column stays in place (sticky) while the others scroll, so you always see which record a value belongs to. Moving the selected cell with the keyboard scrolls to keep it visible.

Double-click the right edge of a column header to fit the column to its content (or Fit width to content in the column menu).

Reorder columns by dragging a header onto another one: the column moves before or after it (one undo step).

Records

  • Add: the + New button of the toolbar or the + New row at the end of the records (a record at the end, with its first cell ready to type), Shift+Enter on a cell (adds a record under it), or the record menu.
  • Reorder: drag a record by its handle. Reordering works in manual order: clear the sort first (Sort > Manual order).
  • Record menu (click the handle, or right-click a cell): Insert above, Insert below, Duplicate, Copy as text, Delete.

Editing cells

Click a cell to select it (an outline shows the selected cell); click again, press Enter or F2, or simply start typing to edit it. Enter applies and moves down, Esc cancels.

KeyAction
Arrow keysMove the selected cell (Shift: extend a range)
Tab / Shift+TabNext / previous cell
Home / EndFirst / last column (Ctrl: first / last cell of the table)
Enter or F2Edit the cell (select, date and formula cells open their picker or editor)
Shift+EnterNew record under the selected one
TypingStarts editing the cell with what you type
SpaceTicks a check box cell
Delete / BackspaceClears the selected cells
Ctrl+ASelects every cell
Ctrl+CCopies the selected cells as tab-separated text
Ctrl+VPastes tab-separated text from the selected cell on (from a spreadsheet, for example); records are added as needed, formula columns are skipped
EscCollapses a range to one cell

More > Copy table as text copies the whole table (tab-separated, with the header row) for spreadsheets.

Search and sort

  • Search records (the filter button) shows a search box: only the records with a cell that contains the text stay visible. The filter is saved with the table.
  • Sort chooses the column and Descending, or Manual order to go back to your own order. The sort is saved with the table. The header of the sorted column shows its direction.

Summaries

The footer shows a summary of each column you choose with Calculate (footer cell or column menu). It covers the records shown (search applies):

SummaryForResult
CountEvery columnCells that are not empty (unticked boxes do not count)
Sum, Average, Min, MaxNumber, progress and formula columnsOf the numbers
Min, MaxDate columnsEarliest / latest date
Checked, Checked %Checkbox and formula columnsTicked (or true) cells, as a count or a percentage

Kanban view

Switch the toolbar to Kanban to see the records as cards on a card board: one list per option of a Status or Select column, plus No value for the records without one. It is the same card board as the planner's kanban (see Kanban):

  • More > Group kanban by chooses the column. A table without a status or select column offers Add Status column.
  • Lists: double-click a list's name to rename the option (the cells follow); drag a list by its header to reorder the options; Collapse list folds it into a thin strip (click the strip to open it again); drag a list's right edge to change the width of every list (200 to 600 pixels, double-click for the default); + Add another group after the last list adds an option. The list menu (its button, or right-click the list) has Add a card, Rename, Collapse list, Colour, Edit groups... (add, rename, recolour, reorder or delete the options) and Delete group.
  • Cards show the record's title and its main properties, coloured by the colour rules, with a colour bar in the colour of their list's option (a fill colour rule wins). Right-click a card for the record menu.
  • Drag a card to another list to change its value, or within a list to reorder: the card tilts under the pointer, a gap opens where it will land and the other cards slide; near the edges, the board scrolls by itself.
  • + Add a card at the bottom of a list opens an inline composer: type the title and press Enter (it stays open for the next one; Esc closes it). The new record gets that list's value.
  • Hover a card and click its pencil to edit the title in place (Enter saves, Esc cancels).

The view (Table or Kanban), the grouping column and the card options are saved with the table.

Kanban cards

Cards in the toolbar of the kanban view opens a popover:

OptionWhat it does
Card sizeA slider from 75 % to 175 % and the presets Compact, Default and Large; Ctrl + mouse wheel over the board resizes the cards too
Fields (none ticked = automatic)The columns shown on the cards. None ticked = automatic (the visible columns, as many as the card size shows)
Show empty fieldsShows the chosen fields even when a record has no value, so every card has the same rows
Show coversShows, as the card's cover, the first URL cell of the record that holds an image path (an image of the media folder)
List widthThe width of the lists, 200 to 600 pixels, with a button for the default (also: drag a list's right edge)

The planner's kanban has the same popover (see Kanban cards).

Tables in plans

The Table view of a plan is this same table in "plan mode" (see Planner): one row per visible task, with horizontal scroll and the sticky first column, resize and auto-fit, column drag, hide, sort, search, colour rules, footer summaries, formulas and dates with a time. The differences:

  • The plan's built-in columns (Title, Status, Priority, Assignee, Progress, Start, Due, Remaining, Estimate, Tags, Updated) keep their type and cannot be deleted or duplicated; their options come from the plan (statuses with their colours, priorities, tags, people). Remaining and Updated are read only. Progress is editable like any progress cell, and its right-click menu has Automatic (from checklist) to go back to the automatic value (see Progress). New tags can still be typed in the Tags picker.
  • Your own columns: add any column, quick field or formula with + in the header; their values are saved in the tasks. Formulas can read the task fields, for example prop("Due").
  • A row opens the task details (the open button on its title, or a double-click on the title); right-click a row for the task menu; + New task at the end adds a task.
  • There is no kanban switch in the plan's table (the planner has its own kanban) and no + New toolbar button (the planner header has New task).

Limits

  • Tables are meant for tens to a few hundred records; very large data sets belong in a spreadsheet or a data table asset.
  • On a canvas, up to six tables and calculators are live at once; the others are drawn as a light grid until you zoom in on them.
  • Search (command palette, Ctrl+K) finds the text of table cells and opens the document at the table.