I think I hear you Dean...
I evaluate from a self joined rel the Get (FoundCount) the results are above. I am trying to get a key identifier for each year so I could use a portal in my customer file to see just the years as follows.
(ie 2002 50
2003 35
2004 28
2005 25)
Well you can't get a portal like that unless you have a table of "Years" where you have one record per Year. You'd then need to have a global field (somewhere) containing the Customer's ID so that each Year record knows which customer's line items to add up. So you'd have a relationship from Customer to years- this could be an "X" join so all years show up in the portal. Then you'd have a relationship from years to customer's line items based on both the year and this global customer ID. Using that relationships you'd have a sum calc in the years table that would calculate the number of line items for the globally defined customer. Note that you'd have to set this global for each Customer as you scrolled form user to user.
For that reason, I don't really like the portal solution.
Rather, I like a solution where you have 4 (for example) calc fields in the Customer's file. These calcs would each contain 1 year you're interested in seeing totals for. Then you'd have 4 (for example) relationships from your Customer's file to the line items file based on both the Customer ID and ons of the Year fields. This would add up the line items for that customer and that year:
Sum ( LineItemsByCustomerYear::Amount )
The advantage of this is that you don't have to change anything as you scroll from user to user AND you can see more than 1 user's totals at once (in a list view, for instance).
Going further, you can make the calcs which contain the year to be unstored calcs based on an external settings table so that you can use this settings table to determined which 4 years (for example) you're looking at. If you make these unstored, however, you won't be able to search on these totals, so keeping the year calcs stored and re-defining them as necessary might be the best choice.