Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only
  • 1.  add the last row to the total

    Posted Tue January 18, 2022 03:20 PM
    Hello Cognos experts,

    I have a requirement where I need to repeat my last rows for measures as total. See the attached example. Any ideas you have is greatly appreciated.


    ------------------------------
    Arun Reddy
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: add the last row to the total

    Posted Wed January 19, 2022 02:03 AM
    Hi Arun,
    did you try to use footers in the list? You can create multiple ones.

    You can then select the cell and split it viaAfterwards you can drag in query calculations into the list cells when you unlock page objects:


    ------------------------------
    Robert Dostal
    Team Leader BI
    GEMÜ
    Ingelfingen
    ------------------------------



  • 3.  RE: add the last row to the total

    Posted Wed January 19, 2022 05:32 AM
    Hi Robert, Do you also know a best practise for crosstabs to display row and column "foreign" values? 
    E.g. columns are product types, rows are months and key figure is number. Only in the footer I'd like to display another key figure like amount. 
    In the footer cell I can use the property "define content" and unlock the cell to drop the different key figure. Unlike in lists this doesn't work in our crosstabs (source is a data module). Only if I insert the query item additionally as a "crosstab node member" I get the value displayed also in the footer. Do you know a different/better way without the need to use the data item as a "crosstab node member"?

    ------------------------------
    Philipp Hornung
    ------------------------------



  • 4.  RE: add the last row to the total

    Posted Wed January 19, 2022 06:09 AM

    Hi Philipp,

    I'm aware of this "missing feature" of Cognos. We also have to build complex costructs in crosstabs to show additional values in single cells. As we work with dimensional data it's sometimes good to use a Singleton in an unlocked cell. But this works with a few concepts only.

    In relational data sources it depends on how the report should look like. I did it in some reports by customizing the member cell properties so they won't appear in the rendered page. You can erase the class as an example.
    Before:

    After:
    This is only a way if you'd like to swap the measure for the whole row/column. So far I don't know any flexible solution for crosstabs either as "define content" lets you only add data from query items which are already used in the corresponding tuple.



    ------------------------------
    Robert Dostal
    Team Leader BI
    GEMÜ
    Ingelfingen
    ------------------------------



  • 5.  RE: add the last row to the total

    Posted Wed January 19, 2022 06:19 AM
    Hi Philipp,

    second hint I forgot: you have to add the measure which should overwrite the already existing value in the node properties under Data/Properties - if you have used a crosstab node member  instead of a crosstab spacer.


    ------------------------------
    Robert Dostal
    Team Leader BI
    GEMÜ
    Ingelfingen
    ------------------------------



  • 6.  RE: add the last row to the total

    Posted Wed January 19, 2022 06:47 AM
    Hi Robert, Thanks a lot! 
    @ hint 1 ("hide" node member): ​I'm also using this a lot but this is looking ugly in Excel sometimes 
    @ hint 2 (property "properties"): I didn't ​get this working in crosstabs (unlike in lists) but I'll retry - you obviously succeeded 
    And Singleton: Yes, if it is a quite static case this could be an option (I forgot to mention to have the month footer per year in my example :-)) 
    Kind regards, 
    Philipp

    ------------------------------
    Philipp Hornung
    ------------------------------



  • 7.  RE: add the last row to the total

    Posted Wed January 19, 2022 06:56 AM

    Hi Philipp,

    yes indeed: Excel is always the next more time-consuming step regarding layouting.

    One of the advantages of dimensional data is to use "currentMember()" together with a "completeTuple()" expression. We use this a lot to swap values in crosstabs. In some rare occasions we even use a regular table where in each cell is a singleton referencing one single value from the query. But I always try to avoid this setup.

     



    ------------------------------
    Robert Dostal
    Team Leader BI
    GEMÜ
    Ingelfingen
    ------------------------------