c
If you've ever tallied monthly sales per employee by hand, you know the drill — filter the spreadsheet by name, sum a column, write the number down, repeat for every person on the team. Do this every week, and it's only a matter of time before one number gets copied wrong or one person gets left out entirely.
In this tutorial, we'll build a Sales Leaderboard — a system where every employee's total sales updates itself the moment a new sale is logged, and a chart ranks the team automatically. No filtering, no manual sums, no monthly scramble.
Here's what we're working with — an Employee table holding names, and a Sales table linked to Employee through a One-to-Many relationship, with an Amount (Currency) and Date field for each sale.
One employee, many sales — a natural fit for this kind of relationship.
Add a few employees, then log several sales for each, linking every sale back to the employee who made it.
Employee table populated with Amara Whitfield, Liam Brooks, and Priya Nair
Sales table showing multiple sale records linked to each employee with amounts and dates
For this walkthrough, assume the following sales for the month:
Right now, each of these is just an isolated row. There's no single number anywhere that says "this is how much Amara sold this month."
Since a plain column can't be converted into Custom Logic after the fact, go to the Employee table and create a brand new column, setting its type to Custom Logic from the start.
Adding a new Custom Logic column on the Employee table
Describe what you want — sum the Amount field from every Sales record linked to this employee.
Describing the logic to sum linked Sales amounts for each employee
Confirm the clarification screen, checking that it correctly understood you want a sum across all linked sales, not just one.
Clarification screen confirming the aggregation logic across linked Sales records
Save it, and every employee's total fills in instantly:
Employee table showing Total Sales column automatically calculated for each employee
Let's prove the point. Add one more sale for Liam Brooks — say, $650 — and link it to his record.
Adding a new $650 sale record linked to Liam Brooks
Without touching the Employee table at all, his total updates immediately.
Liam Brooks changes from $2,100 → $2,750.
Liam Brooks' Total Sales field updated automatically after the new sale was added
A column of numbers is useful, but a ranked visual makes the standings obvious at a glance. Create a new chart on the Employee table, using Total Sales as the value and Name as the category, displayed as a bar chart.
Creating a bar chart using Total Sales and Name fields from the Employee table
The moment it's built, your team is ranked automatically:
Bar chart showing Priya Nair, Amara Whitfield, and Liam Brooks ranked by total sales
This same pattern — aggregating linked records into a single field, then visualizing it — works well beyond sales teams. Support ticket counts per agent, orders per customer, or hours logged per project can all be tracked the exact same way.
Try the Live Preview
On this page
Related articles
Explore more product articles and best practices for teams building with Ambisius.
Still Using Spreadsheets?
You Should Try This.
Turn familiar spreadsheets into a structured system built for your business
No commitment. No credit card required.

© 2026 Ambisius. All rights reserved.