Thanks

This was great but I am still getting a difference between the distinct values of the ordertype and the count of this output .

Trying to find out where it is lacking

regards