Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (17.6k points)

I have written the following condition as per the some online tutorial

IF [Nationality]="England" 

   THEN "England" 

ELSEIF [Nationality]="Germany" 

   THEN "Germany" 

ELSE "Others" 

END

But continuously getting an error:

"The formula must be a boolean formula" 

What is wrong in the condition?

I tried other statements as well such as CASE and CONTAINS, but for them too I got the same error.

It should accept. 

1 Answer

0 votes
by (22.5k points)
edited by

Try with the following options:

Right Click [Nationality] Field > Click "Create..." > Calculated Field

Want to become a Tableau expert? join Tableau Training now!!

Browse Categories

...