I am trying to list some itemcodes from the ones that make the most profit to the least BY DEPARTMENT and BY CLASS... I sum the items BY ITMECODE becuase some of the items were ordered more then once. After I get the Total profit column and try to add a BY TOTALPROFIT column it seems to be puting them in the order of the highest totalprofit before they were summed...
EX. before sum BY TOTALPROFIT ITEMCODE___#ofOrders____TOTALPROFIT 12346______1____________2.00 12346______1____________2.00 12346______1____________2.00 12347______1____________1.75 12347______1____________1.75 12347______1____________1.75 12345______1____________1.25 12345______1____________1.25 12345______1____________1.25 12345______1____________1.25 12345______1____________1.25
after SUM then BY TOTALPROFIT ITEMCODE___#ofOrders____TOTALPROFIT 12346______3____________6.00 12347______3____________5.25 12345______5____________6.25
I believe it is because there original values would put them in this order
I don't know how to put them in the correct order after they are summed
Thanks for the help!This message has been edited. Last edited by: Charles Richards,