COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: sean on 06 Nov 2014 12:21:39 AM

Title: Cognos 10 Row Calculation vs Column Calculation
Post by: sean on 06 Nov 2014 12:21:39 AM
Hi, I have a cross tab gross profit report, it looks like the below:

                                       MTD Actual     MTD Budget    MTD Variance

Gross Sales (A)                   100                  80                  20
Cost of Good Sold (B)           70                  60                  10
GP= A - B                              30                  20                  10
GP% = GP/A                         30%               25%              50% (error)

The problem is GP% in 'MTD Variance' column is calculated as 10/20 = 50% (GP/Gross Sales) instead of 30% - 25%. Basically I need column calculation (MTD Variance) to overwrite row calculation (GP%). How can I achieve this?

Many thanks
Title: Re: Cognos 10 Row Calculation vs Column Calculation
Post by: MFGF on 06 Nov 2014 06:43:39 AM
Quote from: Sean on 06 Nov 2014 12:21:39 AM
Hi, I have a cross tab gross profit report, it looks like the below:

                                       MTD Actual     MTD Budget    MTD Variance

Gross Sales (A)                   100                  80                  20
Cost of Good Sold (B)           70                  60                  10
GP= A - B                              30                  20                  10
GP% = GP/A                         30%               25%              50% (error)

The problem is GP% in 'MTD Variance' column is calculated as 10/20 = 50% (GP/Gross Sales) instead of 30% - 25%. Basically I need column calculation (MTD Variance) to overwrite row calculation (GP%). How can I achieve this?

Many thanks

Try selecting the GP% calculation and setting its Solve Order property to 2

Cheers!

MF.
Title: Re: Cognos 10 Row Calculation vs Column Calculation
Post by: sean on 06 Nov 2014 04:37:41 PM
Thank you very much Champion.

Sean