# Calculation builder handbook > A guided overview of Calculation Builder: where to start, how to configure calculations, and which calculation type to choose. export const toc = [ { value: "Start building metrics", id: "start-building-metrics", level: 2 }, { value: "Create a Metric from Scratch", id: "create-a-metric-from-scratch", level: 3 }, { value: "Create a Metric from an Existing One", id: "create-a-metric-from-an-existing-one", level: 3 }, { value: "Aggregate a Dimension into a Metric", id: "aggregate-a-dimension-into-a-metric", level: 3 }, { value: "Duplicate a Metric", id: "duplicate-a-metric", level: 3 }, { value: "Create a Metric with AI", id: "create-a-metric-with-ai", level: 3 }, { value: "Configure the field", id: "configure-the-field", level: 2 }, { value: "Choose the Calculation Inputs", id: "choose-the-calculation-inputs", level: 3 }, { value: "Set Field Metadata", id: "set-field-metadata", level: 3 }, { value: "Apply a Field-Level Filter", id: "apply-a-field-level-filter", level: 3 }, { value: "Control the Grouping", id: "control-the-grouping", level: 3 }, { value: "Format the Result", id: "format-the-result", level: 3 }, { value: "Choose the right calculation", id: "choose-the-right-calculation", level: 2 }, { value: "Basic Aggregations", id: "basic-aggregations", level: 3 }, { value: "Listing", id: "listing", level: 3 }, { value: "Arithmetic", id: "arithmetic", level: 3 }, { value: "Window Calculations", id: "window-calculations", level: 3 }, { value: "Logical Calculations", id: "logical-calculations", level: 3 }, { value: "Comparative Calculations", id: "comparative-calculations", level: 3 }, { value: "Text", id: "text", level: 3 }, { value: "Go beyond the builder", id: "go-beyond-the-builder", level: 2 }, { value: "Switch to Formula Mode", id: "switch-to-formula-mode", level: 3 }, { value: "Browse the Full Calculation List", id: "browse-the-full-calculation-list", level: 3 }, { value: "Learn AQL", id: "learn-aql", level: 3 }, ]; Calculation Builder helps you turn dimensions and existing metrics into new fields without writing formulas. It is useful when you need a quick count, a filtered metric, a percent of total, a period comparison, a moving average, or a small text or arithmetic transformation. Each field can be edited in **GUI mode** with Calculation Builder or **Formula mode** with [AQL](/as-code/aql). Start with the builder when the calculation matches a common pattern, then switch to Formula mode when you need custom logic. ## Start building metrics {#start-building-metrics} You can open Calculation Builder from the dataset panel, visualization settings, or the result table. Pick the entry point that matches the field you already have in front of you. Start with a blank metric when you already know the calculation you want to build. Build on a trusted metric, such as turning `Total orders` into `% of total orders`. Summarize a dimension into a metric, like `P75 - Delivery attempts`. Make a small variation, such as `Total orders (Australia)` from `Total orders`. Ask for a metric in plain language. AI can reuse existing metrics or create the pieces it needs. ## Configure the field {#configure-the-field} After choosing a calculation, review the field settings before saving. These settings control what the field computes, how it appears to other users, and how it behaves inside a report. Inputs define the calculation logic. For example, a divide calculation needs a numerator field and a denominator field. Make the metric understandable in reports and easy to reference in formulas later. Build metrics like `Delivered orders` without changing the other fields on the same visualization. Set the level of detail for a metric, such as grouping only by country even when the report has more dimensions. Turn raw values into readable outputs, such as showing `0.2434` as `24.34%`. ## Choose the right calculation {#choose-the-right-calculation} Calculation Builder groups common metric patterns into categories. Start with the category that matches the business question, then choose the exact calculation inside it. Summarize rows into metrics like total revenue, unique customers, median order value, or P95 response time. Show related values next to an aggregation, such as products on each order or tags on a support ticket. Combine fields into calculations like profit, conversion rate, tax amount, or line total. Rank items, accumulate a running total, or smooth a trend with moving averages and rolling sums. Count, sum, average, min, or max only matching records, or use Case when to bucket values into labels. Show share of a total or compare a metric against a previous period, such as this month vs last month. Combine text fields and fixed strings, such as full name or a city-and-country label. ## Go beyond the builder {#go-beyond-the-builder} Calculation Builder covers common metric patterns. When you need logic that does not fit the menu, use Formula mode and write the field directly in AQL. Use the AQL editor when the calculation needs custom logic beyond the visual builder. Search the full Calculation Builder catalog, including inputs, examples, preview images, and category links. Learn the language that powers Calculation Builder when you want more control over metric logic.