If you have both Record and group selection, does Crystal first select the records and then among those records, only select those that match the group selection criteria or the other way around?
Also, if I want a Total N for all records that meet the record selection criteria, without regard to the group selection criteria, would I need a sub report and how can I pass that parameter to compute percentages?
The record selection formula selects the set of records for the report, and then the group select selects from among that set those records or groups that meet the group selection criteria. You can change the group criteria without the report refreshing (as long as the new criteria are already represented in the original record set), because the non-group selected records still exist in the report.
For calculations involving only the group-selected records, for most calculations you would need to use running totals, since the non-group selected records will still contribute to summaries like "count", "sum", etc. That means that you can use those summaries without needing a subreport, if you want to ignore the group selection criteria. If you wanted to do a percentage of a subtotal amount in a group meeting group selection criteria to the total records (including non-group selected), you could do a formula:
A Group selection will always occur, as will the record selection.
However since most people don't design a report to pass group selection criteria via SQL, the record selection will most likely occur on the server side, and the group on the report, but it still depends on design.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.