Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

query help

$
0
0

I wanted to see if someone could help me add Logic to a dataset query in a SSRS project that is controlled by a parameter.

When a user selects a parameter I would like the dataset to exclude 6 different records types from the dataset. I know how create the parameter but I'm not sure how to adjust my dataset query.

I'm guessing something like this needs to be added to where statement in my dataset query:

AND IF @parameter = TRUE then tc.NORM_TRANS NOT IN ('0105', '0301', '0302', '0205', '0401', '0402') END

Any help would be greatly appreciated.

Thanks,


x


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>