COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: KANUL on 05 Aug 2011 10:12:47 AM

Title: Urgent Help In Calculated Column
Post by: KANUL on 05 Aug 2011 10:12:47 AM
Hi ,

I am facing a problem in calculation . I have a query Subject with columns :-Year , Month , Division , Actual , Budget & calculating Actual/Budget  as Opex % in FM . I have made Qpex % as Calculated.

When I create a list in reports studio & Drag Year , Month & Opex % , It is giving me wrong results. It is aggregating the Opex value which is wrong. It should calculate the Opex % with the dimensions present in the list.

So the opex % for 1st row should be 1010000/1151000 =.88

Year    Month  Actual          Budget       Opex %
2010    1        1,010,000    1,151,000   2.52813853
2010    2        393,000       418,000      2.70631229
2010    3        78,456         89,459        2.47813299

Title: Re: Urgent Help In Calculated Column
Post by: PRIT AMRIT on 07 Aug 2011 05:33:35 AM
Instead of 'Opex' item from FM, create a Data Item with the below expression and use the same in your List Report

Total(Actual)/Total(Budget) and make the aggregated properties as 'Calculated'.

Hope should work for you

Thanks
Title: Re: Urgent Help In Calculated Column
Post by: leahmarie on 09 Aug 2011 10:22:39 AM
You can also change the properties to be before or after aggregation and you might look into changing the solve order.