reporting services - SSRS expression getting an error because it's expecting a ')' -


i have opened in notepad ++, , don't see missing paranthesis. can see @ glance placed paranthesis make script run correctly when preview ssrs report?

=iif((instr(fields!grp_name.value,"socs") > 0 or instr(fields!grp_name.value, "toc") > 0       , (iif(dateadd("yyyy",3,fields!cp_prd_end_dt.value) < fields!cp_prd_end_dt.value      , "*see co"      iif(fields!sample_month.value>0      ,"yes"      iif(fields!cp_prd_begin_dt.value < globals!executiontime      ,"no","future")))  

try this:

=iif((instr(fields!grp_name.value,"socs") > 0 or  instr(fields!grp_name.value, "toc") > 0)   , (iif(dateadd("yyyy",3,fields!cp_prd_end_dt.value) <  fields!cp_prd_end_dt.value  , "*see co"  iif(fields!sample_month.value>0  ,"yes"  iif(fields!cp_prd_begin_dt.value < globals!executiontime  ,"no","future")))) 

i think missing parenthesis @ end, if trace parentheses through. parenthesis after or statement in first line.

also consider using different code editor highlight parentheses you, emacs.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -