troubleshooting Question

Crystal reports select all sales from a current month prior year

Avatar of -Darvin-
-Darvin-Flag for United States of America asked on
Crystal ReportsDatabasesDB Reporting Tools
5 Comments1 Solution176 ViewsLast Modified:
I have a report that I'm developing for our sales department.  The goal is to get the total sales (by invoiced $) from the same month for the previous year and then use that number plus a percentage as a new goal listed for the current year and current month to date (report runs daily).  I have this mostly working and I'm using a sub report to target the previous year / month's sales.  The problem is in the selection criteria for the sub report.  It's only capturing the sales MTD (previous year) and instead of the full month.

This is what I am using in the report selection:
{ARTABLE.INVOICE_DATE} in date(year(currentdate)-1,12,1) to dateadd("yyyy",-1,currentdate)

How can I modify the selection criteria to report all sales for the current month (previous year).  I'm close just haven't been able to get through.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros