Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 Line charts

Author  Topic 

collie
Constraint Violating Yak Guru

400 Posts

Posted - 2009-03-20 : 12:29:11
Hi,

These charts are giving me a hard time:-)
I have a line chart with Name as series, TotalReported as data field and Date_reported as category field.
Below is my table and select statement.
However not all series line are shown on the chart. I see all the names in the series but only about 3 names are plotted.
What am i doing wrong?

Thanks


if @groupBy='issue' and @group=0
begin
select top (@top) count(r.issue) as totalreported,--convert(varchar
(10),date_reported,3) AS
date_reported
,r.ISSUE as NameID,
IM_BUGS.bug as Name
from dbo.IM_Msg_Issue_Reported r
inner join dbo.IM_BUGS on bug_id=r.issue
where (r.application in(select value from dbo.fn_split(@app_id,',')) or @app_id is null)
and (r.issue IN (select value from dbo.fn_split(@issue_id,',')) or @issue_id is null)
and (r.subject in (select value from dbo.fn_split(@subject_id,',')) or @subject_id is null)
and (r.date_reported BETWEEN cast( @date_from as datetime)
AND cast( @date_to as datetime))
and (agent_id in ( select value from dbo.fn_split(@agent,',')) or @agent is null)

group by IM_BUGS.bug,date_Reported,r.ISSUE
order by cast(date_reported as datetime) asc,count(r.ISSUE) desc
end

______________
CREATE TABLE [dbo].[IM_Msg_Issue_Reported](
[id] [int] IDENTITY(1,1) NOT NULL,
[application] [int] NULL,
[subject] [int] NULL,
[issue] [int] NULL,
[msg] [int] NULL,
[Date_Reported] [datetime] NULL,
[agent_id] [int] NULL,
[msg_path] [nvarchar](500) COLLATE SQL_Latin1_General_CP1_CI_AS

NULL,
[Time_Reported] [datetime] NULL,
CONSTRAINT [PK_IM_Msg_Issue_Reported] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]


Whisky-my beloved dog who died suddenly on the 29/06/06-I miss u so much.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-03-20 : 13:08:06
see how many distinct names value are returned by the query
Go to Top of Page

collie
Constraint Violating Yak Guru

400 Posts

Posted - 2009-03-20 : 18:38:44
Hi,
I can only see the following 3 plotted on the line chart:
test
The mail is in German
The Installation proccess disapearing

These are the results:
totalreported datereported id issuename
1 02/01/2009 8 test
1 02/02/2009 29 The customer is not satisfied
1 22/02/2009 45 Multiple emails
1 22/02/2009 14 User can see only half wink
2 01/02/2009 8 test
2 01/02/2009 9 Error Y
2 01/02/2009 11 Error Z
2 01/02/2009 12 The Installation proccess disapearing
2 02/02/2009 18 I still have SPAM
2 02/02/2009 27 Duplicate orders
2 02/02/2009 38 User doesn't want the product-reason
2 22/02/2009 12 The Installation proccess disapearing
2 22/02/2009 35 The mail is in German
3 02/02/2009 17 Renewal price too high
3 02/02/2009 19 The renewal is not authorized
3 02/02/2009 20 The customer doesn't use Mail anymore
4 02/02/2009 39 User doesn't want the product
5 02/01/2009 12 The Installation proccess disapearing
6 02/02/2009 33 The mail is in French
8 02/02/2009 35 The mail is in German


Whisky-my beloved dog who died suddenly on the 29/06/06-I miss u so much.
Go to Top of Page
   

- Advertisement -