I think Itm serial no is nothing but sequence of occurances.
Line no Item no comments
1 1000 this is first occurance of item no =1000, so the Item serial no =2
3 1000 this is scond occurance of item no =1000 , so the Item serial no =2
like wise for other records as well inrespective of Line no.
Ok understood you need to add another column as Auto_No
load * inline
AutoNumber(LineNo,ItemNo) as Auto_No
See the sample file
autonum.qvw 118.5 K