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

1q = load "DTC_Opportunity_SAMPLE";
2q = group q by all;
3q = foreach q generate varp('Amount') as 'var_Amount';