If/Then/Else Statements

Hello,

I’m a total novice to Business Objects and have only been working with this for a couple of months, but i am struggling with an IF statement for a report that i need to write…

What i need the statement to do is

IF [plan update] is less than or equal to 199 then display “Yes”
IF [plan update] is greater than or equal to 200 then display “No”
Else display “No Plan”

I can get the function to work, but instead of displaying what i want it to, it displays a “0” for <=199 and a blank cell for >=200

The statement I’ve used is:

=If([No.of days since plan eff/plan auth]<=199) Then “Y”

=If([No.of days since plan eff/plan auth]>=200) Then “N”

Else “Plan not recorded”

any ideas where i’m going wrong? :hb:

Thanks


BRSAND (BOB member since 2017-10-11)

Your syntax does not include everything required for a nested if statement and is defaulting to a 1/0 output, then not recognizing anything beyond the first line. You either need to simplify this into a straightforward if/elseif/else statement (much less confusing early in the BO learning curve):
=If [No.of days since plan eff/plan auth]<=199 Then “Y” ElseIf [No.of days since plan eff/plan auth]>=200 Then “N” Else “Plan not recorded”

Or complete the syntax for a nested if:
=If([No.of days since plan eff/plan auth]<=199;“Y”;If([No.of days since plan eff/plan auth]>=200;“N”;“Plan not recorded”))


tendernips (BOB member since 2017-07-27)

Try this:

=If([No.of days since plan eff/plan auth]<=199) Then “Y” else If ([No.of days since plan eff/plan auth]>=200) Then “N” Else “Plan not recorded”


shekar25 (BOB member since 2004-05-11)

Guys that worked a treat. Thanks for your help.

This is a steep learning curve but I think I’m getting it lol

Thanks.


BRSAND (BOB member since 2017-10-11)