COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: Esosa on 03 Jan 2020 09:41:04 AM

Title: Grand Total from subtotals
Post by: Esosa on 03 Jan 2020 09:41:04 AM
How can I get a Grand total variable or expression, with the subtotal results from 2 different pages. The Total () function does not really work for me. I am guessing the first step would be to put both pages in a page set.

Title: Re: Grand Total from subtotals
Post by: CognosPaul on 03 Jan 2020 10:53:51 AM
Are the values coming from two separate queries? Is this dimensional or relational?
Title: Re: Grand Total from subtotals
Post by: Esosa on 03 Jan 2020 12:01:18 PM
Yes, two different queries due to conflicting filters. Relational.
Title: Re: Grand Total from subtotals
Post by: CognosPaul on 03 Jan 2020 01:34:57 PM
Make a singleton, put the subtotal in the properties of the singleton. Nest another singleton into the first one. Put the subtotal into the properties. Using a layout expression do [Query1].[Subtotal] + [Query2].[Subtotal].