“All the work that’s fit to print.”
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

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.

Before. One plain input tucked inside a settings panel. Type as you go, and remember every name and symbol yourself.
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?
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.
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.
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?

Iteration 1. A simple type-as-you-go input, with suggestions for dimensions and members.
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.

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.
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 design, as handed off. Description first, then the logic. Dimensions become pills whose icon matches their type, with the behavior annotated for engineering.
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 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.
Click one to see it full size.

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

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

3. Early color test. One of my first rounds with color: dimensions, scenarios, intersections and operators each get their own badge.
1. Internal product requirements, Cube (summarized at a high level)
2. Design iterations and user feedback, sample data
to see what each part of a formula is
of design and product work, through handoff
of iteration, from simple suggestions to a full editor
Read before you write · Pick, don’t memorize · Clues, not clutter · Check feasibility early
Research, interaction design and iteration
Design (me), a product manager and engineering
Shipped and live; all screens show sample data