DSFIRST

Gets first column value in the given Data Source, optionally filtering rows by formula.

Syntax

DSFIRST(dsId, columnIndex, 'optionalFilterFormula')

Example

DSFIRST('STAFF', 2) gets 3rd column's first value

Add a filter formula using {{this[column]}} to refer to columns.
DSFIRST('STAFF', 2, '{{this[5]}} = "BOB"') first of 3rd column where 6th column = BOB

Notes

Refer to the Data Source by it's External Id (from the Data Source -> Settings page). 
Refer to the column by it's zero-based index.

Related 

DSCOUNT, DSSUM, DSAVG, DSMAX, DMIN, DSLAST