Just a Simple Trend Line
Infrastructure, SQL Server November 12th. 2007, 10:48pm
I made a frustrating discovery a few weeks ago that I’m still dumbfounded by and keep hoping someone will surprise me with an answer, but so far my forum postings have yielded no fruit.Â
We have standardized on the increasingly popular Microsoft SQL Reporting Services as our standard report writing architecture at the office. It is great because it is very similar to Crystal and offers a bunch of features such as a web service API, supports report subscriptions and tons of other useful elements.Â
The discovery I made however is that while the graphing components are a stripped down version of the Dundas controls, the ability to plot a simple trendline on a line chart or scatter plot is non-existent. We have gotten so used to looking at trend lines and Excel has made it so easy to do this, just a couple clicks and you can quickly see how things are trending using a variety of regression formulas. We use SQL Reporting Services 2005, and apparently, adding a trend line means you have to do it the hard way. Y=MX+B, how hard could it be?…let me tell you, it isn’t something they teach you in SQL 101. If anyone else out there has found a relatively painless way of doing this, please share!
Popularity: 45% [?]
Other Posts that May Interest You
8 Responses to “Just a Simple Trend Line”
Leave a Reply
You must be logged in to post a comment.










November 25th, 2007 at 4:44 pm
Dundas, is great for a variety of things but, I have found their trend line function sorely lacking (ie the trend line only works when you have either your x or y over time). If you are using dundas charts for your programing I have a function that I can share with you that will provide this functionality for you - it is written in C# if you want to take a look.
Eric
November 25th, 2007 at 4:55 pm
Eric, greatly appreciate the offer! Since Reporting Services employs a scaled down version of the Dundas controls, I am not positive it would work since the charting control visible in Reporting Services doesn’t have ANY trend line functionality, but what the heck, there is a method for putting custom code into a report so I guess it doesn’t hurt to try. Go ahead and email the code to admin@truckingnerd.com and I’ll see if I can’t get it to work and will report back here if it does.
December 4th, 2007 at 11:41 pm
Eric, thanks for the code, had no luck making it work since I can’t reference the graphing class directly in the code in the RDL file, hopefully 2008 plugs this hole!
December 26th, 2007 at 12:57 pm
Hi.
Can you send me the code too…?
Thanks!
December 27th, 2007 at 11:57 am
Email admin@truckingnerd.com and I’ll reply with it!
January 14th, 2008 at 2:31 pm
I emailed admin@truckingnerd.com but the message was sent back to me. I would love to get a copy of this code, it sounds like exactly what I’ve been looking for! Please email it to me!
January 14th, 2008 at 11:04 pm
Doug, odd it didn’t come through, email sent!
September 30th, 2008 at 8:57 am
Hi,
Please send the code for simple trend line to the below mail id.
I am very thankful for you in advance.
Mail: santhu_smily@yahoo.co.in
Regards,
santhu.