Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Business Objects 5.1.6 IF Statement Help

Status
Not open for further replies.

Leohere

Technical User
May 4, 2005
9
0
0
US
Hi everyone. I'm a new so sorry if this is an easy question. I have sales report where I have a State and Country column. If the State column says PR or VI I need the Country column to say Puerto Rico or Virgin Islands instead of showing what it currently shows which is USA.

I entered the formula = If (<Account Bill-to State><>"PR") Then <Account Bill-to Country Name>Else "PUERTO RICO" which give me Puerto Rico but I can't figure out how to get in the part for the VI.

Any ideas ?
 
This is kinda clunky, but it might just work:

If (<Account Bill-to State><>"PR")
Then
If (<Account Bill-to State><>"VI")
Then <Account Bill-to Country Name>
Else "VIRGIN ISLANDS"
Else "PUERTO RICO"

Good Luck!
[pipe]

 
Awesome it worked ! All hail CoffeeMan :)
 
For readability you might prefer:

If (<Account Bill-to State> = "PR") Then
"PUERTO RICO"
else
If (<Account Bill-to State> = "VI") then
"VIRGIN ISLANDS"
else
<Account Bill-to Country Name>

It appears that you're asking BO questions in a Crystal forum, an increasing mistake since BO acquired them, however there is a true BO forum here:

forum393

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top