Meta tags:
description= Learn how to create and configure measures for quantitative analysis and business insights in your metrics views;
Headings (most frequently used words):
define, your, measures, supported, sql, functions,
Text of the page (most frequently used words):
#measures (17), and (15), sql (13), your (12), functions (10), rill (8), the (7), metrics (7), engine (6), data (5), for (5), count (5), documentation (5), advanced (4), with (4), revenue (4), aggregates (4), views (4), project (4), measure (3), formatting (3), time (3), window (3), fixed (3), quantiles (3), how (3), these (3), syntax (3), may (3), customer (3), sum (3), sales (3), you (3), specific (3), business (3), are (3), dashboards (3), developer (3), policy (2), supported (2), calculate (2), analysis (2), reference (2), calculations (2), referencing (2), case (2), statements (2), filters (2), number (2), order (2), value (2), 100 (2), vary (2), filter (2), cast (2), sales_price (2), float (2), total (2), table (2), expressions (2), pinot (2), druid (2), clickhouse (2), duckdb (2), engines (2), support (2), dialects (2), standard (2), numeric (2), provide (2), they (2), derived (2), underlying (2), define (2), build (2), api (2), deploy (2), files (2), configuration (2), quickstart (2), 2026, inc, contributing, community, terms, service, privacy, next, query, joins, previous, apply, analytical, operations, create, values, constants, percentiles, statistical, combine, existing, use, conditional, logic, filtering, learn, format, display, effectively, explore, capabilities, enhance, orders, more, than, where, order_val, per, distinct, customer_id, example, have, events, price, could, following, different, olap, varying, while, work, across, some, features, see, can, used, set, rows, fed, aggregate, filtered, dependent, var_samp, var_pop, stddev_samp, stddev_pop, approx_quantile, approx_count_distinct, common, variance, stddev, min, max, avg, operators, concrete, numbers, decisions, decision, making, track, key, like, growth, efficiency, quantify, performance, much, many, numerical, foundation, enabling, quantitative, that, power, reports, represent, from, through, aggregation, transform, raw, into, meaningful, insights, such, average, this, page, home, release, notes, other, tutorials, postmessage, iframe, embed, managing, errors, configure, deployment, credentials, cloud, debugging, external, ide, integration, organize, code, alerts, custom, apis, access, control, rollups, annotations, dimensions, series, model, what, models, connectors, first, why, agentic, install, get, started, search, github, blog, contact, rest, cli, url, parameters, iso, 8601, guide, developers, skip, main, content,
Text of the page (random words):
define your measures rill skip to main content developers guide reference project files time syntax rill iso 8601 url parameters cli rest api contact us blog github search get started install rill developer agentic quickstart quickstart why rill build your first project connectors models metrics views what are metrics views underlying model table derived metrics views time series dimensions measures measure formatting case statements and filters referencing measures quantiles fixed measures window functions annotations rollups data access control metrics sql dashboards custom apis alerts project configuration ai configuration organize your code files external ide integration debugging in rill developer deploy rill cloud vs rill developer configure deployment credentials deploy dashboards managing project errors embed iframe postmessage api tutorials other release notes home build metrics views measures on this page define your measures measures are the quantitative metrics that power your dashboards and reports they represent numeric calculations derived from your underlying data through sql aggregation functions and expressions these measures transform raw data into meaningful business insights such as total revenue average order value or customer count measures are the how much and how many of your data they provide the numerical foundation for your analysis enabling you to quantify performance track key business metrics like revenue growth and efficiency support decision making provide concrete numbers for business decisions supported sql functions standard sql numeric operators and functions common sql aggregates avg count max min sum stddev variance advanced aggregates engine dependent approx_count_distinct approx_quantile stddev_pop stddev_samp var_pop var_samp filtered aggregates can be used to filter the set of rows fed to the aggregate functions syntax may vary by engine engine specific sql dialects different olap engines support varying sql dialects and functions while standard sql functions work across engines some advanced features may be engine specific for engine specific documentation see duckdb duckdb sql documentation clickhouse clickhouse sql documentation druid druid sql documentation pinot pinot sql documentation as an example if you have a table of sales events with the sales price and customer id you could calculate the following measures with these aggregates and expressions number of sales count total revenue sum sales_price revenue per customer cast sum sales_price as float cast count distinct customer_id as float number of orders with order value more than 100 count filter where order_val 100 syntax may vary by engine explore these advanced capabilities to enhance your measures measure formatting learn how to format and display your measures effectively case statements and filters use conditional logic and filtering in your measures referencing measures reference and combine existing measures in your calculations quantiles calculate percentiles and quantiles for statistical analysis fixed measures create measures with fixed values and constants window functions apply window functions for advanced analytical operations previous query time joins next measure formatting supported sql functions 2026 rill data inc privacy policy terms of service community policy contributing
|