Hi Henry,
SalesAnalysis could be useful because the 'header' information (such as customer number and salesperson) and 'detail' information (such as item number and qty sold and unit price) is all stored in a single file - the Sales Analysis Transaction file. Also, you don't have to worry about whether anything has been purged in OE. The main purpose of SalesAnalysis is for collecting the sales data for reporting, just like what you are wanting to accomplish.
As long as your filter passes the verification, it appears to be just fine for selecting all invoices with a date later than 365 days before today. Are there any other filters? Perhaps re-adjust the filter to: CurrentDate - Invoice Date < 365
As a temporarly measure (to test out the filter), you may want to add a formula field to your report calculating Current Date minus Invoice Date. You should see the resulting values as all positive (except for future-dated invoices) and equal to the number of days old. Any numbers less that 365 means the invoice is less than a year old and should be selected.
And even though defaults are set for purging historical documents to 1825 days old, these dates can be over-ridden within the Purge History function. You may want to verify in the OE History data (and also SalesAnalysis) that nothing has been purged that is expected to be there.
_________________________
Regards,
Softrak Tech Support