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
Post a Comment