- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
FiscalYear and FiscalPeri od repeating sometimes
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-10-2012 12:26 PM
I made a report that adds all the DollarsSold for the last 24 periods from SO_SalesOrderHeader, AR_Customer and AR_CustomerSalesHistory. This way we can tell which customers to take off or put back on the mailing list. The problem is that some of the periods repeat and is doubling the money. Does anyone know of a easy way to only report it once?
Re: FiscalYear and FiscalPeri od repeating sometimes
[ Edited ]
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-10-2012 01:00 PM - last edited on 01-10-2012 01:01 PM
What fields do you think you need from SO_SalesOrderHeader for this report? I expect that that could be your problem because it is an invoice based report whereas AR_CustomerSalesHistory is a Customer summary report. If you've linked the SO_SalesOrderHeader table by division and customer number then you would get duplicate periods - one duplicate for each customer invoice.
Re: FiscalYear and FiscalPeri od repeating sometimes
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-11-2012 05:48 AM
The reason for the SO_SalesOrderHeader is so I can get any current standard or backorders. I have to see if the customer has done over 500 dollars with us for the last 6 months. If they have we send them a catalog.
I have 24 of these formulas so I can retrieve the last two years of the customer history. 01 changes and the year changes on each formula. Then I have a formula that total these field for the 6 months.
if {AR_CustomerSalesHistory.FiscalPeriod} = "01" and
ToNumber({AR_CustomerSalesHistory.FiscalYear})=(Ye
{AR_CustomerSalesHistory.DollarsSold}
else 0
Thanks
Mark
Re: FiscalYear and FiscalPeri od repeating sometimes
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-16-2012 07:30 AM
Re: FiscalYear and FiscalPeri od repeating sometimes
[ Edited ]
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-16-2012 08:11 AM - last edited on 01-16-2012 08:12 AM
You definitely have to remove the SO tables from the main report as Mary suggests - sub reports are one solution. I handle this type of report by linking to the MAS data through MS Access. Note that uses do not need to have MS Access to run the resulting report as the Jet database drivers are included with Windows.
In MS Access you can create a Union query that will combine the linked SO and AR history tables into a single view with common columns. I also add a column for document type: S for sales order, I for invoice. No data is actually held in MS Access and the report is quite fast. The bonus is that the report is simple. You change the report to just printing off of AR History and then use the Set Location command to direct the report to the union query in MS Access.


