Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

What component to use when I want to sum a column without changing the sort order? the Aggregate changes the sort order when choosing to group by.

$
0
0

Hi,  Any help is greatly appreciated.  This has been keeping me going for awhile.

I want to sum the PosNegAmount when I group by CompareKey. If i use CompareKey to group by in an aggregate it changes the sort order to the CompareKey then it sums. See data below.  I would want three records in this case yet I only get two.  Is there a way to sum a column and keep the sort order?


shash


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>