I am porting reports to SSRS, and I have found a report that the webapp currently handles in a strange way. I am trying to scope out a solution.
Currently, the webapp does some logic when the report is called and figures out whether to call one sql query or another. They both provide the same sql database fields. The webapp's report builder populates the one template with the contents of whatever query got used.
OK. How can I reproduce this with SSRS? As far as I can tell, my options are:
- Define a single dataset and do logic to pick which select statement to run. (But how?)
- Define two datasets and use a ton of IIF statements to pick which dataset/value is displayed in each field. (But will this work with tablixes?)
- Something else which I have not thought of.
I just need to know what is possible and efficient.
Thanks.