Start free

Formulas, two axes and chart recipes

Average check, share and difference by formula, Bars + line with two axes, a target line, number format and ready-made report recipes

6 min read Admin panel demo
On this page 10

Formulas, two axes and ready-made chart recipes on the dashboard

This guide helps you calculate the average check or a channel's share, combine money and quantities on two scales and build a typical chart from a ready-made recipe.

What you need to get started#

  • The “Dashboard” section switched on (/en/dashboard) and the “Edit” level to create and edit tiles.
  • An understanding of the basic setup of series and the time window — see Build your own chart on the dashboard.

Formulas: average check, share, difference#

A formula builds a calculated line from two ordinary series of the same chart, without extra requests to the server:

  1. In the chart editor, add two base series with the same window and filters — for example, series 1 “Orders → Sum → Order total” (Revenue) and series 2 “Orders → Count of records” (Orders).
  2. Under the list of series, click “ƒ Add formula”.
  3. Pick the first series, the arithmetic operation (÷ divide, − subtract, + add, × multiply) and the second series.
  4. To calculate a share (for example, delivery against total revenue), turn on the “Show as a percentage (×100)” checkbox.
  5. If the operand series should not be drawn on the canvas, turn on the “Hide from the chart” checkbox for each of them — they are still calculated in the background for the formula.
  6. Click “Save”.

How the formula is calculated:

  • An honest “Total for the period”: the formula is applied to the totals of the whole window (for example, all revenue for the month ÷ all orders for the month), rather than averaging the daily bars. The comparison with the previous period is calculated the same way.
  • Division by zero and days without sales: if on a particular day the divisor is zero or there were no records, the line shows a gap instead of a false zero.

Two axes, “Bars + line”, target and number format#

To compare values of different magnitudes on one tile (for example, revenue of 40,000 ₽ and 18 orders), use the second axis on the right:

  1. Open the chart editor (⚙️ on the tile or “Add chart”).
  2. Choose “Type” → “Bars + line” (the second axis is also supported by the Line, Area and Bars types).
  3. Create two series in different units — for example, the order total (in currency) and the number of orders (in pieces).
  4. Check the “Show as” (Bars or Line) and “Y axis” fields: with two different units, the “Auto” mode spreads them over two scales, with ← and → captions above the axes and marks in the legend.
  5. In the “Number format and target line” block, fill in “Target line” if needed (for example, 50000), its caption (“Plan”) and the “Target scale” when there are two axes.
  6. Set “Decimal places” and “Shorten large numbers”.
  7. Fill in “How to read this chart” if colleagues need an explanation.
  8. Click “Save”.

When you export a tile with the ⤓ “Download CSV” button, the numbers are saved without shortening and without currency symbols, so a spreadsheet can read them right away.

Recipes: your own report from charts#

Any tile built from a recipe can be switched to the ▦ “Table” view, exported to CSV and cloned with the “Duplicate” button for a neighbouring location:

Task Source and calculation Series and filter setup What to watch out for
Revenue by fulfilment “Orders” → “Sum” of “Order total” One series per “Fulfilment” = Delivery / Pickup / Dine-in Aggregator orders are picked by the “Sales channel” field
Two locations on one chart “Orders” → “Sum” A separate series for each location + the “Keep this chart’s own period and locations” checkbox A colleague with access to one location will see only their own branch
Revenue net of refunds “Orders” → “Sum” of “Revenue net of refunds” No extra conditions A refund is subtracted on the day the refund receipt was issued
Refunds for the month “Refunds” → “Sum” of “Refund amount”, step “Day” Optionally — a condition on the payment method One source record equals one refund receipt
Stock write-offs by reason “Stock costs” → “Sum” of “Cost of goods” “Document type” = Write-off + a series for each “Write-off reason” Without a document type filter, receipts get into the sum too
Guests from bookings by day “Bookings and appointments” → “Sum” of “Guests” Statuses Confirmed, Seated, Completed Without a status filter, cancelled bookings are counted too
Average check Formula: “Order total” ÷ “Count of records” Exclude cancelled orders the same way in both series The total under the chart shows the exact average check of the window
Delivery share of revenue, % Formula: “Delivery revenue” ÷ “All revenue”, ×100 The first series has the condition “Fulfilment” = Delivery, the operands are hidden The chart keeps one clean percentage line
Revenue by channel, top 5 “Orders” → “Sum”, “Break down by” → “Sales channel” “Lines” → Top 5 + “Other” The six lines add up to all revenue for the period
Booking widget funnel “Site widgets” → “Sum” of “Events” “Widget” = the booking widget; separate series for the opened and submitted steps A source record holds a daily group, so “Sum” is needed

A step-by-step example of building “Revenue by fulfilment”:

  1. Click “Add chart”.
  2. Enter the title “Revenue by fulfilment”.
  3. Choose the “Stacked bars” type.
  4. Set the window to the last 30 days and the “Day” step.
  5. In series 1, choose the “Orders” source, the “Sum” → “Order total” calculation, add the filter condition “Fulfilment” = Delivery and label the series “Delivery”.
  6. Click “Add series” and create similar series for Pickup and Dine-in.
  7. Turn on “Show legend”.
  8. Click “Save”.

Limitations#

  • A formula is built from exactly two ordinary series of one chart: nested formulas (“a formula of a formula”) and expressions over three series are not supported.
  • Automatic axis assignment works with two different units. For three or more, assign the axes by hand. The same unit cannot be spread over both axes: for example, dine-in and delivery revenue stay on a shared scale.
  • Stacked, horizontal and pie charts always have one scale.

Troubleshooting#

Symptom Cause What to do
The tile shows a “Formula … cannot be calculated” line One of the base operand series was deleted Open the editor (⚙️) and pick an existing series in the formula block
The second axis did not appear on the right although “Right” is selected All series of the chart have the same unit (for example, roubles), or the chart has 3+ different units With two units, leave “Y axis: Auto”; with three units, assign axes to the series by hand
The average check line breaks on some days There were no orders on those days (the divisor is zero) This is expected: no orders does not equal a zero check

FAQ#

Why is the average check total not equal to the average of the daily values?#

The total divides the whole order sum by their whole count. A day with one order does not get the same weight as a day with a hundred orders.

Can I call the difference of two series profit?#

Only if the sources and the set of costs match that measure. An arbitrary difference between sales and purchases does not automatically take all business expenses into account.

Was this article helpful?