I've got a report that uses a manual running total to determine distinct transfers of a ticket from group to group. I need to limit the report to transfers greater than 3? Is ther a way to use a manual running total in your record selection formula?
Hi!
The only way that I can think of doing this (and it isn't ideal!) is to create a subreport.
I would do it in these steps:
1. create a subreport and put all the fields that you have in your main report inside it so that you have duplicated the report.
2. Pass the running-total total from the subreport to the main report.
3. Put the running-total total in a formula (make it a variable field)
4. Put this figure in the Main report Header.
5. Put this in the Selection criteria of the main report (ie {running_total_1} > 3 for example.
6. Link the subreports via the natural fields
7. run the report.
Before you do anything at all - back this report up so that you are working with a copy - then play around with the idea. I have had to do this for several financial reports so I know that it is possible (it is just not a very nice way of doing things!)
Shout if you need any more help.
Thanks for the input, I ended up reformatting the report to show the necessary data in Group Footers and use a subreport up top to return a shared variable containing the value I need to filter on. Then I'm just suppressing records based on that criteria.
I would tend to agree the best approach would be to have some criteria directly from the db. Unfortunately, I don't have access to write stored procs and the SQL is a bit more complicated than i could get working in a single source statemet for Crystal.
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.