Was this ever figured out? I having the same problem?
Please explain what are you trying to achieve here ?
And what exact error you are getting after you removed what from the function 'first' like our author ?
SSRS, SSIS, SSAS, IBM Cognos, IBM Infosphere Cubing services, Crystal reports, IBM DB2, SQL Server, T-SQLPlease visit... ApplyBI