on ‎2019 Oct 30 7:56 PM
Request clarification before answering.
1) Your formula does not catch it correctly, try this (might need some rework, but you should be able to catch my meaning)
IF(
(ISNULL("CEDUNCONSTRCONSFCST@MTHPRODLOCCUST") OR "CEDUNCONSTRCONSFCST@MTHPRODLOCCUST" = 0) AND (ISNULL("CEDUNCONSTRCONSFCSTPC@MTHPRODLOCCUST") OR "CEDUNCONSTRCONSFCSTPC@MTHPRODLOCCUST" = 0),
99999,
IF(
ABS("CEDUNCONSTRCONSFCST@MTHPRODLOCCUST" - "CEDUNCONSTRCONSFCSTPC@MTHPRODLOCCUST") / (("CEDUNCONSTRCONSFCST@MTHPRODLOCCUST" + "CEDUNCONSTRCONSFCSTPC@MTHPRODLOCCUST") / 2) > 0.5,
1, 0 )
)
2) You still did not share the VALUES of the input KF, as described in my last reply. I will not reply any more without the values 🙂
3) Can you please re-post a proper full screenshot of the config of your input KF's? The last screenshots from them looked a bit weird because in the header it stated it was the input KF, but the formula had seem to be from the target KF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rahul
you must ALWAYS catch devisions by zero in your formula, as this can always lead to issues. Not sure if that is the root cause for your case as I dont have the full picture of the values.
But you can always pull the values by creating a planning view that ONLY contains the input KF, or by using the master data workbooks and within that the planning combination view.
Before you reply, make sure that you
1) have corrected the formula
2) in case you still get an error provide a screenshot of the input values as described above
If you dont provide that, any further analysis will not be possible
Yours, Irmi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it may
You can check by log on without immediately pull the resulting kf, and only check the input
However, you beed to adjust your formula in any case, so just build in an if clause checking for sum of the input equalingbzero and setting a specific result in that case, else result is your initial formula
Than try again
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I meant the value if the input, not the configuration
You have a formula where you do not catch how to treat deviding by zero which would lead to infinite result and hence throw error
So, is in your example the sume of both input kf = 0?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i cannot see the values of your two input kr, but if both are either 0 or NULL it would fail because you do not catch devision by zero
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 17 | |
| 15 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.