on 09-09-2008 5:06 PM
Hi
I am busy writing a query in Bex and have come upon a problem. I start with 3 key figures - A, B and C. I then have 2 calculated key figures Z and Y.
CKFZ = KFA * KFB. (Result Calculation is set as total)
CKFY = KFC / CKFZ
The result set will look something like this:
CalMonth KFA KFB KFC CKFZ CKFY
01.2008 10000 0.80 6000 8000 0.75
02.2008 16000 0.75 4000 12000 0.33
Result 26000 1.55 10000 20000 0.08
What I want to achieve is for CKF Y result to be 0.50 (KF C Result / CKF Z). What the result is doing is KF C Result / (KF A Result * KF B Result).
Any help or ideas will be greatly appreciated.
Vic
Edited by: Victor Elms on Sep 9, 2008 6:07 PM
Hi All
Thanx for all the responses. Unfortunately, none of the suggestions have had the desired effect.
When I use the exception aggregation, the result is either 1.08 or 0.25, depending on which characteristic I am using.
When I use the first value, the result is 0.75.
And, as there are no collisions, the "Result from this formula"/ "Result from competing formula" does not appear on the formula's properties.
Whichever way I am trying, the formula either wants to add up the results of individual lines or break the formula down to it's lowest components, i.e. either 0.75 + 0.33 or (6000 + 4000) / ((10000 + 16000) * (0.80 + 0.75)) which results in either 1.08 or 0.25 (I noticed I made an error on the example I gave).
The result that I require would be (6000 + 4000) / (8000 + 12000) giving me 0.50.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In the CKF properties you will find option of formula collision -> "Result from this formula"/ "Result from competing formula" , and it should work as per expectation .
Hope that helps.
Regards
Mr Kapadia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create a formula which will look like SUMCT(KFC) / SUMCT(CKFZ) and in the calculations tab you can keep Calculate result as First Value.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We are on 2004S / BI7
I have tried to use aggregation, but the result then comes out to 1.08.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
for CKF Y you need to do exception aggregation to calculate individual results and add them up.
what version r u on?
Edited by: Raj Coppar on Sep 9, 2008 12:19 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.