cancel
Showing results for 
Search instead for 
Did you mean: 

Bex Report result Calculation (derived from other key figures result)

Former Member
0 Kudos

Hi Expert,

   I have requirement in which I have to do calculation on result row in Bex Report. Result of one key figure should display the division result coming from other two key figure

Eg:

Plant          Material QTYUnit ValueValue
L1P001123455645502354234
P002123455663452452
P0031234556234332452
P004123455656165545
P00512345562522565465
P00612345564565455546
Result 7176328.9712360694
L2P0091234556500700500000
Result 5001000500000
Orverall 7676372.682860694

As can see in the middle column (Unit Value)

L1

Result  328.971 = 2360694/7176

L2 

Result 1000  = 500000/500

Overall

Result     372.68 =2860694/7676

Like that value I need to display in bex report result row . format will be same. Extra column not needed.


I have tried many ways but I am unable to do.

Please some one help me out .... Or there some note .. regarding this,

Thanks in advance.

Regards,

Manoj Kumar

Accepted Solutions (1)

Accepted Solutions (1)

former_member186053
Active Contributor
0 Kudos

Hi Manoj,

Just an advice, give a try with SUMCT/SUMGT data functions. Create a formual for each KF with this data function, use it in a CKF/Formula to get final result.

Regards,

Vengal.

Former Member
0 Kudos

Hi Vengal,


Thanks for quick response,  To  use SUMCT/SUMGT  I have to create formula that will create an extra column in query out put. But user don't want this he want this calculation should be at result level. I must be displayed on result.

I want to revised my question.

Here ,

Value =  Qty * Unit value


And at the result  Unit value =  Value (result)/ Qty (Result)


Revised:

Plant MaterialQTYUnit ValueValue
L1P001123455645502200
P002123455663452070
P0031234556234339959
P0041234556561659240
P005123455625225651424930
P006123455645654552077075
Result 7176491.2867893525474
L2P0091234556500700350000
Result 500700350000
Orverall 7676504.881973875474



L1

Result  491.286789 = 3525474/7176

L2

Result 700  = 350000/500

Overall

Result     504.88197 =3875474/7676


Is there Sap note that says that it is not possible at result row ?


Thanks and regards,

Manoj Kumar.

Former Member
0 Kudos

Hi Vengal and Naiduz ,


Thank you for your help.

I got the solution.

I used Leaf (x) function to do that.


(Leaf(QTY) == 1) * Unit Value + (Leaf(QTY) == 0) *(Value/ NODIM(QTY)) .

Regards,

Manoj Kumar.

former_member186053
Active Contributor
0 Kudos

Hi Manoj,

Good to hear that your issue is resolved and Thanks for posting the answer here.

Regards,

Vengal.

Answers (1)

Answers (1)

former_member217770
Participant
0 Kudos

Use formula   result = value/QTY in  using bex formuals.