SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Why isn't this plotting on a chart like I expect?


Why isn't this plotting on a chart like I expect?

Author
Message
junksql
junksql
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 29
Good day, I'm having an understanding issue with the Chart. Here is a sample dataset:

SELECT 'test1' AS name, 100 AS value, '12/16/2013 10:10' AS logdatetime
UNION ALL
SELECT 'test2' AS name, 200 AS value, '12/16/2013 10:12' AS logdatetime
UNION ALL
SELECT 'test3' AS name, 300 AS value, '12/16/2013 10:14' AS logdatetime
UNION ALL
SELECT 'test1' AS name, 200 AS value, '12/17/2013 9:05' AS logdatetime
UNION ALL
SELECT 'test2' AS name, 300 AS value, '12/17/2013 9:07' AS logdatetime
UNION ALL
SELECT 'test3' AS name, 400 AS value, '12/17/2013 9:09' AS logdatetime

I have attached two pictures. One of them is of the design, and the other is of it being rendered. Why don't all three series' lines render on the chart? Did I set up values, categories, and series of the chart incorrectly?



I'm basically just looking to chart each of the "test" values as a line separately, and their values as the x-axis, and the datetime as the y-axis. What am I doing wrong and why is nothing actually being charted and displayed?



Thank you in advance!
Attachments
SSRS_chart_design.png (33 views, 25.00 KB)
SSRS_chart_preview.png (29 views, 4.00 KB)
ndiro
ndiro
SSC-Enthusiastic
SSC-Enthusiastic (146 reputation)SSC-Enthusiastic (146 reputation)SSC-Enthusiastic (146 reputation)SSC-Enthusiastic (146 reputation)SSC-Enthusiastic (146 reputation)SSC-Enthusiastic (146 reputation)SSC-Enthusiastic (146 reputation)SSC-Enthusiastic (146 reputation)

Group: General Forum Members
Points: 146 Visits: 216
You have a problem with category Axis. Change Group Expression from longDateTime to this one:

=DateSerial(Year(Fields!logdatetime.Value),
Month(Fields!logdatetime.Value),
Day(Fields!logdatetime.Value))

It will work
Attachments
Example.png (10 views, 155.00 KB)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search