# varp()

Returns the variance of the values in a field. Accepts measure fields as input but not expressions.

## Example - Calculate the Population Variance of Deal Amount

```nolang
q = load "DTC_Opportunity_SAMPLE";
q = group q by all;
q = foreach q generate varp('Amount') as 'var_Amount';
```

**See Also**

- [var()](/docs/analytics/bi-dev-guide-saql/guide/bi-saql-fn-agg-var.md)
