COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: thedon_1 on 24 Feb 2012 09:56:15 AM

Title: Runing difference on a Crosstab with 3 measures
Post by: thedon_1 on 24 Feb 2012 09:56:15 AM
I have the following crosstab

                                    2011       2012     Difference
UK          Measure 1           10          20         
             Measure 2           30          30
             Measure 3           33%        66%


America  Measure 1            10          20         
            Measure 2            100         100
            Measure 3            10%        20%

I need a difference column which from what I've read, can be acheived using a running difference, unforunately, it only works for one measure.

Any ideas how I can get that difference column to work either using the running difference function in a data item or otherwise?


Thanks
Title: Re: Runing difference on a Crosstab with 3 measures
Post by: Grim on 24 Feb 2012 10:00:23 AM
Quote from: thedon_1 on 24 Feb 2012 09:56:15 AM
I have the following crosstab

                 2011       2012     Difference
UK        Measure 1
           Measure 2


America

Sweet! I can haz xtab too?  :P
Title: Re: Runing difference on a Crosstab with 3 measures
Post by: thedon_1 on 24 Feb 2012 10:11:15 AM
Sorry, accidentaly posted before finishing my message.
Title: Re: Runing difference on a Crosstab with 3 measures
Post by: Grim on 24 Feb 2012 01:17:28 PM
Quote from: thedon_1 on 24 Feb 2012 10:11:15 AM
Sorry, accidentaly posted before finishing my message.

haha, figured as much.  ;)

I'm no report design expert and you mentioned this, but maybe these will help:
http://www-01.ibm.com/support/docview.wss?uid=swg21339373
http://www-01.ibm.com/support/docview.wss?uid=swg21342234

Title: Re: Runing difference on a Crosstab with 3 measures
Post by: barrysaab on 25 Feb 2012 12:58:21 AM
use expressions below for EX:

running-total([quantity] for [grouping1], [grouping2])

running-total([sales] for [salesman], [region])

Thanks
Title: Re: Runing difference on a Crosstab with 3 measures
Post by: thedon_1 on 27 Feb 2012 04:56:12 AM
That doesn't work. Due to me having 3 measures, I don't think writring a running difference or running total function will work as that requires me to specify one measure.
Title: Re: Runing difference on a Crosstab with 3 measures
Post by: thedon_1 on 01 May 2012 04:53:38 AM
Any other ideas?
Title: Re: Runing difference on a Crosstab with 3 measures
Post by: thedon_1 on 17 Jul 2012 06:16:44 AM
Anybody?

This has come up again and i'm still searching for a solution.