cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement "if not null then" in webi report (SAP BO 4.2 SP02)

richard_reeves
Participant
0 Kudos

Hello Experts,

Please advice on, How to implement

If parameter a is not null then "parameter is not null" in variable.

For example, In below statement, if the parameter 'Enter 4:' is not null along with these two condition then "G2"

=If ( [Rank] =3 Or [Rank] =4) And ISNULL(UserResponse("Enter 4:")) Then "G2"

Thanks in advance,
R

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member198519
Active Contributor
0 Kudos

Try a NOT() like this:

=If ( ([Rank] =3 Or [Rank] =4) And ISNULL(UserResponse("Enter 4:")) Then "G2"

elseif(([Rank] =3 Or [Rank] =4) And NOT(ISNULL(UserResponse("Enter 4:")))) then "Enter 4 is not null" else "Default value"

richard_reeves
Participant
0 Kudos

Hello Kuldeep,

In my case if UserResponse("Enter 4:") is not null then G2-- can you please advice.

R

former_member198519
Active Contributor
0 Kudos

You can use the function IsPromptAnswered() to find out if your prompt is null or not.

Try this:

=IsPromptAnswered("Enter 4:") then "promp Answered" else [G2]