on 11-06-2017 11:56 AM
Hi Experts,
I am having a requirement for rounding values.
In the data basis we have value as "10600000.00". requirement is to apply "input scaling factor" and show without decimal values. which should result in showing value in Bex report as "11".
to Achieve i have created 2 CKF, called 1CKF & 2CKF
1CKF formula "Period Value GC / 1,000,000"
2nd will use the following formula
( FRAC ( ‘1CKF’ ) < 0.5 ) * FLOOR ( ‘1CKF’ ) + ( FRAC ( ‘1CKF’) >= 0.5 ) * CEIL (‘1CKF’)
This is working fine for Positive values like 10600000.00.. showing as 11
However, its not working for the Negative values like -10400000 .. report showing as 11. instead of 10.
Hope i am clear about in detailing my query. Please help.
Thanks
Kamal Kishore Gajula
Hi,use
abs(CKF1) in stead of CKF1 and use new result in new calc kf:
(CKF1<0)*-1*new result + (CKF1>0)*new result
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.
Hi,
There is no issue with your Bex Calculations.
Mathematically its correct to show Floor of -10.4 is -11 & Ceil is -10.Because -11 is smaller than -10.
How to prove ?
**Just try in excel as below.
Still not convinced...then try in Bex just show Period Value GC with scaling factor 1,000,000 as another column(KF).
Thanks,
Raju
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.