Groups | Blog | Home
all groups > sql server reporting services > december 2004 >

sql server reporting services : Filtering the dataset


Terry
12/16/2004 7:11:02 PM
Hi All,

I have reports which return employee information. I want the report to have
an optional 3 parameters representing Entity, Business Unit and Cost Centre.
If any of these parameters(or a combination is used) I want to filter the
returned dataset to display only relevant rows.
Before anyone suggests using the parameters in the stored procedure, forget
it! The stored procedure is complex enough that it has to figure out the
users access level....so I'd rather filter after the fact.
I've hit a brick wall with this one, so if anyone has any fantastic ideas,
Id love to hear them.

Kind Regards,
Chans
12/16/2004 10:23:08 PM
Filtering the dataset can be done with the filter tab in the dataset.
U can try with the filters - Expression & Value. using custom expressions.

To help U out, I need more details abt the parameters and returned columns
with which u filter the dataset.


[quoted text, click to view]
Terry
12/18/2004 3:37:02 PM
Thanks Chans,

I worked it out after posting this article.Basically I ended up with 3
filter values each one something like this:

iif(Parameter.value1 is null,"",Fields.value1) = iif(Parameter.value1 is
null,"",Parameter.value1)

Getting around my problem of the filter parameter being null.
Always helps to talk about things;-)

Cheers,
Terry

[quoted text, click to view]
MycGyver
2/16/2005 10:17:03 AM
Did you filter the report or the dataset?

[quoted text, click to view]
AddThis Social Bookmark Button