When you say "comparing year to year" what exactly do you mean?

You want something like this:

Year   Total  Last Year
2000   25     null
2001   32     25
2002   65     32

or this:

Year   Total  % increase
2000   25     null
2001   32     (32-25)/25
2002   65     (65-32)/65

I would probably build the total cursor twice and then join them based on the year in one being equal to the year in the other plus or minus one.

Frank.

Frank Cazabon

On 12/03/2013 06:10 PM, Michael Savage wrote:
I have a totals query that gives me annual totals. Each row is a different year. Is there an easy way of comparing year to year? (Easier than using scan endscan)

TIA,
Mike

[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to