cancel
Showing results for 
Search instead for 
Did you mean: 

Calculaction Correction in BW Report

Former Member
0 Kudos

Hi Experts

How can i achieve the following calculaction in BW Reports

Col-ACol-BCol-c (A-B)

Row1--


10080---20

Row2--


200100--100

Row3--


200400--200

Row4--


300300--0

-


Total----800---880-320--

Calculactions:

Col C = needs to be always positive (Col A - Col B)

Total for Col C = Sum of all values in Col C

Please advise how to perform this calculaction

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try this,

Create a Calculated Keyfiegure C = A-B and it will give the difference of A and B.

Then try using Absolute function : ABS(C) : all the values of C will be positive.

But for the Total valuse of C : As far as i know by default the absolute function works only as display purpose while calculating the total it will consider the actual values.

I had the same problem in BW 3.0 but dint try in BI 7.0

In BI 7.0 ,create a one CKY Keyfigure at run time and use the excel funtionality to get this.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can use ABS funtion to eliminate the negative values which is available in Mathematical functions in Formula builder at Query.

But for Totals it will calculate the whole column.

Reg

Pra

former_member208595
Active Participant
0 Kudos

Hi,

You are having two KF1 & KF2.

Create a formula based on these two KF, KF2-KF1 & in the properties tab->Display-> select positive sign only.