0
Former Member
Jul 02, 2007 at 06:35 AM

# Formula Problem in BEx

20 Views

Dear All,

I am using BEx Query Designer to make a query.I view the report using browser. I have 2 keyfigure fields "price" and "forecast quantity". I have to arrive at "forecast Value" = price * forecast quantity using formula in Query designer. Although for each material this proves correct in report material wise. If I see the report customer-wise a customer who has bought 10 materials first the prices are added up andthen the forecast quantity is added up and then the sums are multiplied to get forecast value which is wrong.

Illustration :

For Customer 1 :

Quantity Price Value(Quantity * price)

Material1 | 2 | 10 | 20

Material2 | 3 | 10 | 30

Material3 | 5 | 10 | 50

Material4 | 7 | 10 | 70

Total | 17 | 40 | 170 = Correct value

But if I see report customer wise I get the value as 17 * 40 = 680 which is wrong.

Is there any way when I see an aggregation of materials the calculation in formula column first multiplies individual rows and then add the rows to give me final value?

Regards,

Ratish

ratish_prem@yahoo.com