cancel
Showing results for 
Search instead for 
Did you mean: 

Help on BEx cells definition

Former Member
0 Kudos

Hi Experts

I need advice in a certain type of calculation in BEX query . I need to achieve a formula USDN

USDN = (Avg rate OIL - (%N OIL * USDN AMMONIA )) / %P OIL

I need to take values from two rows (Eg., below from OIL and AMMONIA) to populate the value USDN for OIL

I have defined two structures in BEX and created cells . The problem is that when I define this formula in cell for Product OIL which has only rates for Publication=GM , it is not picking up the USDN Ammonia value which is calculated for Ammonia obviously because AMMONIA does not have values for GM publication .

I want to calculate if product=  oil and publication =GM then
USD/N for OIL= AVG (USD/N for AMMONIA) for the given given calendr day . Is this possible using cells or is any replacement path variable ?

I use analysis for office to show my query output

Product

PublicationFiscal year/periodCalendar dayAvg rate%N%PUSDN
OILFER001.201106.01.2011
OILFER001.201113.01.2011
OILFW001.201106.01.2011
OILFW001.201113.01.2011
OILBMF001.201106.01.2011
OILBMF001.201113.01.2011
OILGM001.201106.01.20115670,120,52
OILGM001.201113.01.20115680,120,52
OILTM001.201106.01.2011
OILTM001.201113.01.2011
AMMONIAFER001.201106.01.20114280,820,00521
AMMONIAFER001.201113.01.20114500,820,00549
AMMONIAFW001.201106.01.20114280,820,00521
AMMONIAFW001.201113.01.20114450,820,00543
AMMONIABMF001.201106.01.20114280,820,00521
AMMONIABMF001.201113.01.20114380,820,00534
AMMONIAGM001.201106.01.2011
AMMONIAGM001.201113.01.2011
AMMONIATM001.201106.01.20114280,820,00521
AMMONIATM001.201113.01.20114280,820,00521

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I found the solution to my issue. thank You

former_member586947
Contributor
0 Kudos

Hi Jillu,

    Why have you gone for cell definition? Can you elaborate your required output a bit more detail?

Report should display only Oil and Ammonia products data?

Regards,

Satya

Former Member
0 Kudos

Attached is the structure what I have

I have to calculate  the below  formula N DEDUCTION  for lets say 10 products . Product names don’t change.

N DEDUCTION for Oil = (Avg rate OIL –( %N OIL * USDN AMMONIA )) / %P OIL

N DEDUCTION for CRUDE OIL = (Avg rate CRUDE OIL –( %N CRUDE OIL * USDN AMMONIA )) / %P CRUDE OIL

Similarly for all products in rows.

USDN is nothing but  Average rate / %N  and makes sense to be calculated only for AMMONIA value

SO for all products we multiply the %N of the product with USDN AMMONIA value

I created cells thinking that I can pick up USDN AMMONIA value and calculate the final formula for each product.

Now the problem that I explained in my original message is that everything works fine except for product OIL which has values only for Publication = GM and USDN AMMONIA is not available at GM publication.

This calculation was done in excel earlier which I am trying to bring through BEx .

former_member586947
Contributor
0 Kudos

Hi Jillu,

    I didn't understand the requirement completely even now also.

How you achieved the calculation in excel? 

Regards,

Satya

Former Member
0 Kudos

In excel, the users do a manual calculation with formula. They have the entire database in excel and the update values after each fiscal year period. So I m trying to automate one of many formula in BEX