cancel
Showing results for 
Search instead for 
Did you mean: 

How to write a formula using Boolean Operators?

Former Member
0 Kudos

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>.

Please can one suggest me how to use boolean operaters to get this in formula.

Thanks,

SB

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Try this:

(<b>Prevous 12 week Stock</b> < <b>stock</b>) * <b>Stock</b> - (<b>Prevous 12 week Stock</b> < <b>stock</b>)* <b>Prevous 12 week Stock</b>

Best regards,

Eugene