Relations, Lookup, Rollup & Formula
Pachurros supports 6 advanced column types for linking tables and computing values: Relation, Backlink, Lookup, Rollup, Count, and Formula. Together they enable a complete relational database model, without knowing SQL.
Relation
Section titled “Relation”A relation links rows in this table to rows in another table. It corresponds to a classic 1:n or n:m relationship.
What you use relations for
Section titled “What you use relations for”- Shooting → Clients (each shooting is assigned to a client)
- Tasks → Projects (each task belongs to a project)
- Invoice line items → Invoice (multiple items belong to one invoice)
- Equipment → Shootings (which gear is used where)
Setting up
Section titled “Setting up”- Add new column → choose type Relation
- Select the target table (must be in the same workspace)
- Save
Linking rows
Section titled “Linking rows”Click on a Relation cell → dropdown opens → type to filter → click row(s) to select. Multiple links per cell are supported.
Complete example
Section titled “Complete example”Scenario: You have a “Shootings” table and a “Clients” table. Each shooting should know which client commissioned it.
- In “Shootings” → new column → type: Relation → target table: Clients
- In the cell for shooting “Autumn Collection” → dropdown → select “Anna Bauer”
- The cell now shows: Anna Bauer (clickable)
Backlink
Section titled “Backlink”A Backlink is the reverse side of a Relation: it shows in table B all entries from table A that point to a given row. The Backlink is read-only, since links are always set on the Relation side.
What you use backlinks for
Section titled “What you use backlinks for”- See which shootings belong to a client in the Clients table
- See all related tasks in the Projects table
- List all line items for an invoice
Setting up
Section titled “Setting up”- New column → type Backlink
- Choose the source table (the table that contains the Relation column)
- Choose the Relation column in that source table
- Save
Complete example
Section titled “Complete example”Scenario: You want to see, in your Clients table, which shootings each client has.
Prerequisite: A Relation column “Client” already exists in the Shootings table.
- In “Clients” → new column → type: Backlink
- Source table: Shootings
- Relation column: Client
- The “Anna Bauer” row now automatically shows: Autumn Collection, Spring Catalogue
Lookup
Section titled “Lookup”A Lookup shows the value of a specific column from the linked rows, read-only. It passes through a piece of information from the linked table.
What you use lookups for
Section titled “What you use lookups for”- See the linked person’s email directly in the Shootings table
- Display the client’s address in the Invoices table
- See a project’s status in the Tasks table
Setting up (Relation mode, default)
Section titled “Setting up (Relation mode, default)”- New column → type Lookup
- Mode: From Relation (default)
- Choose the Relation or Backlink column (must already exist)
- Choose the column to display from the target table
- Save
Setting up (VLOOKUP mode, classic)
Section titled “Setting up (VLOOKUP mode, classic)”If you don’t have a Relation column but share a common key (like a customer number):
- New column → type Lookup → mode: VLOOKUP (classic)
- Choose the source table
- Choose the key column in this table (e.g. customer number)
- Choose the key column in the source table (for matching)
- Choose the column to display
Complete example
Section titled “Complete example”Scenario: In the Shootings table, the client’s email address should appear automatically.
Prerequisite: A Relation column “Client” exists in the Shootings table.
- New column → type: Lookup → mode: From Relation
- Relation column: Client
- Column to display: Email
- Result: The linked client’s email appears automatically in every row.
Rollup
Section titled “Rollup”A Rollup aggregates values from multiple linked rows, for example the sum of all invoice line items, number of open tasks, or average rating.
What you use rollups for
Section titled “What you use rollups for”- Total amount of all invoice line items in the Invoice table
- Average rating of all linked entries
- Percentage of completed tasks per project
- Earliest start date of all linked appointments
Setting up
Section titled “Setting up”- New column → type Rollup
- Choose the Relation or Backlink column
- Choose the aggregation (Count doesn’t need a property!)
- If the aggregation requires a column (Sum, Average, etc.): choose the property from the target table
- Save
Available aggregations
Section titled “Available aggregations”| Aggregation | Description | Property needed? |
|---|---|---|
| Count | Number of linked rows | No |
| Empty | Number of empty values | No |
| Not empty | Number of non-empty values | No |
| % empty | Percentage of empty values | No |
| % not empty | Percentage of non-empty values | No |
| % checked | Percentage of checked checkboxes | No |
| Show values | Displays values from all linked rows | Yes |
| Unique | Number of distinct values | Yes |
| Sum | Total of all numbers | Yes |
| Average | Mean value | Yes |
| Minimum | Smallest value | Yes |
| Maximum | Largest value | Yes |
Complete example
Section titled “Complete example”Scenario: In the Clients table, show how many shootings each client has, and what the total revenue is.
Prerequisite: Backlink column “Shootings” in the Clients table.
Column 1 · Number of shootings: New Rollup → Backlink column: Shootings → Aggregation: Count → no property field needed
Column 2 · Total revenue: New Rollup → Backlink column: Shootings → Aggregation: Sum → Property: Price (number column in Shootings)
The Count column is a simplified Rollup: it only counts the number of linked rows, without needing a property. Ideal for quick counting.
Setting up
Section titled “Setting up”- New column → type Count
- Choose the Relation or Backlink column
- Save, done
When to use Count vs. Rollup?
Section titled “When to use Count vs. Rollup?”- Only need the number of linked entries → Count (simpler, one click)
- Need Sum / Average / other aggregation → Rollup
Formula
Section titled “Formula”A Formula field computes a value based on other columns in the same row.
Syntax
Section titled “Syntax”Column names are referenced in curly braces:
{Price} * {Quantity}{Last Name} & ", " & {First Name}IF({Status} = "Done", "✓", "–")ROUND({Price} * 1.081, 2)Supported operators
Section titled “Supported operators”| Category | Operators |
|---|---|
| Arithmetic | +, -, *, / |
| Text | & (concatenation) |
| Comparison | =, !=, >, <, >=, <= |
| Logical | AND(...), OR(...), NOT(...) |
Supported functions
Section titled “Supported functions”| Function | Description |
|---|---|
IF(cond, true, false) | Conditional evaluation |
ROUND(number, digits) | Round |
ABS(number) | Absolute value |
LEN(text) | Text length |
UPPER(text) | Uppercase |
LOWER(text) | Lowercase |
TRIM(text) | Remove whitespace |
CONCAT(a, b, …) | Concatenate strings |
TEXT(number, "0.00") | Format number as text |
Entering a formula
Section titled “Entering a formula”Click on the column name → Configure column → formula field. A live preview shows the computed value in real time.
Complete example
Section titled “Complete example”Scenario: Invoice table with columns “Price” (number) and “Quantity” (number): automatically calculate the total including VAT.
Formula:
ROUND({Price} * {Quantity} * 1.081, 2)Result: Total including 8.1% VAT, rounded to 2 decimal places.
Practical example: Complete database model
Section titled “Practical example: Complete database model”This example shows how all types work together.
Tables:
Clients: Name, Email, PhoneShootings: Title, Date, Price, Status
Columns:
| Column | Table | Type | Configuration |
|---|---|---|---|
| Client | Shootings | Relation | Target table: Clients |
| Shootings | Clients | Backlink | Source table: Shootings, Relation: Client |
| Client Email | Shootings | Lookup | Relation: Client, Property: Email |
| Shooting Count | Clients | Count | Column: Shootings (Backlink) |
| Total Revenue | Clients | Rollup | Column: Shootings, Aggregation: Sum, Property: Price |
Result: In the Clients table, you see for each client: all linked shootings, the total count, and total revenue, without manually maintaining any data.
Common issues
Section titled “Common issues”“Configure” text in a cell: The column is not fully set up yet. Clicking the text opens the configuration panel directly.
Backlink shows no values: Check that the Relation column in the source table is correctly configured and that links have been set.
Rollup shows empty cells: For Sum / Average / Min / Max, a numeric property from the target table must be selected. For “Count”, no property is needed.
Lookup shows ”-”: The row has no linked entry in the Relation column, or the linked row has no value in the Lookup property.