Newer Version Available
min()
Returns the minimum value of a measure or date field.
Use min() on measure or date fields. Returns the minimum measure or the oldest date in the field.
Example - Find the Smallest Opportunity For Each Account
1q = load "Ops";
2q = group q by 'Account_Name';
3q = foreach q generate 'Company' as 'Company', min('Amount') as 'Smallest Deal';