SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 ssrs 2008 parameter default want to display
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jassie
Constraint Violating Yak Guru

269 Posts

Posted - 02/11/2014 :  13:17:55  Show Profile  Reply with Quote
In an ssrs 2008 report, I want to add a parameter called Processed and have default values set so the
user does not have to select the parameters. The problem is the default parameters are not preselected
when the report is executed.

The following is the query for the dataset that is used for the parameter called Processed. This
is used under available values.


select DISTINCT IsNull(Processed,'') as Processed,
CASE IsNull(Processed,'')
WHEN 0 then 'Non Processed'
WHEN 1 then 'Processed'
END AS label
FROM [Items]
where Processed in (0,1)
order by label

The default values are set to 0 and 1. I also have the Allow Multiple values checkbox for the parameter checked(set).


The column called Processed as defined as 'bit'.

Thus can you tell me what you think could be wrong? Do I need to specify the bit values as
something else? If so, how should I refer to the values for bit?

Edited by - jassie on 02/11/2014 14:05:05

hbadministrator
Posting Yak Master

109 Posts

Posted - 02/20/2014 :  15:12:30  Show Profile  Reply with Quote
is this select statment/case created first in a view? I find it much easier taking the tables I want do all my calculations in the views then import the data into ssrs.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000