I have a field in a dataset, At Risk, that will have 1 of 2 values: Yes or No. I've created my report (2008 NOT R2) and want to be able to filter the data by this field. User has 1 of 3 options: Yes, No, or All (Yes, No). I started off basic and just ran the report with no filtering; it works great. Next, I added the filter, used the IN Operator, and hard-coded the Value of: Yes, No into the Value area. I ran the report and again, no issues at all. Here's where the problem begins. I created a parameter, @pAtRisk, gave it a default value of: Yes, No and changed the Value of the filter to use this parameter instead of the hard-coding, and for some reason, the report returns blank. If I change the default value of the parameter to be either Yes or No, the report works fine. I've tried playing with different things - removing the space and having : Yes,No and that didn't work. I can't understand why when I hard code this into the filter, it works fine, but when it gets passed in from a parameter, it doesn't. Anybody have any ides? I've tried to include a relevant screen print below.
↧