anationalacrobat
Technical User
Here's a question about totaling. The data I'm getting back looks something like this:
customerid year dollars
1 07 $50
1 08 $250
2 07 $100
2 08 $20
(full list is much bigger, customer ID's not sorted together)
now what I need to do is create four totals for this entire list showing whether the 08 dollars are the same, increase, decrease, or zero.
The part I'm not sure on is how and where to perform this evaluation. If I were doing this manually in Excel, I'd stick in a tally column with nested ifs performing the logic test (if the custID on this line = custID of above line, then) and returning the strings same, increase, decrease, or zero, then do counts at the bottom for those strings and there I go.
Naturally, Crystal ain't Excel. But I know there's a smart way of doing this I'm missing. I don't know if there's something I can do within the details section to get the running total or what.
customerid year dollars
1 07 $50
1 08 $250
2 07 $100
2 08 $20
(full list is much bigger, customer ID's not sorted together)
now what I need to do is create four totals for this entire list showing whether the 08 dollars are the same, increase, decrease, or zero.
The part I'm not sure on is how and where to perform this evaluation. If I were doing this manually in Excel, I'd stick in a tally column with nested ifs performing the logic test (if the custID on this line = custID of above line, then) and returning the strings same, increase, decrease, or zero, then do counts at the bottom for those strings and there I go.
Naturally, Crystal ain't Excel. But I know there's a smart way of doing this I'm missing. I don't know if there's something I can do within the details section to get the running total or what.