Nan Osborne
Learn more
Vol. 9+ · No. 7Nan of the North editionNew York
The Daily Nan

“All the work that’s fit to print.”

READ ▲ At a glance · Every part of a formula has its own colorWRITE ▲ Type @ · Suggestions for dimensions and membersREVIEW ▲ Full screen · Room for long formulas
B1 · Cube · Case study

Formulas finance users can read at a glance

Cube’s formulas grew into a real language, but users still typed them from memory in a plain text box. I redesigned the editor so a formula reads almost like a sentence.

By Nan Osborne, Design Lead, Cube · With product and engineering · Shipped

Expanded formula editor with a plain-language description, color-coded formula parts and typing hints

The final editor. An expanded view with a plain-language description, color-coded parts and hints as you type. Shown with sample data.

Finance teams in Cube build their own formulas to model the business: commissions, margins, allocations. Over time those formulas grew into a real language that reaches across departments, markets and scenarios, but the editor stayed a single-line text box. In about two months of design and product work, with a product manager and engineering, I turned it into an editor finance users can read at a glance.

The old formula field, a single-line input inside a dimension settings panel

Before. One plain input tucked inside a settings panel. Type as you go, and remember every name and symbol yourself.

The problem

A simple formula is easy to read: Gross_Margin = Revenue - COGS. Real business logic isn’t. A sales commission can look like this:

Sales_Commission = Total_New_Logo_Revenue(Department: Sales) * Commission_Percent(Market: Other)

One line mixes metrics, dimensions, the values they’re filtered by, and operators. In the old input, users had to remember every name and symbol, nothing showed which part was which, and a typo often surfaced only after the numbers came back wrong.

The question. How might we help finance users write a formula in words they already use, and read it back at a glance?

Constraints

Two months, with design (me), a product manager and engineering. Nothing breaks: existing formulas had to keep working. Still text: formulas stay text people can copy, paste and share. Tight space: the editor lives in a narrow panel next to the data.

Three principles

Read before you write. Most of the time someone is checking a formula, not writing one. Pick, don’t memorize. Suggest names as people type, so nobody has to recall syntax. Clues, not clutter. Give hints in place, without burying people in tooltips.

1. Start small

My first iteration kept the scope tight: a cleaner formula section, and an @ trigger that lists dimensions like Account, Department and Scenario, then their members, such as Sales. It took away the memorizing, but the formula itself still read as one block of text. That raised the next question: how does a user see that a word points to real data?

First iteration: a simple type-as-you-go formula input in a side sheet

Iteration 1. A simple type-as-you-go input, with suggestions for dimensions and members.

2. Color every part, and check it with engineering

The product manager prototyped the advanced functionality in a quick AI-built mockup. My job was to make it readable. Inspired by how code editors color syntax, I brainstormed a color key: one color for metrics and functions, one for dimension names, one for the values they filter by, and a quiet tone for operators and numbers. Color tells you what each piece is before you read it.

After a few rounds I still wasn’t sure the editor could support live coloring, so I met with our engineer before going further. Because we had looped engineering in early, it was a quick, productive meeting: the idea was feasible, and that’s how we shipped it.

Complex formulas need guidance, but tooltips everywhere would overwhelm people. So the clues live inside the editor. The empty state tells people what to do first, and once a formula is added, ghost placeholders like “Insert intersection point…” show what comes next, then disappear as soon as you type.

Two Add Formula states side by side: an empty editor with a hint on how to start, and a color-coded formula with a ghost placeholder for the next step

Iteration 2. Left: the empty state says how to start. Right: color separates metrics, dimensions and values, and a ghost placeholder shows what comes next.

3. Room to review, words to explain

Long formulas don’t fit in a small box, so the editor expands to give the whole formula room. A plain-language description sits above the logic, so anyone can see what a formula is meant to do before reading it. As people type, ghost text predicts what they’re likely to add next: Tab accepts it, Esc dismisses it. Errors like “Unexpected operator” show right under the field, and Insert Dimension, Functions and Cleanup Formula sit above the editor. I handed off each behavior as an annotated spec, so engineering built the pattern, not just the screen.

Final formula editor: a plain-language description above the formula logic, a Department pill with a hierarchy icon, Tab and Esc hints, an IF hint, and an annotation specifying the pill component

Final design, as handed off. Description first, then the logic. Dimensions become pills whose icon matches their type, with the behavior annotated for engineering.

Trade-offs

Text over blocks. A drag-and-drop builder looks friendly but gets in the way of power users and long formulas, so formulas stay text, with color doing the explaining. Hints over tooltips. Ghost placeholders guide without covering the work. Feasibility early. Bringing engineering in before polishing kept the color idea buildable.

The result

The new editor shipped and is live. Users responded well to the color coding: they told us formulas were easier to understand and that it helped them work faster. The description field also lays the groundwork for AI formula writing later, because AI needs structured, well-described input first.

Looking back. A formula is a sentence about the business. The closer the editor gets to reading like one, the less people have to memorize, and the more they trust what they built. Bringing engineering in early turned a risky idea into something we could ship.

The screens

Click one to see it full size.

Formula editor showing a list of dimensions after typing @

1. Type @. The first iteration: a list of dimensions appears as you write.

Formula editor with a Department chip and a list of department members

2. Drill in. Pick a member, and the Department chip shows it points to real data.

Formula editor iterations with color-coded badges for dimensions, scenarios, intersections and operators

3. Early color test. One of my first rounds with color: dimensions, scenarios, intersections and operators each get their own badge.

Sources

1. Internal product requirements, Cube (summarized at a high level)
2. Design iterations and user feedback, sample data

Next Cube project: Cube AI, one front door called Charlie →

← Back to B1 · Cube

At a glance
1 glance

to see what each part of a formula is

2 months

of design and product work, through handoff

3 rounds

of iteration, from simple suggestions to a full editor

Moves

Read before you write · Pick, don’t memorize · Clues, not clutter · Check feasibility early

My role

Research, interaction design and iteration

Team

Design (me), a product manager and engineering

Status

Shipped and live; all screens show sample data

B1 · Rich FormulaThe Daily Nan, printed by the last Nan standing