[{"data":1,"prerenderedAt":833},["ShallowReactive",2],{"docs-navigation":3,"docs:\u002Fdocs\u002Fanalytics\u002Fmetrics":331,"docs-area:\u002Fdocs\u002Fanalytics":828,"docs-surround:\u002Fdocs\u002Fanalytics\u002Fmetrics":830},[4],{"title":5,"path":6,"stem":7,"children":8,"page":330},"Docs","\u002Fdocs","docs",[9,58,123,189,204,218,232,259,293,315],{"title":10,"path":11,"stem":12,"children":13,"icon":52,"summary":53,"section":18,"highlights":54},"Get started","\u002Fdocs\u002Fget-started","docs\u002F01.get-started\u002Findex",[14,21,26,31,37,42,47],{"title":15,"path":16,"stem":17,"icon":18,"summary":19,"section":20,"highlights":18,"children":-1},"Quickstart","\u002Fdocs\u002Fget-started\u002Fquickstart","docs\u002F01.get-started\u002F01.quickstart",null,"Create a property, add the tag to your site and see your first visits in Analytics.","Start here",{"title":22,"path":23,"stem":24,"icon":18,"summary":25,"section":20,"highlights":18,"children":-1},"Set up your organisation","\u002Fdocs\u002Fget-started\u002Fset-up-your-organisation","docs\u002F01.get-started\u002F02.set-up-your-organisation","Sign in, turn on two-step verification, choose where data is stored and invite your team.",{"title":27,"path":28,"stem":29,"icon":18,"summary":30,"section":20,"highlights":18,"children":-1},"Core concepts","\u002Fdocs\u002Fget-started\u002Fcore-concepts","docs\u002F01.get-started\u002F03.core-concepts","Organisations, properties, events, visits, page and click types, and how Publish reaches Analytics.",{"title":32,"path":33,"stem":34,"icon":18,"summary":35,"section":36,"highlights":18,"children":-1},"Guide for marketers","\u002Fdocs\u002Fget-started\u002Ffor-marketers","docs\u002F01.get-started\u002F04.for-marketers","Read the dashboards, explore your own questions and see where visitors struggle.","Guides by role",{"title":38,"path":39,"stem":40,"icon":18,"summary":41,"section":36,"highlights":18,"children":-1},"Guide for engineers","\u002Fdocs\u002Fget-started\u002Ffor-engineers","docs\u002F01.get-started\u002F05.for-engineers","Install the tag, set up consent and identify, and keep capture safe on your pages.",{"title":43,"path":44,"stem":45,"icon":18,"summary":46,"section":36,"highlights":18,"children":-1},"Guide for data teams","\u002Fdocs\u002Fget-started\u002Ffor-data-teams","docs\u002F01.get-started\u002F06.for-data-teams","Map your data layer to standard fields, publish, and build on the explores.",{"title":48,"path":49,"stem":50,"icon":18,"summary":51,"section":36,"highlights":18,"children":-1},"Guide for ecommerce teams","\u002Fdocs\u002Fget-started\u002Ffor-ecommerce-teams","docs\u002F01.get-started\u002F07.for-ecommerce-teams","Carts, checkouts, orders, revenue and attribution for your store.","i-lucide-rocket","Set up your organisation, add the tag and see your first visits in Analytics.",[55,56,57],{"title":15,"to":16},{"title":22,"to":23},{"title":27,"to":28},{"title":59,"path":60,"stem":61,"children":62,"icon":116,"summary":117,"section":18,"highlights":118},"Data Capture","\u002Fdocs\u002Fdata-capture","docs\u002F02.data-capture\u002Findex",[63,69,74,79,84,90,95,100,105,111],{"title":64,"path":65,"stem":66,"icon":18,"summary":67,"section":68,"highlights":18,"children":-1},"Install the website tag","\u002Fdocs\u002Fdata-capture\u002Finstall-the-website-tag","docs\u002F02.data-capture\u002F01.install-the-website-tag","Add the install snippet to every page, allow it in your CSP, and check that it works.","Set up",{"title":70,"path":71,"stem":72,"icon":18,"summary":73,"section":68,"highlights":18,"children":-1},"Turn capture features on","\u002Fdocs\u002Fdata-capture\u002Fturn-features-on","docs\u002F02.data-capture\u002F02.turn-features-on","What each capture card on a property does, and which are on from the start.",{"title":75,"path":76,"stem":77,"icon":18,"summary":78,"section":68,"highlights":18,"children":-1},"Existing tags and data layers","\u002Fdocs\u002Fdata-capture\u002Fexisting-tags-and-data-layers","docs\u002F02.data-capture\u002F03.existing-tags-and-data-layers","Read your tag manager data layer and the analytics tools you already run, without re-tagging.",{"title":80,"path":81,"stem":82,"icon":18,"summary":83,"section":68,"highlights":18,"children":-1},"Shopify checkout","\u002Fdocs\u002Fdata-capture\u002Fshopify-checkout","docs\u002F02.data-capture\u002F04.shopify-checkout","Count a Shopify store's carts, checkouts and orders, line by line, with Kontala's pixel.",{"title":85,"path":86,"stem":87,"icon":18,"summary":88,"section":89,"highlights":18,"children":-1},"Page and click types","\u002Fdocs\u002Fdata-capture\u002Fpage-and-click-types","docs\u002F02.data-capture\u002F05.page-and-click-types","The 11 page types and 30 click types, and how Kontala decides each one.","What gets captured",{"title":91,"path":92,"stem":93,"icon":18,"summary":94,"section":89,"highlights":18,"children":-1},"Struggle signals","\u002Fdocs\u002Fdata-capture\u002Fstruggle-signals","docs\u002F02.data-capture\u002F06.struggle-signals","Rage clicks, dead clicks, errors, page speed and quick backs, and how each is detected.",{"title":96,"path":97,"stem":98,"icon":18,"summary":99,"section":89,"highlights":18,"children":-1},"Revenue and campaigns","\u002Fdocs\u002Fdata-capture\u002Frevenue-and-campaigns","docs\u002F02.data-capture\u002F07.revenue-and-campaigns","Orders and revenue, the campaign parameters Kontala keeps, channels, attribution and ad spend.",{"title":101,"path":102,"stem":103,"icon":18,"summary":104,"section":89,"highlights":18,"children":-1},"Identify visitors","\u002Fdocs\u002Fdata-capture\u002Fidentify-visitors","docs\u002F02.data-capture\u002F08.identify-visitors","Tell Kontala who signed in, and how visits and visitors are counted.",{"title":106,"path":107,"stem":108,"icon":18,"summary":109,"section":110,"highlights":18,"children":-1},"Consent","\u002Fdocs\u002Fdata-capture\u002Fconsent","docs\u002F02.data-capture\u002F09.consent","How the tag behaves before and after a visitor answers your consent banner, and how to wire it up.","Privacy and control",{"title":112,"path":113,"stem":114,"icon":18,"summary":115,"section":110,"highlights":18,"children":-1},"Privacy and governance","\u002Fdocs\u002Fdata-capture\u002Fprivacy-and-governance","docs\u002F02.data-capture\u002F10.privacy-and-governance","What is kept and what is removed, page URLs, cookies, IP addresses, bots and how to leave parts of a page out.","i-lucide-mouse-pointer-click","One line of code captures page views, clicks, scrolling and struggle, classified in business terms.",[119,120,121,122],{"title":64,"to":65},{"title":70,"to":71},{"title":85,"to":86},{"title":106,"to":107},{"title":124,"path":125,"stem":126,"children":127,"icon":182,"summary":183,"section":18,"highlights":184},"Analytics","\u002Fdocs\u002Fanalytics","docs\u002F03.analytics\u002Findex",[128,134,139,145,150,155,160,166,171,177],{"title":129,"path":130,"stem":131,"icon":18,"summary":132,"section":133,"highlights":18,"children":-1},"Dashboards","\u002Fdocs\u002Fanalytics\u002Fdashboards","docs\u002F03.analytics\u002F01.dashboards","Open Kontala Analytics and find your way around the nine dashboards Kontala builds for you.","Get around",{"title":135,"path":136,"stem":137,"icon":18,"summary":138,"section":133,"highlights":18,"children":-1},"Explores, metrics and the semantic layer","\u002Fdocs\u002Fanalytics\u002Fsemantic-layer","docs\u002F03.analytics\u002F02.semantic-layer","The 20 explores Kontala maintains, what is in them, and how your Data Capture settings shape them.",{"title":140,"path":141,"stem":142,"icon":18,"summary":143,"section":144,"highlights":18,"children":-1},"How explores, dimensions and metrics work","\u002Fdocs\u002Fanalytics\u002Fexplores-dimensions-and-metrics","docs\u002F03.analytics\u002F03.explores-dimensions-and-metrics","Where a question starts, what you group it by, and what you measure.","Concepts",{"title":146,"path":147,"stem":148,"icon":18,"summary":149,"section":144,"highlights":18,"children":-1},"Explores","\u002Fdocs\u002Fanalytics\u002Fexplores","docs\u002F03.analytics\u002F04.explores","Open an explore, pick dimensions and metrics, then filter, sort and run your query.",{"title":151,"path":152,"stem":153,"icon":18,"summary":154,"section":144,"highlights":18,"children":-1},"Dimensions","\u002Fdocs\u002Fanalytics\u002Fdimensions","docs\u002F03.analytics\u002F05.dimensions","What you group and filter by: dimension types, dates and time intervals, filters and bins.",{"title":156,"path":157,"stem":158,"icon":18,"summary":159,"section":144,"highlights":18,"children":-1},"Metrics","\u002Fdocs\u002Fanalytics\u002Fmetrics","docs\u002F03.analytics\u002F06.metrics","What you measure: metric types, custom metrics, table calculations and the Metrics Catalog.",{"title":161,"path":162,"stem":163,"icon":18,"summary":164,"section":165,"highlights":18,"children":-1},"Explore and visualise","\u002Fdocs\u002Fanalytics\u002Fexplore-and-visualise","docs\u002F03.analytics\u002F07.explore-and-visualise","Build your own charts from the explores: filters, table calculations, custom fields and chart types.","Analyse",{"title":167,"path":168,"stem":169,"icon":18,"summary":170,"section":165,"highlights":18,"children":-1},"Ask AI and agents","\u002Fdocs\u002Fanalytics\u002Fask-ai-and-agents","docs\u002F03.analytics\u002F08.ask-ai-and-agents","AI assistants are not yet available in Kontala Analytics.",{"title":172,"path":173,"stem":174,"icon":18,"summary":175,"section":176,"highlights":18,"children":-1},"Share and export","\u002Fdocs\u002Fanalytics\u002Fshare-and-export","docs\u002F03.analytics\u002F09.share-and-export","Share links, comment on dashboards, export results and duplicate dashboards.","Share and govern",{"title":178,"path":179,"stem":180,"icon":18,"summary":181,"section":176,"highlights":18,"children":-1},"Security and governance","\u002Fdocs\u002Fanalytics\u002Fsecurity-and-governance","docs\u002F03.analytics\u002F10.security-and-governance","How you sign in to Analytics, what each role can do, and how your data is kept apart.","i-lucide-chart-line","Ready-made dashboards and 20 explores over your events, on a semantic layer Kontala maintains.",[185,186,187,188],{"title":129,"to":130},{"title":135,"to":136},{"title":140,"to":141},{"title":161,"to":162},{"title":190,"path":191,"stem":192,"children":193,"icon":200,"summary":201,"section":18,"highlights":202},"CDP","\u002Fdocs\u002Fcdp","docs\u002F04.cdp\u002Findex",[194],{"title":195,"path":196,"stem":197,"icon":18,"summary":198,"section":199,"highlights":18,"children":-1},"CDP overview","\u002Fdocs\u002Fcdp\u002Foverview","docs\u002F04.cdp\u002F01.overview","Identity resolution, consent, real-time audiences and warehouse-native sync.","Overview","i-lucide-users","One resolved, consented profile that every module reads and writes.",[203],{"title":195,"to":196},{"title":205,"path":206,"stem":207,"children":208,"icon":214,"summary":215,"section":18,"highlights":216},"Personalisation","\u002Fdocs\u002Fpersonalisation","docs\u002F05.personalisation\u002Findex",[209],{"title":210,"path":211,"stem":212,"icon":18,"summary":213,"section":199,"highlights":18,"children":-1},"Personalisation overview","\u002Fdocs\u002Fpersonalisation\u002Foverview","docs\u002F05.personalisation\u002F01.overview","Next best action, decisioning, bandits, recommendations and journey experiments.","i-lucide-sparkles","The next best content, offer and channel for each person.",[217],{"title":210,"to":211},{"title":219,"path":220,"stem":221,"children":222,"icon":228,"summary":229,"section":18,"highlights":230},"CVM","\u002Fdocs\u002Fcvm","docs\u002F06.cvm\u002Findex",[223],{"title":224,"path":225,"stem":226,"icon":18,"summary":227,"section":199,"highlights":18,"children":-1},"CVM overview","\u002Fdocs\u002Fcvm\u002Foverview","docs\u002F06.cvm\u002F01.overview","Churn and lifetime value prediction, lifecycle orchestration and offer guardrails.","i-lucide-trending-up","Lifecycle value, optimised for margin rather than vanity metrics.",[231],{"title":224,"to":225},{"title":233,"path":234,"stem":235,"children":236,"icon":253,"summary":254,"section":18,"highlights":255},"Autonomy","\u002Fdocs\u002Fautonomy","docs\u002F07.autonomy\u002Findex",[237,243,248],{"title":238,"path":239,"stem":240,"icon":18,"summary":241,"section":242,"highlights":18,"children":-1},"Goals and guardrails","\u002Fdocs\u002Fautonomy\u002Fgoals-and-guardrails","docs\u002F07.autonomy\u002F01.goals-and-guardrails","Optimise for value, within limits the models cannot cross.","Control",{"title":244,"path":245,"stem":246,"icon":18,"summary":247,"section":242,"highlights":18,"children":-1},"Autonomy levels","\u002Fdocs\u002Fautonomy\u002Fautonomy-levels","docs\u002F07.autonomy\u002F02.autonomy-levels","Approve, suggest-only or fully autonomous, set per journey.",{"title":249,"path":250,"stem":251,"icon":18,"summary":252,"section":242,"highlights":18,"children":-1},"Explainability","\u002Fdocs\u002Fautonomy\u002Fexplainability","docs\u002F07.autonomy\u002F03.explainability","Every action is logged with the signals and reasoning behind it.","i-lucide-shield-check","Goals, guardrails and approval levels: you decide how much runs on its own.",[256,257,258],{"title":238,"to":239},{"title":244,"to":245},{"title":249,"to":250},{"title":260,"path":261,"stem":262,"children":263,"icon":287,"summary":288,"section":18,"highlights":289},"Developers","\u002Fdocs\u002Fdevelopers","docs\u002F08.developers\u002Findex",[264,270,276,281],{"title":265,"path":266,"stem":267,"icon":18,"summary":268,"section":269,"highlights":18,"children":-1},"Tag reference","\u002Fdocs\u002Fdevelopers\u002Ftag-reference","docs\u002F08.developers\u002F01.tag-reference","Every script attribute, JavaScript function, HTML attribute and cookie of Kontala's website tag.","Website",{"title":271,"path":272,"stem":273,"icon":18,"summary":274,"section":275,"highlights":18,"children":-1},"App SDKs","\u002Fdocs\u002Fdevelopers\u002Fsdks","docs\u002F08.developers\u002F02.sdks","Native SDKs for Flutter, Android and iOS are in development and not yet available.","Apps and servers",{"title":277,"path":278,"stem":279,"icon":18,"summary":280,"section":275,"highlights":18,"children":-1},"Events API","\u002Fdocs\u002Fdevelopers\u002Fevents-api","docs\u002F08.developers\u002F03.events-api","The Events API, for sending events from your servers, is not yet available.",{"title":282,"path":283,"stem":284,"icon":18,"summary":285,"section":286,"highlights":18,"children":-1},"MCP server","\u002Fdocs\u002Fdevelopers\u002Fmcp","docs\u002F08.developers\u002F04.mcp","The MCP server for AI tools is not yet available.","AI tools","i-lucide-code-xml","The tag JavaScript API and attributes, and the status of the app SDKs and Events API.",[290,291,292],{"title":265,"to":266},{"title":271,"to":272},{"title":277,"to":278},{"title":294,"path":295,"stem":296,"children":297,"icon":310,"summary":311,"section":18,"highlights":312},"Security and privacy","\u002Fdocs\u002Fsecurity-and-privacy","docs\u002F09.security-and-privacy\u002Findex",[298,304],{"title":299,"path":300,"stem":301,"icon":18,"summary":302,"section":303,"highlights":18,"children":-1},"Data protection","\u002Fdocs\u002Fsecurity-and-privacy\u002Fdata-protection","docs\u002F09.security-and-privacy\u002F01.data-protection","Where events are stored, how long they are kept, and how visitors are protected.","Data",{"title":305,"path":306,"stem":307,"icon":18,"summary":308,"section":309,"highlights":18,"children":-1},"Access control","\u002Fdocs\u002Fsecurity-and-privacy\u002Faccess-control","docs\u002F09.security-and-privacy\u002F02.access-control","Sign-in, two-step verification, roles and write keys.","Access","i-lucide-lock","Where your data is stored, how long it is kept, and who in your team can do what.",[313,314],{"title":299,"to":300},{"title":305,"to":306},{"title":316,"path":317,"stem":318,"children":319,"icon":326,"summary":327,"section":18,"highlights":328},"Help and support","\u002Fdocs\u002Fsupport","docs\u002F10.support\u002Findex",[320],{"title":321,"path":322,"stem":323,"icon":18,"summary":324,"section":325,"highlights":18,"children":-1},"Contact us","\u002Fdocs\u002Fsupport\u002Fcontact-us","docs\u002F10.support\u002F01.contact-us","Talk to the Kontala team about setup, access or anything else.","Support","i-lucide-life-buoy","Get help from the Kontala team.",[329],{"title":321,"to":322},false,{"path":157,"title":156,"description":332,"summary":159,"icon":18,"section":144,"sections":18,"lastUpdated":333,"body":334},"Metrics summarise many rows into one number. Learn how metrics are calculated, how to add custom metrics and table calculations, and how to find metrics in the Metrics Catalog.","2026-10-12",{"type":335,"value":336,"toc":807},"minimark",[337,341,344,351,356,359,470,473,478,500,504,511,515,544,548,554,558,592,595,633,649,653,664,668,671,675,682,709,719,723,760,764,772,776,786,790],[338,339,340],"p",{},"A metric is a calculation that summarises many rows into one value, such as the number of visits, the conversion rate or revenue.\nMetrics are calculated when your query runs, from the latest data in your explores.",[338,342,343],{},"Select a metric on its own and you get one number for the whole explore, after any filters.\nAdd dimensions and the metric is calculated separately for each row of your results, such as each channel or each week.",[338,345,346,347,350],{},"In the Explorer, metrics are listed under ",[348,349,156],"strong",{}," in the field list, and shown in orange in the results table.\nHover over one to read its description, which says exactly what it counts.",[352,353,355],"h2",{"id":354},"how-metrics-are-calculated","How metrics are calculated",[338,357,358],{},"Every metric has a type, which sets how it summarises the rows.",[360,361,362,378],"table",{},[363,364,365],"thead",{},[366,367,368,372,375],"tr",{},[369,370,371],"th",{},"Type",[369,373,374],{},"What it calculates",[369,376,377],{},"Examples",[379,380,381,393,404,415,426,437,448,459],"tbody",{},[366,382,383,387,390],{},[384,385,386],"td",{},"Count",[384,388,389],{},"The number of rows",[384,391,392],{},"Visits, Purchases",[366,394,395,398,401],{},[384,396,397],{},"Count distinct",[384,399,400],{},"The number of different values",[384,402,403],{},"Users, Countries",[366,405,406,409,412],{},[384,407,408],{},"Sum",[384,410,411],{},"The total of the values",[384,413,414],{},"Revenue, Conversions, Orders",[366,416,417,420,423],{},[384,418,419],{},"Average",[384,421,422],{},"The mean of the values",[384,424,425],{},"Pages per visit",[366,427,428,431,434],{},[384,429,430],{},"Median",[384,432,433],{},"The middle value",[384,435,436],{},"Median days to convert",[366,438,439,442,445],{},[384,440,441],{},"Percentile",[384,443,444],{},"The value below which a given share of values fall",[384,446,447],{},"LCP, 75th percentile (s), in the Page views explore",[366,449,450,453,456],{},[384,451,452],{},"Min and max",[384,454,455],{},"The smallest or largest value",[384,457,458],{},"Last visit",[366,460,461,464,467],{},[384,462,463],{},"Ratio",[384,465,466],{},"One metric divided by another, in each row",[384,468,469],{},"Conversion rate, Average order value, Revenue per visit",[338,471,472],{},"Median and percentile metrics are approximations, which your warehouse calculates quickly over millions of rows.\nThey can differ very slightly from an exact calculation.",[474,475,477],"h3",{"id":476},"metrics-that-count-some-rows","Metrics that count some rows",[338,479,480,481,484,485,488,489,492,493,495,496,499],{},"Many metrics only count the rows that meet a condition.\n",[348,482,483],{},"Converting visits"," counts the visits that converted, and ",[348,486,487],{},"Purchases"," counts the visits with a purchase.\nRatios are built from them: ",[348,490,491],{},"Conversion rate"," is ",[348,494,483],{}," divided by ",[348,497,498],{},"Visits",", worked out in each row of your results.",[474,501,503],{"id":502},"metrics-that-do-not-add-up","Metrics that do not add up",[338,505,506,507,510],{},"Counts and sums add up across rows: visits per channel add up to all visits.\nDistinct counts do not.\n",[348,508,509],{},"Users"," counts each visitor once, so someone who visits in three different weeks counts once in each week, but only once in the month.\nRatios and medians do not add up either, so read them row by row.",[352,512,514],{"id":513},"use-metrics-in-the-explorer","Use metrics in the Explorer",[516,517,518,526,537],"ul",{},[519,520,521,522,525],"li",{},"To filter on a metric, open its menu in the field list and select ",[348,523,524],{},"Add filter",".\nA filter on a metric removes rows from your results after the metric is calculated, for example channels with fewer than 100 visits.",[519,527,528,529,532,533,536],{},"Select a metric value in the results table, then ",[348,530,531],{},"View underlying data"," to see the rows behind it, or ",[348,534,535],{},"Drill into"," to break it down by another dimension.",[519,538,539,540,543],{},"To compare a metric with an earlier period, open its column menu in the results table and select ",[348,541,542],{},"Add period comparison",".\nThis adds a column with the metric for the period before, such as the previous week.\nYour query needs a date dimension, and the feature is in beta.",[352,545,547],{"id":546},"custom-metrics","Custom metrics",[338,549,550,551,553],{},"A custom metric adds a metric to your chart without changing the explore.\nIt is saved with the chart, listed under ",[348,552,547],{}," in the field list, and does not change the explore for anyone else.",[474,555,557],{"id":556},"from-a-dimension","From a dimension",[559,560,561,564,577],"ol",{},[519,562,563],{},"In the field list, hover over a dimension and select the three dots.",[519,565,566,567,570,571,573,574,576],{},"Under ",[348,568,569],{},"Add custom metrics",", choose a calculation, such as ",[348,572,419],{}," or ",[348,575,397],{},".",[519,578,579,580,583,584,587,588,591],{},"Check the ",[348,581,582],{},"Label"," and select ",[348,585,586],{},"Create",".\nTo set a format or add a filter, select ",[348,589,590],{},"More options"," first.",[338,593,594],{},"The calculations on offer depend on the dimension's type.",[360,596,597,607],{},[363,598,599],{},[366,600,601,604],{},[369,602,603],{},"Dimension type",[369,605,606],{},"Calculations",[379,608,609,617,625],{},[366,610,611,614],{},[384,612,613],{},"Number",[384,615,616],{},"Sum, Average, Median, Percentile, Min, Max, Count, Count distinct",[366,618,619,622],{},[384,620,621],{},"String, date and timestamp",[384,623,624],{},"Count, Count distinct, Min, Max",[366,626,627,630],{},[384,628,629],{},"Boolean",[384,631,632],{},"Count, Count distinct",[338,634,635,636,638,639,642,643,638,645,648],{},"For example, ",[348,637,419],{}," of ",[348,640,641],{},"Pages in visit"," gives the average pages per visit, and ",[348,644,397],{},[348,646,647],{},"Landing page"," gives the number of different landing pages.",[474,650,652],{"id":651},"from-a-metric","From a metric",[338,654,655,656,659,660,663],{},"To make a variation of an existing metric, such as ",[348,657,658],{},"Revenue"," for one channel only, select ",[348,661,662],{},"Create custom metric"," in the metric's menu, in the field list or the results table.\nThis makes a copy you can rename and add filters to.\nIt works for count, count distinct, sum, average, min, max, median and percentile metrics.",[352,665,667],{"id":666},"table-calculations","Table calculations",[338,669,670],{},"Table calculations work on the results of your query, like formulas in a spreadsheet.\nUse them for calculations that look across rows, such as a share of the total, a running total, a rank or the change from the previous row.\nThey are shown in green in the results table.",[474,672,674],{"id":673},"quick-calculations","Quick calculations",[338,676,677,678,681],{},"Open a metric's column menu in the results table, select ",[348,679,680],{},"Add quick calculation"," and choose one:",[516,683,684,689,694,699,704],{},[519,685,686],{},[348,687,688],{},"Percent change from previous",[519,690,691],{},[348,692,693],{},"Percent of previous value",[519,695,696],{},[348,697,698],{},"Percent of column total",[519,700,701],{},[348,702,703],{},"Rank in column",[519,705,706],{},[348,707,708],{},"Running total",[338,710,711,712,715,716,718],{},"The new column is named after the calculation and the metric, such as ",[348,713,714],{},"Percent of column total of Visits",", and opens for editing straight away.\n",[348,717,703],{}," works with any metric; the others need a numeric metric other than min or max.",[474,720,722],{"id":721},"write-a-formula","Write a formula",[559,724,725,735,750],{},[519,726,727,728,731,732,576],{},"In the ",[348,729,730],{},"Results"," panel, select ",[348,733,734],{},"Table calculation",[519,736,737,738,742,743,746,747,576],{},"Write a formula, typing ",[739,740,741],"code",{},"@"," to use a field from your query and ",[739,744,745],{},"#"," to find a function, for example ",[739,748,749],{},"=IF(@Visits > 1000, \"high\", \"low\")",[519,751,752,753,756,757,576],{},"Give the calculation a ",[348,754,755],{},"Name",", choose its format and select ",[348,758,759],{},"Create formula",[474,761,763],{"id":762},"table-calculation-or-metric","Table calculation or metric?",[338,765,766,767,771],{},"A table calculation only exists in its chart and can only use the fields in your query.\nA metric is defined once and gives the same number in every chart and dashboard.\nIf you find yourself rebuilding the same calculation, ",[768,769,770],"a",{"href":322},"contact us"," to ask for it as a metric.",[352,773,775],{"id":774},"find-metrics-in-the-metrics-catalog","Find metrics in the Metrics Catalog",[338,777,778,779,781,782,785],{},"Select ",[348,780,156],{}," in the top bar to open the ",[348,783,784],{},"Metrics Catalog",", which lists the metrics in your explores with their descriptions.\nSelect a metric to open it in the Metrics Explorer, where you can follow it over time, change the granularity, and filter or segment it by a dimension.\nAdmins can tag metrics with categories to organise the catalog.",[352,787,789],{"id":788},"related","Related",[516,791,792,797,802],{},[519,793,794,796],{},[768,795,140],{"href":141},": the three building blocks and how they fit together.",[519,798,799,801],{},[768,800,146],{"href":147},": build a query and dig into its results.",[519,803,804,806],{},[768,805,151],{"href":152},": what your metrics are grouped and filtered by.",{"title":808,"searchDepth":809,"depth":809,"links":810},"",2,[811,816,817,821,826,827],{"id":354,"depth":809,"text":355,"children":812},[813,815],{"id":476,"depth":814,"text":477},3,{"id":502,"depth":814,"text":503},{"id":513,"depth":809,"text":514},{"id":546,"depth":809,"text":547,"children":818},[819,820],{"id":556,"depth":814,"text":557},{"id":651,"depth":814,"text":652},{"id":666,"depth":809,"text":667,"children":822},[823,824,825],{"id":673,"depth":814,"text":674},{"id":721,"depth":814,"text":722},{"id":762,"depth":814,"text":763},{"id":774,"depth":809,"text":775},{"id":788,"depth":809,"text":789},{"sections":829},[133,144,165,176],[831,832],{"title":151,"path":152,"stem":153,"summary":154,"children":-1},{"title":161,"path":162,"stem":163,"summary":164,"children":-1},1791815164158]