In my data set I have line key/sequence sets but they are sorted and do not represent the data that I export in the way I need. In my final query I need to be able to assign a number starting with 1 to each line of the query, and if a new "Purchase Order Number" value is found in the query, restart the line count. In my example attached the first line would have New Column "Row Number" = 1, then on line 2 (new "PurchaseOrder...#) "Row Number" = 1, line 3 "Row Number= 2, line 4 "Row Number"=3, line 5 "Row Number" = 4, line 6 "Row Number" = 1 because the value in "PurchaseOrder.." started a new value of "0062907".