reporting services - Looking for SSRS filter which is identical to the SQL "IN" clause -


i attempting set conditional format 1 of fields in ssrs report. basic formatting change font color. original expression in report builder:

=iif(fields!delta.value <             iif("ex1"=fields!id_name.value                 ,0.95                     ,iif("ex2"=fields!id_name.value                         ,0.988                         ,0                     )                 ) ,"red" ,"black") 

however, have on 100 different "id_name" values share common "delta" values.

i wondering if there similar in clause in sql allow me paste "id_name" values inside ('','','') format easier? this:

=iif(fields!delta.value <     iif(fields!id_name.value in ('ex1','ex2','ex3','...')         ,0.95             ,iif(fields!id_name.value in ('ex4','ex5','ex6','...')                 ,0.988                 ,0                 )                 ) ,"red" ,"black") 

i tried iif(instr() method "id_name" share similar names others have different delta values contains clause not work.

is possible? appreciate , input! thanks!!

you can you'll need wrap text values in kind of delimiter won;t appear in values check [ex1][ex2] etc..

you can use contains method needs opposite way typical in statement. this..

iif ("[ex1][ex2][ex3]".contains("[" & fields!id_name.value & "]"), 0.95, falsebithere) 

of course can use comma or whatever long wont; appear in actual values test.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -