Help Center Tables and records
Link tables and calculate
Link records with relation columns, see the other side with Linked from, show a column of linked records with Lookup, and calculate with formulas and rollups.
Real processes connect: a deviation leads to a CAPA, a CAPA names a supplier, a supplier has many orders. Relation columns link records across tables, and calculated columns turn those links and other values into numbers, dates and text. Adding columns takes the Manage level; using them does not.
Relation columns
A Relation column holds links to records in another table.
- In the table that should hold the links, click View settings, then Add a column, and choose Relation.
- Enter a Column name, for example "Supplier".
- Under Links to table, choose the other table. You can choose the same table too (shown as "this table"), for example to link a CAPA to related CAPAs. Click Show linked table under it to open that table in a new tab, to check it is the one you mean without losing what you are changing.
- Leave Allow more than one linked row ticked for many links, or untick it for just one.
- To offer only some records, choose a saved view of the linked table under Only offer records from the view (see below). Leave it on Any record to offer them all.
- Click Add column.
The table a relation links to can't be changed afterwards.
Offer only some records
Choose a saved view of the linked table under Only offer records from the view, and the search box lists only the records that view shows. For example, a shipment can link only lots that are not expired and not on hold, by pointing its column at a view of the Lots table called Current. Build the view first, with the filter you want (see Views).
- The limit applies to new links. A link already made stays, even if the record later drops out of the view, and saving other changes to the record is not blocked by it.
- It is checked when the record is saved too, not just in the search box, so an import or the API can't link a record the view leaves out. The message names the view.
- A view that limits a column can't be archived until you change that column. If a column's view is ever missing, new links are refused until a manager changes the column.
- Automation rules are not held to the limit: the person who sets up a rule decides what it links.
- Changing or clearing the limit later needs the Manage level, like any column change.
Link records
In a record's form, the relation field has a search box ("Search by ID or nameβ¦"). Type part of an ID or title, click a match to link it, and click the x on a link to remove it. Click the camera button beside the field to scan a record's QR label, or a supplier barcode or lot number, instead of typing (see Scan QR codes and barcodes). You can only link records in a table you can see; otherwise the field says you can't see the linked table.
In the table, a link shows as the record's ID and name (for example SUP-0002 Β· Globex Labs) when its table numbers records with a prefix, and otherwise just its name (Globex Labs). Click it to open a preview of the linked record with its filled-in values and a link to open it in its own table. Qualsted decides whether you may see it: if you can't, the preview says you don't have access.
See the other side
A relation points one way: the CAPA table knows which supplier a CAPA names. To see, on a supplier, every CAPA that names it, add a Linked from column to the supplier table:
- In the supplier table, click View settings, then Add a column.
- Choose Linked from (listed under Other).
- Under Records from, choose the table and relation column that links here, for example "CAPA Log (through "Supplier")".
- Click Add column.
If the dropdown is empty, no table links here yet: add the relation column in the other table first.
Linked from is read-only. You make links on the other table, so a locked or published record is never changed by a link made elsewhere. The column shows in the table and on each record, which says "None yet" when nothing links to it. You can filter by it to find, for example, suppliers with no CAPAs.
Show a column of the linked table
A Lookup column shows, for each record, one column of the records it is linked to, through a Relation column or a Linked from column. For a purchase order that links to a supplier, a lookup can show the supplier's rating or city next to the order without typing it twice. Through a Linked from column, a shipment can show the quantity and the sample of every movement that points at it.
- In the table with the relation, click View settings, then Add a column.
- Choose Lookup (listed under Calculated). It needs a Relation or Linked from column in the same table first.
- Under Relation or Linked from, choose the column. A Linked from column is marked "(linked from)".
- Under Show column, choose the column of those records to show: of the linked table for a relation, or of the table whose records link here for a Linked from column.
- Click Add column.
A lookup is read-only and updates when the linked record changes. Status and select values keep their colors, people show by name, and a record with several links lists every value. It can show text, numbers, dates, choices, people, files, checkboxes and similar columns. It can also show a link column, which lists the records that column links to (for example the sample of each movement). It can't show a Linked from column, formulas, rollups, progress, signatures or another lookup. It shows in the table, on each record and in exports (values separated by semicolons). Only linked records the reader can open count, so someone without access to the linked table sees it empty. You can't filter or sort by a lookup yet.
Formula columns
With an AI seat, Describe what you need at the top of the Formula box writes the formula for you from a plain description. Check it before saving. See Use the AI assistant.
A Formula column is calculated from the other columns of the same record. It is never typed into, and it updates by itself.
- Add a column and choose Formula.
- Type the formula, or click a column's chip to insert it and a function name to insert it.
- Qualsted checks the formula as you type and tells you the Result: a number, text, yes / no, or a date. If it has a mistake, it says what and where.
- Click Add column.
A formula can also use a Relation, Linked from or Lookup column, as text: each linked record's name (its primary column, or its ID if it has no name), or for a lookup the column it shows, with several joined by "; " and empty when nothing is linked. For example concat("Supplier: ", prop("Supplier")). Only records you can see count, so someone without access to the linked table gets empty text. Rollups and other formulas can be used in a formula too.
A column is written as prop("Column name"). Qualsted keeps the reference by the column itself, so renaming the column later doesn't break the formula.
| Function | What it does |
|---|---|
if(condition, then, else) | Picks one of two values. |
concat(a, b, β¦) | Joins values as text. |
round(number, decimals?) | Rounds a number. |
abs(number) | The size of a number, without its sign. |
min(a, b), max(a, b) | The smaller or larger of two numbers. |
length(text) | How many characters. |
now() | The current date and time. |
dateBetween(date1, date2, unit) | date1 minus date2, in "days", "weeks", "months", "years" or "hours". |
empty(value) | True if the value is empty. |
You can also use + - * /, the comparisons == != < <= > >=, and and, or, not.
Examples:
if(prop("Qty") < prop("Reorder level"), "Reorder", "OK")dateBetween(prop("Due date"), now(), "days")gives the days left until the due date.round(prop("Cost") * 1.08, 2)
You can filter and sort a formula column by what it calculates (a number, text, yes / no or a date).
Rollup columns
A Rollup summarizes the records a relation links to.
- Add a column and choose Rollup. (It needs a Relation column in the same table first.)
- Under Relation, choose the relation column.
- Under Calculate, choose Count linked rows, Count values, Sum, Average, Minimum / earliest or Maximum / latest.
- Except for counting rows, choose Of column, the column of the linked table to summarize. Sum and average need a number column; minimum and maximum work on numbers and dates.
- Click Add column.
For example, on a supplier table, a rollup can count the open CAPAs that name each supplier, or show the latest audit date. Only linked records the reader can see are summarized, so someone without access to the linked table sees the rollup empty.
Progress columns
A Progress column shows, as a bar, how many of the to-do items on a record's page are done. Records without to-do items stay empty. Use it to show how far along an investigation checklist is.
Unique values
Qualsted enforces uniqueness in one place: the primary column of a table. No two records can share a value in it, and every record must have one. See Create a table and add columns.