Connect, learn, and share with thousands of IBM Cognos Analytics users!
#Product#Analytics#CognosAnalytics#Analyticstools#TechXchange Partner#TechXchange Session#TechXchange Presenter#AI
Hi All,We are using IBM Cognos Analytics with Watson (11.2.0).I have design this one list table where we group the list table by internal_facility_name and get the total balance for each facility. Is there a way to move the group by subtotal above the data rows?Any help is deeply appreciated.
Hi Mohamad,1. select the list and go to more options ...2. Insert list headers using this option3. select the overall list header that was added4. again go to the same more options ...5. Insert desired list rows cell above as required(you can delete the list header).6. unlock the report and add those totals to the newly added rows.Thanks!!
The first thing I like to do is change the visual aids to uncheck Show Repeating:It only affects the development environment, but I find it makes it significantly easier to see.With the list selected click on the three dot menu->Headers & footers->List headers & footers:Set it to look like this:It will look like this:Click on the subtotal row and then the Split Cells buttonYou'll get this:ctrl click on internal_facility_name and sub_product_name and then Merge CellsNext you'll want to drag the measures into the sub-total cells, but in order to do that you'll need to unlock the report:Now you can ctrl-drag the Total(previous_balance) from the overall total row or drag them in from the query.This should give you exactly the result you're looking for.
Logan Whitaker
PMO, HEB Supply Chain Planning & Operations
o: 210.938.6043 m: 210.429.3181
e: whitaker.logan@heb.com
Hi Paul,Thank you for the detail instructions. Your instructions make it look so easy :)
------------------------------Milan Milovanovic------------------------------
------------------------------Mohamad Aiman Arif Mohamat Saat------------------------------Original Message:Sent: Thu May 11, 2023 01:39 AMFrom: Paul MendelsonSubject: Move Group By Subtotal Above Details Rows in Report - List Table
------------------------------Paul Mendelson
This is how to solve the same problem, but for a crosstabs:1) We start with a crosstab on image.2) Then, from a toolbox, we add "Crosstab space (with fact cells)" on the top of a crosstab.3) Next, we place column that defines our subtotals (column "year") on the right side of that "Crosstab space".4) On this image, we can see our result. Now we have subtotals.5) If we select column "Year", we can click on Σ button in a toolbar, to add grand total bellow subtotals.6) Final step is to delete original subtotals and grand total, because we don't need them any more.
Thank you so much for the instructions. Is it possible to hide this empty area (the data detail)? When I run the report (2nd screenshot), I got those blank lines. All I wanted to remain on the report (and when exporting) is the green highlight one. Thanks. I'm a newbie to Cognos.
------------------------------Martie Lysas------------------------------
Hi Martie, Without knowing the report details I assume you could move the inner cell content to the white lines (unlock first), adjust the grouping of the list and remove the green lines. But if you need it like that for some reason you could set the inner borders in the cells' properties to 0 and in HTML output they are gone.
------------------------------Martie Lysas------------------------------Original Message:Sent: Thu May 11, 2023 01:39 AMFrom: Paul MendelsonSubject: Move Group By Subtotal Above Details Rows in Report - List Table