Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Reporting Services
»
Reporting Services 2005 Development
»
Create Paramater Filter by State
17 posts, Page 1 of 2
1
2
»»
Create Paramater Filter by State
Rate Topic
Display Mode
Topic Options
Author
Message
Welsh Corgi
Welsh Corgi
Posted Wednesday, January 11, 2012 8:28 AM
Hall of Fame
Group: General Forum Members
Last Login: 2 days ago @ 6:19 AM
Points: 3,833,
Visits: 4,052
I'm trying to create a parameter to filter a Report by State.
Any help would be greatly appreciated.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #1234036
Welsh Corgi
Welsh Corgi
Posted Wednesday, January 11, 2012 9:18 AM
Hall of Fame
Group: General Forum Members
Last Login: 2 days ago @ 6:19 AM
Points: 3,833,
Visits: 4,052
So far I have created a Stored Procedure with a State Parameter.
I changed the Data Source to the Stored Procedure.
I have a Drop Down Box and it displays the States but they are repeated for every record on my Stored Procedure which is based on Companies.
I selected a State 'TX' and clicked on View Report and it filters the Report.
I click on the State List box and it and it only lists 'TX', the other States are not displayed.
I click to refresh the Data but I sill on get TX.
I do not want the States to be distinct.
How can I accomplish that & get rid of the filter problem.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #1234100
matt.jonas
matt.jonas
Posted Wednesday, January 11, 2012 9:29 AM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 11:23 AM
Points: 7,
Visits: 65
Can you post code for the stored procedure you are calling to populate your State dropdown box?
Post #1234118
Welsh Corgi
Welsh Corgi
Posted Wednesday, January 11, 2012 9:39 AM
Hall of Fame
Group: General Forum Members
Last Login: 2 days ago @ 6:19 AM
Points: 3,833,
Visits: 4,052
matt.jonas (1/11/2012)
Can you post code for the stored procedure you are calling to populate your State dropdown box?
I have made some progress.
I created another Data Set to poulate the list box and that works.
SELECT StateAbbr
FROM States
I Select a State 'AK', click on View Report and it Filters the records.
If I select another State from the list 'TX' and Click on View and it still displays 'AK'
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #1234133
Welsh Corgi
Welsh Corgi
Posted Wednesday, January 11, 2012 9:43 AM
Hall of Fame
Group: General Forum Members
Last Login: 2 days ago @ 6:19 AM
Points: 3,833,
Visits: 4,052
I deleted the parameter but the data is still filtered by State?
Caching?
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #1234137
matt.jonas
matt.jonas
Posted Wednesday, January 11, 2012 9:50 AM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 11:23 AM
Points: 7,
Visits: 65
Which version of SSRS are you using? Are you doing your testing in Business Intelligence Development Studio?
Post #1234148
Welsh Corgi
Welsh Corgi
Posted Wednesday, January 11, 2012 9:55 AM
Hall of Fame
Group: General Forum Members
Last Login: 2 days ago @ 6:19 AM
Points: 3,833,
Visits: 4,052
matt.jonas (1/11/2012)
Which version of SSRS are you using? Are you doing your testing in Business Intelligence Development Studio?
SSRS 2005 & I'm testing in BIDS.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #1234153
Gazareth
Gazareth
Posted Wednesday, January 11, 2012 9:59 AM
UDP Broadcaster
Group: General Forum Members
Last Login: Monday, May 20, 2013 1:53 AM
Points: 1,474,
Visits: 2,342
IIRC BIDS caches results locally. There is a way to make it run a fresh set but I forget how!
You can force it by deleting the cached data from the file system - it'll have the same name & path as the rdl file.
Post #1234160
Welsh Corgi
Welsh Corgi
Posted Wednesday, January 11, 2012 10:32 AM
Hall of Fame
Group: General Forum Members
Last Login: 2 days ago @ 6:19 AM
Points: 3,833,
Visits: 4,052
Thanks everyone, I deleted the parameters and Dataset, recreated and all of my problems went away.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #1234185
Welsh Corgi
Welsh Corgi
Posted Wednesday, January 11, 2012 10:55 AM
Hall of Fame
Group: General Forum Members
Last Login: 2 days ago @ 6:19 AM
Points: 3,833,
Visits: 4,052
I spoke to soon, modified the SP to Accept a NULL value and the report defaults to the last State that I selected in the Drop Down Box.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #1234212
« Prev Topic
|
Next Topic »
17 posts, Page 1 of 2
1
2
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.