I am trying to produce a report on the top 20% of our customers for the past 12 months, based on our SALES table (linked to our CUST table via CUSTNUM field). I want to get a count and total $ amount spent, but when I run the report it calculates these totals for the *entire* customer database (all sales for the past 12 months).
The way that I've created the report is to group the sales by customer number, show total amount spent for each customer, and then only show the top 20% based on this total. The printed report shows up just fine, but when I try to present a count of these customers, or the dollar amount spent, it calculates it for the entire 12 month sales history, not just the top 20%.
Any suggestions? What more information do I need to supply? I am running CR 10.0 Developer edition.
The way that I've created the report is to group the sales by customer number, show total amount spent for each customer, and then only show the top 20% based on this total. The printed report shows up just fine, but when I try to present a count of these customers, or the dollar amount spent, it calculates it for the entire 12 month sales history, not just the top 20%.
Any suggestions? What more information do I need to supply? I am running CR 10.0 Developer edition.