I want my report to display results from two select statements. Basicly, one select statement is active users, and the other is non-active users.
How do I structure the data tab of the report (I am using SSRS-2005)?
Thanks
Frank
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Two ways you could approach this:
Have two queries in your ‘Data’ tab – one for active users and one for inactive users. Then on your report simply drop two tables and point one of them at the ‘active users’ DataSet and the other at the ‘inactive users’ DataSet.
Have the one query which returns all users, active or not, along with a column for their ‘active’ status. Now drop two tables on your report and point them both at this single DataSet. Then, in the properties of each table, set up the filter so that one table only shows active users and the other shows inactive ones.
I don’t I’d favour one of these approaches over the other, but I’d probably lean towards the second approach since it’s only one round trip to the database. The overhead of filtering during the report rendering might not make it worth it, though – you’d have to try it and see.