reporting services - How do I make a dynamic expression out of strings in Report Builder? -


basically need able construct bits of expression out of strings , have expression treat these strings regular parts of expression, , not strings. have lookup function in format: lookup(source_expression, destination_expression, result_expression, dataset) want result_expression customisable. in want take string "fields!"+[custom column name here]+".value" can have custom column reference pick stuff from.

i apologise fo rthe horribly worded question; has been long day, , problem frying brain.

you'll need switch() , have each of "true-parts" entire lookup expression want option. i've tried dynamically select field or matching expression before , doesn't work.

it this:

=switch(     parameter!seloutput.value=1, lookup(fields!source.value,fields!match.value,fields!columna.value),     parameter!seloutput.value=2, lookup(fields!source.value,fields!match.value,fields!columnb.value),     parameter!seloutput.value=3, lookup(fields!source.value,fields!match.value,fields!columnc.value),     1=1, lookup(fields!match.value,fields!lookup.value,fields!columnelse.value) ) 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -