Jump to content
We've recently updated our Privacy Statement, available here ×

how to use "OR" or "AND" functions in calculated fields of jasper domain designer?


raja.shekar

Recommended Posts

I need to create a calculated field that checks the two condition in "IF" statement of domain designer.

Example: field1='RAJ'

         field2='RAM'

         

so i need to create a calculated field f3 that should check field1 and field2 .

that is           if(field1=='RAJ' or field2='RAM',field1,'')

when i tried to use above statement i am getting the following error "An erorr occured while performing the previous request"

Please help me on this.

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

This worked fine for me with the following formula:

 

IF(("Subcategory" == 'Aspirin') or ("Product Name" == 'Plato Grape Jam'), 'Painkiller', '')

 

It seems in your case you are not "quoting" fields correctly and you are missing the "FalseCalc" part of the formula (ie after the last comma you have)

 

if("field1"=='RAJ' or "field2"='RAM',"field1",'something')

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...