How to sum only certain rows in a Crystal Report
Posted on 2010-11-23
I have a data set returned to a Crystal Report. I cannot change the underlying procedure and must work with the data I get. The report currently has a row for each share returned. However, some shares have another row (a different asset type) for the same share. The end-user wants to sum the two rows so that the final report has one row for the share. So, am summing using the SEDOL (don't worry-its a trading symbol thinggy). But I KNOW NOTHING about Crystal and am totally perplexed as to how to tell the report to ONLY sum those rows that have the same SEDOL, but yet give me all the rows that are returned as well. That is, if I have 100 rows, but 10 of them have the a second asset type row for the share (that is, the share row with its original asset type as well as the second asset type row), then I want to sum the 10 rows with the two asset type rows so the final report would show 90 rows. (Hope that made sense!). I have the report grouped, but that is as far as I have gotten!