Displaying a trend line (in line chart) in SSRS

We have a line graph which plots the actual data points (x,y), everything is working fine with this graph. Now we need to add a trend line to this existing graph after going thro. the articles we came to know that there is no direct option in SSRS to draw a trend line. So we need to calculate the trend values ourselves which we need to plot as atrend line. This trend line is similar to the trend line which comes in Excel chart, do anyone know how to calculate the trend values from the actual data points. We got through several formulas, but were not clear, have anyone tried out exactly the same, if so please help us out by providing an example to calculate the trend values.

The default functionality of Reporting Services does not support trend lines.  There are some additional tools you can purchase to achieve this though, which is talked about in the first link below.
You can take a look at this post:  http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1148970&SiteID=1
and this one:  http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=322398&SiteID=1
Jarret

Similar Messages

  • Render a trending line chart that tracks 5 values over 13 weeks

    I want to create a line chart that display a trend for 5 categories over 13 weeks. Can someone give me an idea of how the view context would be designed for this at design time?
    I'm new to web dynpro so i hope this makes sense. Would the view context appear similar to this?
    ChartData (node)
    --CategoryType (value attribute)
    --Wk1Value
    --Wk2Value
    --Wk3Value
    --(wk4 through wk13Value)
    Thank you,
    julian

    Crystal Reports is a database reporting tool, thus Crystal's charting engine plots data FROM the database.
    Excel is not; one can manually add values to Excel then plot those values on a chart in Excel.
    So if they only have 5 weeks worth of data being pulled in to CR they'll get a chart for 5 weeks.
    Suggestion:  Report off the excel spreadsheet and pull that data in along with the Excel chart.

  • Trend Analysis in Line Chart

    Hi Experts,
    I would like to display a trend line of a key figure in the line chart just like you can do it in WAD for example based on an existing data series.
    As I could not find any option in the properties of the line chart, I was wondering whether there is any workaround which you might know in order to implement such a trend analysis chart?!
    Thanks in advance for any reply!
    Cheers
    Tobias

    Hi,
    if possible try to add trend Line value in another keyfigure ( Trend_Line ) in BEx Query .
    And then Display it in Line Chart .
    Or
    if your Trend Line value is fix then add Text set top border & arrange it behind line chart .

  • Hiding measure values line chart

    Hie Guys,
    I have a line chart with measure object "X" and dimension "Month". Now, the measure values are going to be zero for all previous months. I do not want those zero values to be displayed in the line chart. Is there a way to do this in Webi? I tried to create a variable to substitute Measure object X.
    Variable = If (Measure Object =0) Then "" Else Measure Object. This did not work as the chart only takes measures and the variable is text. Anybody have any suggestions? Thanks.

    Jeewan, Consider this as sample data.
    Now create three variables....
    Month 1 = [M1] Where ([M1]<>0)
    Month 2 = [M2] Where ([M2]<>0)
    Month 3 = [M3]  Where ([M3]<>0)
    Now your data will be
    Right Click on it. Turn into Line Chart. Finally your output is as you required.
    Regards,
    G Sujitha

  • How to display a goal line in a Flash 2D Line Chart?

    Hello,
    I am using Apex 3.0.1 and have a Flash 2d Line Chart displaying a ratio that varies from 1.0 to 1.6 for every month for a year. I need to draw a goal line at 1.2 to show the goal for the ratio. Also, I have grid lines enabled for the y-axis.
    Any pointers/tips on how to accomplish displaying this goal line would be really useful.
    Thanks and Regards,
    Dev

    I'm having the same problem!
    APEX is relatively new to me. CUSTOM XML for tweaking charts is even more recent. I tried to get a goal line to work in a line chart as you described but I have had no success. I really require a target/goal/reference line in a vertical bar chart but getting it to work in a line chart would be a welcome first step.
    I have tried the following 2 samples of code without success:
    <objects>
    <line value='94' text='Target' text_position='right' color='0xFF3300' size='1' alpha='100'/>
    </objects>
    and
    <objects>
    <trend start_value='94' end_value='94' start_argument='' end_argument='' value='' color='0xFF3300' thickness='1' alpha='100'/>
    </objects>
    ==> in the following blocks of the CUSTOM XML:
    <chart .....</chart>
    <chart..<line_chart .....</line_chart>..</chart>
    <workspace> .. <chart_area .....</chart_area> ..</workspace>
    <workspace> .. <y_axis .....</y_axis> ..</workspace>
    <workspace> .. <grid> ..<values .....</values ..</grid> ..</workspace>
    <workspace> .. <grid> .....</grid> ..</workspace>
    Any idea where I am going wrong or what could be missing? Maybe I'm not putting the <objects> parameters in the correct place in the code?
    System Info:
    Product Build: 3.0.1.00.07
    NLS_CHARACTERSET: WE8MSWIN1252
    DAD CHARACTERSET: UTF-8
    JOB_QUEUE_PROCESSES: 10
    Database Version Information
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE 10.2.0.3.0 Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Thanks for any help!
    Lawrence

  • Crystal report -How to display multiple lines in line chart?

    Hi,
    M struggling to display multiple lines in line chart. All the values m fetching it from database into data table in below format & data type
    Category(String).....year(Int).....graph_values(Int).....table_value(String)
    Test.........................2006.......... -100............................(100)
    Avg..........................2006..........20................................20
    Median......................2006...........5................................5
    Test..........................2007...........500.............................500
    Avg...........................2007............90..............................90
    Median.......................2007............45..............................45
    M using cross tab to display data and chart to plot line. Following fields I used in Cross tab Expert & Chart expert
    Cross tab expert-
    Rows u2013 category
    Columns u2013 year
    Summarized fields u2013 Min of table_value
    In Chart Expert u2013
    On Change of - Year
    Show values - graph values
    In cross tab m able to see the data properly but not in graph.I have three categories. Hence it should plot three lines in line chart but m able to see only one line for test category.
    FYI u2013 using VS 2008 and crystal report assembly version 10.5
    Urgent. Please reply soon.
    Thanks
    ThakurS

    I got the solution.
    In Chart Expert - I should use
    On Change of -- Year, Category
    Show values -- graph values
    Thanks,
    ThakurS

  • Crystal reports in jsp ,the Line chart 's line can't display in jsp?

    that is example crystal-reports-10 for Jbuild 2005,
    I just modify such in viewreport.jsp:
    <crviewer:viewer displayToolbarRefreshButton="true" isOwnPage="true" displayToolbarCrystalLogo="false" displayToolbar="true" displayToolbarExportButton="true"
    displayToolbarPrintButton="true" displayGroupTree="false" viewerName="worldsales" reportSourceType="reportingComponent" reportSourceVar="<%= path %>"><crviewer:report reportName="<%= path %>"/></crviewer:viewer>
    it can't display a Line chart rpt's line and background's picture, and when I press refresh button report a Error "Error finding JNDI name (yhgl)"
    help!!

    The jars should be in your installed Crystal Reports folder( \Crystal Decisions\..\java\lib or something like that...). The problem is that your server (Tomcat and others) ignores the system classpath completely (it sets its own in its startup script).
    Therefore, in order for Tomcat to find the jars, those jars have to be placed in in %CATALINA_HOME%\common\lib\. There, they will be available for all your applications. If you don't want them available globally, put them in your particular webapp's WEB-INF\lib directory.

  • JDEV 10G: how to display the value of the line chart using jChart in JSP

    I have draw the line chart in JSP using the JChart and now I wan to display the value label in the line there..
    but the value wasn't show..
    anyone can help me..
    thx..

    Hi,
    what I do understand, you want to display the value of each point in your Line Graph.
    I guess you will be having BIGraph.xml file. In this file check the "Show Data Tips When Mouse is over bars" checkbox.
    Lets try with this.
    --Abhijit                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Legend does not display with Line Chart

    I have a query that I wrote with Bex Query Designer v3.5.11 for a BW 3.5 system.  When I click Graphical Display tab in the query results, "Column Chart" shows a legend, showing which colors mean what.  However, when I switch to a different type of chart, such as Line Chart, Legend does not appear.  Anyone know how to make this appear?  without the legend, the chart isn't very useful.

    You can create a Web Template, Drag a Chart.
    1) Assign a query to the chart
    2) Right click over the Chart and select Edit Chart
    3) Select Chart Designer.
    4) Look for "Series" in the Overview Window
    5) Expand the Series.
    6) Activate the checkbox "Show Labels" on all the
       series that you want to have values.
    Regards
    Armando Flores

  • Legend for a line chart displaying incorrectly

    Hi All,
    I am working with a line chart in webi XI R2. for example conssider the island resort marketing universe. we have 3 resort names like bahamas,US,France and the corresponding "revenue"  for year 1999,2000,2001. Now i want a line chart for each resort and another line for sum of all the revenue.
    So my final line chart contains 4 lines, one each for bahamas,US,France for 1999,2000,2001. and 4 line is sum of all revenues (for all resorts) in 1999,2000,2001.
    I have used a "vertical line mixed" chart for this. All the graph lines are displaying correctly but the legend is displaying wrongly.
    Please advise.

    Hi Raveendra,
    I guess its the 4th line i.e. sum af all revenue that you have added in the same chart is causing the problem.
    My solution is why dont you try and put the sum of all revenue in other chart on the same report.
    May this would help resolve your legend problem.
    If you can give the exact details like what attributes you have selected while running the query and how did you added the sum of all revenue in your chart being more specific, would rather help a bit better in solving the problem.
    Thanks,
    Chirag Desai.

  • How to display non-continuous lines in a 2D Line flash chart ?

    Hi
    I am making 2D lines charts. is there a way ig tehre are no data in the table, to not to display points ?
    For example I have a table with this data :
    Date     Value
    01/01/09 2
    02/01/09 7
    03/01/09 4
    05/01/09 3
    06/01/09 2You see in the example anove that there is no data for the day 04/01/09.
    I would like the chart no to display any point for that day and start again for date following. This means displaying a non-continuous line.
    I hope I am clear.
    I tried but had no solutions. Would you have any idea on this ?
    Thank you for your kind help !
    Christian

    Hi Christian
    You're missing a lot of the XML build up from the website.
    You also need to return the string "Missing" for each date that you haven't got.
    Try this to get you started (you'll certainly need to fiddle with it to get it working)...
    DECLARE
       l_xml   VARCHAR2 (32767);
       start_date DATE;
       end_date DATE;
       the_date DATE;
       count_holder VARCHAR2(10);
    BEGIN
       l_xml :=        '<anychart> ';
       l_xml := l_xml||'<settings> ';
       l_xml := l_xml||'<animation enabled="True"/> ';
       l_xml := l_xml||'</settings> ';
       l_xml := l_xml||'<charts> ';
       l_xml := l_xml||'<chart plot_type="Scatter"> ';
       l_xml := l_xml||'<chart_settings> ';
       l_xml := l_xml||'<chart_background> ';
       l_xml := l_xml||'<border color="#990099"/> ';
       l_xml := l_xml||'</chart_background> ';
       l_xml := l_xml||'<title enabled="true"> ';
       l_xml := l_xml||'<text> Something </text> ';
       l_xml := l_xml||'</title> ';
       l_xml := l_xml||'<axes> ';
       l_xml := l_xml||'<x_axis tickmarks_placement="Center"> ';
       l_xml := l_xml||'<title enabled="true"> ';
       l_xml := l_xml||'<text>Date</text> ';
       l_xml := l_xml||'</title> ';
       l_xml := l_xml||'</x_axis> ';
       l_xml := l_xml||'<y_axis> ';
       l_xml := l_xml||'<scale minimum="1" type="Linear"/> ';
       l_xml := l_xml||'<title enabled="true"> ';
       l_xml := l_xml||'<text>Count</text> ';
       l_xml := l_xml||'</title> ';
       l_xml := l_xml||'</y_axis> ';
       l_xml := l_xml||'</axes> ';
       l_xml := l_xml||'</chart_settings> ';
       l_xml := l_xml||'<data_plot_settings default_series_type="Line"> ';
       l_xml := l_xml||'<line_series point_padding="0.2" group_padding="1"> ';
       l_xml := l_xml||'<label_settings enabled="true"> ';
       l_xml := l_xml||'<background enabled="false"/> ';
       l_xml := l_xml||'<font color="Rgb(45,45,45)" bold="true" size="9"> ';
       l_xml := l_xml||'<effects enabled="true"> ';
       l_xml := l_xml||'<glow enabled="true" color="White" opacity="1" blur_x="1.5" blur_y="1.5" strength="3"/> ';
       l_xml := l_xml||'</effects> ';
       l_xml := l_xml||'</font> ';
       l_xml := l_xml||'<format>{%YValue}{numDecimals:0}</format> ';
       l_xml := l_xml||'</label_settings> ';
       l_xml := l_xml||'<tooltip_settings enabled="true"> ';
       l_xml := l_xml||'<format> ';
       l_xml := l_xml||'Something: {%YValue}{numDecimals:0} ';
       l_xml := l_xml||'Date: {%Name} ';
       l_xml := l_xml||'</format> ';
       l_xml := l_xml||'<background> ';
       l_xml := l_xml||'<border type="Solid" color="DarkColor(%Color)"/> ';
       l_xml := l_xml||'</background> ';
       l_xml := l_xml||'<font color="DarkColor(%Color)"/> ';
       l_xml := l_xml||'</tooltip_settings> ';
       l_xml := l_xml||'<marker_settings enabled="true"/> ';
       l_xml := l_xml||'<line_style> ';
       l_xml := l_xml||'<line thickness="3"/> ';
       l_xml := l_xml||'</line_style> ';
       l_xml := l_xml||'</line_series> ';
       l_xml := l_xml||'</data_plot_settings> ';     
       l_xml := l_xml||'<data> '; 
       l_xml := l_xml||'<series name="Count"> ';     
       start_date := TO_DATE('01/01/2009');
       end_date   := TO_DATE('10/01/2009');
       the_date   := start_date;
       WHILE the_date <= end_date
       LOOP
        SELECT DECODE(COUNT(*),0,'Missing',COUNT(*))
        INTO the_count
        FROM evv_stpl
        WHERE date1 = the_date;
        l_xml := l_xml || '<point name = "'|| the_date ||'" y="'|| the_count ||'"/>';
        the_date := the_date + INTERVAL '1' DAY;
       END LOOP;
       l_xml := l_xml ||'</series> ';
       l_xml := l_xml ||'</data> ';
       l_xml := l_xml ||'</chart> ';
       l_xml := l_xml ||'</charts> ';
       l_xml := l_xml ||'</anychart>';
       HTP.p
    <html>
    <head>
    <title>AnyChart Sample</title>
    <script type="text/javascript" language="javascript" src="D:\oracle\product\10.2.0\apache\Apache\Apache\images\flashchart\AnyChart.js"></script>
    <body>
    <div id="chartDiv-1"></div>
        <script type="text/javascript" language="javascript">
        //<![CDATA[
        AnyChart.swfFile = ''D:\oracle\product\10.2.0\apache\Apache\Apache\images\flashchart\AnyChart.js'';
        var chart = new AnyChart();
        chart.width = "800";
        chart.height = "600";
        var data = '''
           || l_xml
           || ''';
        chart.setData(data);
        chart.write("chartDiv-1");
        //]]>
        </script>
    </body>
    </html>
    END;Hopefully you understand what I'm trying to do here, unfortunately I can't try it out myself at the moment.
    Maybe if you get stuck you could post it on apex.oracle.com?
    Cheers
    Ben
    Oops, handled a count of zero incorrectly - amended
    Edited by: Munky on May 7, 2009 1:17 PM

  • Line Chart does not display grid lines for x-axis (apex 2.0 / 3.0)

    Hello,
    is there an option to display x-axis grid lines?
    I set up an SVG chart (Line) but only IE displays y-axis grid-lines. I set the "Show Grid Line" - value to "enable"
    Does any body has an idea how I told apex to display x-axis grid lines also.
    Btw: only MS Internet Explorer displays the grid lines, I use firefos 1.5.0.10 -> no grid lines are displayed.
    The table how I create the chart are as follows
    select null link, label, value
    from
    SELECT 1 Value , 1 label FROM dual
    UNION
    SELECT 3 Value , 2 label FROM dual
    UNION
    SELECT 5 Value , 3 label FROM dual
    UNION
    SELECT 2 Value , 4 label FROM dual
    Thank you for helping me !!
    Message was edited by:
    athor

    I changed this and put usage of UTL_FILE into a dynamic PL/SQL. The package will
    compile and work unless you want to create debug information. If yes, then it will raise an
    error message. So, you don't need UTL_FILE execution priviledge from your DBA.
    I opened the package and you may modify it the way that you don't need any public
    synonyms and no UTL_FILE to run it.
    There are so many questions in this forum related to "What is my DBA going to say?" or
    "How is he going to react?". Even for some minor issues. I have myself also seen some
    of similar situations and the only thing I can sey is:
    You got to use that powerfull tool Oracle Database instead of hiding it away from your
    users and developers. Learn how to control it instead of prohibiting access to it! Otherwise,
    it's just a waste of money.
    Denes Kubicek

  • Dynamic trend line on flash chart

    Hi,
    How could we reference an apex item on the custom XLM chart? I intend to add a dynamic trend line using
    &lt;objects&gt;
    &lt;line value="&PXX_." text="trend line" color="0xFF0000" thickness="1" alpha="100"/&gt;
    &lt;/objects&gt;
    but it doesn't work. Could somebody guide me to the right direction.
    And to add, anybody have integrated or call an statistical process control (SPC) chart in apex?
    Thanks in advance.

    You can create a process, create the entire XML string in the process, and set the resulting XML string in the Custom XML area. We did something similar and seems to be working fine.
    Ravi

  • Strange Ideal Trend Line in burndown chart

    I am getting a very strange idealtrend line in my burn down chart. The project has 400 hours of work in it, but the ideal trend starts at 100 hours. THis places 300 hours above the ideal trend, which looks very weird.
    I would like to understand how the beginning point of the ideal trend line is calculated, perhaps this will help me figure out what is going on.
    any help would be appreciated.

    Hi,
    You can
    download the Agile Process Template to your local machine , and in the Reports folder, you can find the Burndown - Dashboard.rdl.  You can open this file using SQL Server Business Intelligence Development Studio or just notepad.exe.
    In the rdl file, The IdealTrend Series is calculated as
    =IIF (Parameters!TrendLineParam.Value = "both" OR Parameters!TrendLineParam.Value = "ideal",
    Code.Burndown
    IIF
    ( Parameters!YAxis.Value = "hours",
    Sum(Fields!Cumulative_Remaining_Work.Value),
    Sum(IIF(Fields!System_State.Value<>Parameters!ClosedName.Value, Fields!Cumulative_Count.Value, 0))
    Fields!DateValue.Value,
    Parameters!EndDateParam.Value
    Nothing
     And Code.Burndown is defined as
    Private firstValue As Double = Double.NaN
    Private firstDate As Date
    Private lastState As String
    Private numDays As Integer
    Function Burndown(ByVal val As Object, ByVal valDate As Date, ByVal endDate As Date)
    If valDate &lt; firstDate Then
    firstValue = Double.NaN
    firstDate = DateTime.MinValue
    End If
    If Double.IsNaN(firstValue) Then
    If Not val Is Nothing And val &lt;&gt; 0 Then
    firstValue = val
    firstDate = valDate
    numDays = Math.Max(1, (endDate - valDate).Days)
    Return firstValue
    End If
    Else
    Return ((endDate - valDate).Days / numDays) * firstValue
    End If
    Return Nothing
    End Function
    From the Burndown function, when firstValue is NaN, the value is set to the parameter
    val, and the series pass Sum(Fields!Cumulative_Remaining_Work.Value) as the parameter
    val, so the beginning point of the ideal trend line is calculated as Sum(Fields!Cumulative_Remaining_Work.Value)
    Best regards,
    Ruiz
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg @ microsoft.com

  • Trend line in scatter chart

    Hi,
    Is it possible to add a trend line to an existing scatter chart?
    Thanks.
    Andy

    The Regression/Trend Line is calculated using the Least Squares Regression method. You can get all the information on what goes into the calculations for Least Squares Regression on wikipedia.
    Then create an actionscript class (its not particularly complicated) that does the Least Squares Regression calculations on a series of x and y observations (that you used to create your plot chart).
    Once you have calculated the Least Squares Regression data for your plot series, you add a line series to your plot chart. Each observation in the lineSeries data should use the x value (independant variable) from the plot data and the calculated y value from your Least Squares Regression class.

Maybe you are looking for

  • Some Images Not Showing on Server

    Five of my images aren't showing up online. They appear fine when previewed on my computer and even appear in Adobe Browser Lab. I've re-uploaded them several times. I've deleted them from the server before re-uploading them. I've created new ones an

  • How to find size of ResultSet in JAVA

    hi , I have one problem... went for sun API but i did not get any solution....please any body help me... my problem is ...... I got the data from DataBase by executing a query . so my Resultset having some records.Now my problem is how to find the si

  • Test a standard (or delivered) Workflow ?

    Hi, I am trying to seek advice from experienced workflow developers. Is there a standard (or a delivered) workflow, that I can test with. If there is one, can you tell me how I should assign an agent (can I even assign a R3 user directly)... The moti

  • When will the part arrive?

    Sent my Lumia 900 for repair on June 29 and till today it's still not ready. Called the centre a few times since last week, they said it's the speaker's fault and it need to be replaced. However, they couldn't tell me when the part will arrive, and w

  • Updating from 10.4.7 to 10.4.9 - been trying ALL day!

    Hi there. I decided last night to reinstall my iMac from the setup discs as I was having a few glitches (not wanting to shut down, having to keep forcing apps to quit etc). All went well, til I tried to upload my iLife '08 disc this morning. I discov