The Rollup Aggregate Summaries are not part of the SQL executed, but performed by the Cognos server on the returned resultset of the SQL. The nature of xml/html would AFAIK dictate that you need to present the details first before showing the rollup total.
As for displaying rollup total outside the same object (list , for instance) then a second query would be a solution.
I used Cognos to create the summary footers. I then created a header from a group. I then clicked on the header, went to structure and "Insert List Row Columns" I then dragged the query items from the footer into my newly created header. Then it was just a matter of applying formatting and giving my new header the same Class as the footer.
You don't need to insert a list row. I can't remember why but I think that might bite you later. We display our summaries at the tops all the time. Here are the steps we use:
1. display the group or list headers.
2. UNLOCK the report.
3. drag the items from the footers to the headers.
4. RELOCK the report.
5. UNdisplay the footers (either delete them or deselect them in the header/footer area).
6. format all the header cells.
It's the formatting that's annoying, especially if you've done all your formatting then later someone asks you to insert a new column of data. In that case you do your summary on the new column and have to unlock and move the data then reformat the new header cell and remove all the footers again.
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.