Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > SQL Server 2005
|
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 19th, 2006, 11:14 AM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reporting Services, filtering problems, please hel

Hi,

I'm working with Visual Studio 2003 and Reporting Services 2000.

I'm having a problem with some "missing fields" in the chart I have created. To be specific, my Y-axis is a time span of several weeks, and sometimes random weeks go missing. I have several parameters as well, and I suspect that the problem is that the data is being filtered before the data field can be COUNTed.

The result: where the COUNT is zero for some certain week, that week will disappear, leaving a gap in my span of time on the Y-axis.


I have two possible solutions, but I do not know how to go about them:

1) I need to be able to manually change the "And/Or" column in the filters tab of my Grouping and Sorting Properties.

2) I need a way to set the values seen on the graph. For example, in my data fields, I have the expression: COUNT(Fields!status.Value). Is there any way so that I can specify that I only want to see the data when status is 10 (e.g. COUNT(Fields!status.Value=10), but I don't know the correct syntax)?


Does anyone know how to do either of these, or perhaps suggest another solution? In any case, I need to know how to do #2 anyway, for another problem I have.


Any help would be greatly appreciated! Thanks!

 
Old June 13th, 2007, 11:00 AM
Registered User
 
Join Date: Jun 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aurbina
Default

Same problem; I guess it never got fixed

I didn't say she was mentally unstable, your honor...
 
Old July 2nd, 2007, 03:09 AM
Registered User
 
Join Date: Jul 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I would suggest you use a stored procedure when your querry becomes more complex. Cause it's much faster.

You can use temp tables to split your data and give data to an empty field like "Empty" using a CASE in your select.
Then you can count those fields or use them in a graph.

Your second problem can be resolved with an IIF-statement
=Count(IIF(stuff = 10, 1, 0)








Similar Threads
Thread Thread Starter Forum Replies Last Post
New to Reporting Services, please help cmreis BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 December 30th, 2005 02:07 AM
Reporting Services mikerowe SQL Server 2000 0 May 22nd, 2005 08:22 PM
Reporting Services Ben SQL Server 2000 3 February 8th, 2005 10:16 AM
reporting services Vrylle BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 August 6th, 2004 12:50 AM
reporting services msrnivas .NET Web Services 0 June 18th, 2004 04:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.