What I did here was add the following calculations to precalculate the values. This is obviously not dynamic as we have no way to know if your data has 2004 or 2005 data prior to running the calculation. Or if there will be 2006 data.
I don't know of any way to place this anywhere but at the end of the crosstab due to the dynamic nature of a crosstab. The dimensional data that makes up the crosstab dimension is determined at runtime, not statically. We just query the rows in the Year column and display them in sequence.
Quantity2004
if ([Sales (query)].[Time].[Year] = '2004') then ( [Sales (query)].[Sales].[Quantity] ) else (0)
Quantity2005
if ([Sales (query)].[Time].[Year] = '2005') then ( [Sales (query)].[Sales].[Quantity] ) else (0)
Quantity 2004-2005
[Quantity2004]-[Quantity2005]
------------------------------
TREVOR COMEAU
------------------------------
Original Message:
Sent: Wed July 08, 2020 11:39 AM
From: Alexandra Miroshina
Subject: Cognos Analitics
Yes!
this is what I need!!
Also, I would like to see the information for 2006 after the column " Revenue 2004-2005", like this:
------------------------------
Alexandra Miroshina
------------------------------
Original Message:
Sent: Wed July 08, 2020 08:46 AM
From: TREVOR COMEAU
Subject: Cognos Analitics
------------------------------
TREVOR COMEAU