If you group, you can get totals for each week along with the detail records.
If you want all of the detail lines, and then a set of weekly totals, you could do it using running totals, but that would be a lot of work. Better to put a subreport in the report footer and have the details suppressed, with just the totals. Depending on your data, this might be best done by a crosstab.
Madawc Williams (East Anglia, UK) Windows XP & Crystal 10
It sounds like you want a summary at the end of the report. I would insert a crosstab in the report footer. Use {table.date} as the row field and while it is highlighted->group options->select print on change of week. Then add sum of duration as the summary field.
Hello
The cross table is working great for the durations but what i also want is percentages too. I want subtitled duration grouped by week - and as a percentage of the total duration
So i have
Date(by week) Subtitled Duration %age
Total duration 100%
The only option I have though is subtitled duration as a percentage of itself.
If you are using a higher version of CR, like CR XI, you can create a formula:
{table.duration} % sum({table.duration})
Insert this as a summary field, choosing sum as the summary. Then in preview mode, select the inner and total cells and click on the % icon in the toolbar.
I've only got 9 - and I need to embed the reports into an application that only supports 9 so wouldn't be able to upgrade unfortunately.
Sorry LB - thanks for your patience.
Tim
I guess I should assume it didn't work. Again, I'm not sure how SQL expressions work in 9.0, but if you have the option of using one, try creating the following {%sumall}:
(select sum(table.`duration`) from table)
If you have selection criteria, they would need to be built into the SQL expression.
Then create a formula {@percent}:
{table.duration} % {%sumall}
Add this as a summary field, using sum as the summary.
If the SQL expression doesn't work correctly, you could also return the sum of duration by using "Add Command" as your datasource.
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.