on 05-16-2006 10:52 AM
Dear BW mates,
I have two Key Figures <b>stock</b> and <b>Prevous 12 week Stock</b>.
I want to calculate <b>Excee stock</b> from these with the following condition.
If <b>Prevous 12 week Stock</b>is less than <b>stock</b>then substract <b>Prevous 12 week Stock</b>from the <b>stock</b>. Thease substracted value is the <b>Excee stock</b>.
Thanks,
SB
Hi,
When you try to write formula, on the wizard itself click on the question mark(?) and you will get the help with example how to use the IF and ELSE. Also ELSE IF statements. If any statement is TRUE then it returns 1 otherwise it returns 0.
This help doc is really very good i would suggest to refer this.
Regards,
Tapan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Reddy,
Where do you use the formula? is this in BeX, update rule or transfer rule?
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 Reddy,
Your formula is not complete..what happens if Stock = Prv 12 week stock, or stock > 12 wwek stock?
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Reddy,
I presume if Prevous 12 week Stock > stock, Excee stock would have the value of stock, here the formula:
(Prevous 12 week Stock < stock)* Prevous 12 week Stock - stock * stock
Hope it helps.
Cheers,
CK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi CK,
Thanks for your reply.
In Excess stock I have to feed the substracted value that is my requirement. I have to do in go.
If(Pre.12 week Sales < Stock)then result should be (Stock-Prev.12 weeks sale).
In Exess stock I should see this substracted value.
I am sorry if I say Previous 12 weeks stock in my previous posting.
Thanks,
SB
hi,
try this:
first create a fromula leats say
a = stock - Prv 12 weeks sale.
now go for one more formula
Excess stock = (Pre.12 week Sales < Stock) * a.
(You just provide this formula as it is in formula window)
thats it..
but excess stock would be 0 for other two conditions.
please hide fromula 'a'.
thnaks
Message was edited by: Murali
Hi Reddy,
Create a formula 'a' as i said first or you can use
(Stock-Prev. 12 week sale ) directly in Excess Stock
formula.
<b>Excess stock = ( Stock >Pre.12 week Sales )*(Stock-Prev. 12 week sale )</b> .
Formula works like this:
if Stock>Prev 12 weeks sales,
Excess Stock = 1 * (stock - Prv 12 weeks sale) = stock - Prv 12 weeks sale
if Stock is not greater than prev 12 week sale,
Excess Stock = 0 * (Stock-Prev. 12 week sale ) = 0.
have you got it?
i assume Stock and Prev 12 week sale Keyfigures are of same units.
thanks
Message was edited by: Murali
Message was edited by: Murali
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.