Expression function only returns value for first row.