Calculate Data Series Dinamically

Hello Everyone,
I've a requirement in Visual Composer that I would like to know if anyone can help me.
I want to build a lines chart.
In the chart you can define what you want to put in the "category Axis", that normally is defined dynamically.
In the data series you cannot define them dinamically.
For example you have this table/query:
Month/Process  A  B  C  D ...
01                     33
02                              34
03                         35
So in a lines chart, you can define the "category axis" as Month, and in this case, if you have 3 months, the chart adapts to only 3 months, if you have 5 months, the chart adapts and displays the data for the 5 months.
But for the data series, I have to insert (in my example), all the process that exist, process A, B, C, D, etc., so for example if you have 100 process combinations, but only have data for three process, you have to define your dataseries for 100 process, and all 97 process that have the value zero (or no value) are displayed on the chart and represented in the legend.
My requirement is to display dynamically on the data series, only those that have in fact values, so in my example if only the process A, B and D had values, only those process should be displayed on the chart, if for other query execution only the process B and D had values, than, only the process B and D should be displayed.
Does anyone knows how to dinamically display the data series on a chart in Visual Composer?
Thanks for your help,
Diogo.

Hello Sandeep,
For that issue I got another workaround,
let's say that one of my dataseries is named xpto_value,
So in dataseries of the chart I define a formula something like this:
NVAL(IF(@XPTO_VALUE==0,"",@XPTO_value))
So if I have 0 for the XPTO_VALUE it is returned nothing, and the line of the data serie is not printed in the chart, otherwise it is printed.
I can work with this.
But my question is I have to do that for all the data series, i.e., for all the columns of the query.
So in my case, I have for now 6 columns, 6 data series, and I can define this for all these 6 data series in the chart.
But let's say that tomorrow, I have new data on my query and instead of 6 data series, I have 8. In this case the chart is not adapt dynamically, i.e., I still have only the 6 data series, I have to go once again to the chart and create this formula for the 2 new data series, having all the 8.
So the chart does not adapt dynamically for all the data series that exist at the time of execution, I have always to define the data series one by one.
Do you know a way of dynamically define the data series, so if the query returns n columns, then the chart will display automatically n data series independent of what n number is?
Thanks,
Diogo.

Similar Messages

  • Calculate Time Series in a query

    Hi there,
    I got follwoing Query
    SELECT ROW_NUMBER() OVER(Order by Series.Date) AS RowId, Instrument.idInstrument, Series.Date, Series.Value * Series_1.Value AS EURVal
    FROM Series AS Series_1 INNER JOIN
    SeriesSubscription AS SeriesSubscription_1 ON Series_1.idSerie = SeriesSubscription_1.idSerie
    INNER JOIN Series INNER JOIN SeriesSubscription ON Series.idSerie = SeriesSubscription.idSerie
    INNER JOIN Instrument ON SeriesSubscription.idInstrument = Instrument.idInstrument
    INNER JOIN Currency ON SeriesSubscription.idCurrency = Currency.idCurrency ON SeriesSubscription_1.idInstrument = Currency.idInstrument AND Series_1.Date = Series.Date
    WHERE (Instrument.idInstrument = 20610)
    The reults look like this
    1     20610     1998-12-31 00:00:00.000     0,725234482449
    2     20610     1999-01-01 00:00:00.000     0,725234482449
    3     20610     1999-01-04 00:00:00.000     0,718305405841
    4     20610     1999-01-05 00:00:00.000     0,720196638736
    Is it possible to calculate on the fly the value of row number 2 divided by row number 1 and row number 3 divided by row number 2 and so on in a new column.
    The Result set would look like this
    1     20610     1998-12-31 00:00:00.000     0,725234482449
    2     20610     1999-01-01 00:00:00.000     0,725234482449 1
    3     20610     1999-01-04 00:00:00.000     0,718305405841 0,9904457
    4     20610     1999-01-05 00:00:00.000     0,720196638736 1,0026329
    Is that possible?
    Thanks a lot
    Cheers,
    Chris

    Hi, Chirs,
    The analytic LAG function is great for that:
    SELECT ROW_NUMBER() OVER(Order by Series.Date) AS RowId, Instrument.idInstrument, Series.Date, Series.Value * Series_1.Value AS EURVal
    ,      ( Series.Value * Series1.Value
           / LAG (Series.Value * Series1.Value) OVER (ORDER BY  Series.Dt)
           )                    AS EURVal_ratio
    FROM Series AS Series_1 INNER JOIN
    SeriesSubscription AS SeriesSubscription_1 ON Series_1.idSerie = SeriesSubscription_1.idSerie
    INNER JOIN Series INNER JOIN SeriesSubscription ON Series.idSerie = SeriesSubscription.idSerie
    INNER JOIN Instrument ON SeriesSubscription.idInstrument = Instrument.idInstrument
    INNER JOIN Currency ON SeriesSubscription.idCurrency = Currency.idCurrency ON SeriesSubscription_1.idInstrument = Currency.idInstrument AND Series_1.Date = Series.Date
    WHERE (Instrument.idInstrument = 20610)If you'd post some sample data (CREATE TABLE and INSERT statements) then I could test this.

  • Is there a way to change the default colors for data series in charts?

    I have tried to find settings for data series colors in the various CSS files but have not found any.

    Did you try:
    OracleBI/web/app/res/s_.../popbin/
    EX:
    line.pcxml Look for <SeriesDefinition ...
    we modified the line width and a few other things. You'll have to modify all the pcxml files for all the chart types you want to customize.

  • SSRS Bar Chart grouping date series into Months, setting scaler start and end ranges

    I've been trying to solve this issue for a few days now without writing a sql script to create a "blank" for all of missing data points so that I get a bar for each month.  I have date series (by day) data points grouped by two items
    that creates a set of bar charts.  EG:  one chart per product in the tablix detail grouped to site level.
    My issue is I would like the start and end of the charts to be the same for all charts and the only way I get it to work is with a chart that continues to show each date on the chart. 
    EG:
    I have the graph start and end points set and scaling by month as I would like but each bar is a day instead of aggregating to a month level.   My issue I hope to find a workaround for is if I go to Category Groups and define the grouping
    to group with a year and month function the series is no longer treated as date data and I cannot control scaling.  It works fine if all months have activity, but I can't figure out how to always have all charts start at "May 2012" in this example. 
    The only start and end point that I've been able to get to work once doing this are integer based, eg normal start would be 1 for each graph, but 1 doesn't equate to the same month from chart to chart.
    I hope SSRS can provide the solution.  I do know I can write a query that creates a ZERO value for each month/product/site but I don't want to leave the client with a query like that to support.
    -cybertosis

    Hi cybertosis,
    If I understand correctly, you want to display all month category label in the X-Axis. You have configure the Scalar Axis, however, it cannot display the requirement format.
    In your case, if we want the specific data format, we can configure Number property to set the corresponding Category data format. Please refer to the following steps:
    Right click the X-Axis, select Horizontal Axis Properties.
    Click Number in the left pane. Click Date option in the Category dialog box.
    Then, select Jan 2000 option.
    Please refer to the following screenshot below:
    If there are any misunderstanding, please feel free to let me know.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

  • I want data series in Keynote chart to enter one at a time.

    In older version of Keynote, data series can enter one at a time. In version 6.2, seems all series enter at once. Can different series be made to enter one at a time in Keynote 6.2?

    Select the chart
    Inspector > Animate > Build IN > Add an Effect
    choose an effect
    in the Delivery drop down menu select;   By Element in Series

  • FM to calculate date month & year six months previous to the current date

    Hi All,
    Is there any function module or code to calculate date month & year six months previous to the current date.
    Thanks in advance.

    hi,
    try this
      data : date1 like vbak-erdat.
    data : q type numc3.
    selection-screen : begin of block blk2 with frame title text-001.
    parameters : n like q.
    selection-screen : end of block blk2.
    if n > 0.
    CALL FUNCTION 'CCM_GO_BACK_MONTHS'
             EXPORTING
               CURRDATE         = sy-datum
               BACKMONTHS       = n
           IMPORTING
              NEWDATE          = date1
    selection-screen: begin of block blk1 with frame title text-001.
    select-options :  s_date for vbak-erdat default 'NEWDATE'  to 'sy-datum' no-display.
    selection-screen : end of block blk1.
    write : date1.
    Reward with points if helpful.

  • Line chart with more than 15 data series - color problem

    Hi all,
    I've built a line chart with 32 data series (user can control, which of them are displayed at a time). For series 16 to 32 I did manipulate the URL in the browser directly, because Application Express does only display parametrs for up to 15 series. This works fine so far except of displaying the colors. For each sieries I defined a different color. 29 of my 32 series are displayed in the desired color. But series 29, 31 and 32 are displayed in a default-color (#0099CC). It seems that this is a SVG-problem. In the SVG-source I find the wrong color. When I export my application, I see the right color.
    Thanks for help,
    Chris

    Hello,
    Which version of APEX are you using?
    Go to your Flash Chart attributes - get into your series (click the icon) in the section of Series Query you'll find the maximum rows.
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://apex-evangelists.com/
    -- http://apexblogs.info/

  • How to create line hart with variable number of data series

    Hello,
    I am student and I am completely new to Flex programming but
    I need to urgently create an app that should have a variable number
    of data series but of ame type of object.
    eg. Profits for X,Y and Z in in run while just corp X in the
    next instance.
    How can I accomodate for this in the app? can someone point
    me in the right direction I would really greatful as this project
    is really crucial for my coursework to get finished in timely
    manner.
    Thank you

    Hey,
    I'm not really sure what you want, but you should check out:
    http://demo.quietlyscheming.com/ChartSampler/app.html
    Which has a list of different types of charts in Flex and
    will hopefully help. Also check out charting from ILOG, which is
    quite good:
    http://www.ilog.com/products/elixir/

  • How to change colors of individual column bar in the same data series

    in mac numbers, how to change colors of individual column bar in the same data series. The entire column series gets selected in the column bars and cannot select to change colors of specifc bars.

    Hi Kiran,
    no its not possible through Theme editor also ,because these colors are coming from Compiler which u are using.
    Regards,
    Govindu

  • Dynamic Text for data series ?

    Hi, is posible setting dynamic text in data series when use dynamic value ?
    We need show Actual Year value and Last Year value in Label for Series.
    Thank you.

    This is not possible unless you have enhancement pack 1 for visual composer which I think is still in rampup...
    Here is the enhancement noted in the article below.
    Taken from blog:
    Option to dynamically define element titles
    For chart views, form views, table views, HTML views, nested iViews and popup iViews (popup signal), you can now define dynamic titles using the Expression Editor. A new (ellipsis) button to the right of the field in the Configure Element task panel displays the Title Editor dialog box, in which you enter either or define a custom expression.
    /people/judy.kestecher/blog/2008/08/26/whats-new-in-visual-composer--enhancement-package-1-for-sap-netweaver-70

  • Report Builder with multiple data series

    I am not able to figure out how to create a bar chart using
    multiple data series in the Report Builder. I can do it with
    explicit CFML coding but not in the Report Builder. I am running MX
    version 7 with the current (as of 9/1/07) download of the Report
    Builder.
    My table contains visit information by site, with standard
    demographics on each visit (age, race, gender, etc.) I am trying to
    analyze the data by site, for example, race by site.
    I am using an SQL statement to sort and group by site &
    race. I can get a chart of the number of visits for each site or
    the total number of visits by race across all sites. But I can't
    get race by site. The SQL statement looks like this:
    SELECT race, site, COUNT(*) as counter
    FROM visit_info WHERE userid = #session.uid#
    GROUP BY site, race ORDER by site, race
    Every variation I have tried for showing race by site either
    leaves out part of the results or creates a bar chart that has the
    race and site categories as separate entities (White, Black,
    Chinese, Site1, Site2, Site3, etc). I've also tried creating a
    combined variable (site_race) but that doesn't seem to fare any
    better.
    Any help would be appreciated.

    Pop,
    Badunit's example is one possible arrangement that you might have described; that is, one column for X values and several columns for Y values. This is the case when you should respond that you are sharing X-values. With all the data in one table, you can select it all at once, so you don't have the problem with dragging additional series into the chart.
    The Numbers User Guide PDF's first chapter is the place to start getting your bearings - you will learn how to distinguish Header vs. Body rows and columns. It's worth the effort to take another look at it.
    Since you are using a Scatter Chart, it's important not to use a header column for X because X values must be Numeric, as opposed to Text.
    Jerry

  • Add data series to excel chart

    I have an envelope on a chart in Excel.  I would like to add same test data to the chart.  I can open the workbook and get my data on a worksheet, but can't figure out how to add the data series to the chart using ActiveX.

    Here is some vi's that I forgot that I had for excel. In it is one vi in particular called create chart.vi have alook at it. I'm sending you the whole llb. i have not tested them in LV 8 yet.
    hope they help.
    Joe.
    "NOTHING IS EVER EASY"
    Attachments:
    excel.llb ‏2092 KB

  • Showing data series for two charts on one

    Hi
    I need to represent 2 sets of data on one chart. The first is a linebar chart and the second is a scatter chart. This can be done in Excel by adding multiple named data series.
    Is this possible with crystal report 2008.
    Thanks

    I'm a bit late to discussion, but this is I think the most relevant post I could find.
    I have the same problem - displaying multiple data series on the same chart (line chart or scatter by date).  My problem is complicated by the fact that number of series also depend on the data point.
    Essentially I need to plot readout of test in a monitored room where different number of sites maybe tested depending on the room.  So one room might have three data readouts (three sites), and another five (five sites), and when charting by room, one chart will have three series, and another five.  So even considering using overlapping transparent charts, there are issues of conditionally enabling/disabling the whole chart, of determining maximum number of charts (and room might have dozens of test sites) and also displaying appropriate legend(s).
    There must be a better way!
    TIA,
    Andrey.

  • Displaying different data series on drilldown

    I have a bar/line combo chart which displays two data series in bar form and one in line form.
    What I want to be able to do is to only show the bars when drilling down and not the line data series.
    I haven't found a way to do this yet, can anyone help?

    Thanks for the reply.
    I had considered using navigation to go to another chart, but surely if I do this it will go to the same chart wherever I click on the chart, rather than actually drilling down to the next level in the dimension (and thus being different depending on which item I click on) as a normal drilldown should do, unless I have missed something in your explanation?

  • Data Series Missing in the chart.

    Hi ,
    I have included 4 data series in the chart item.
    But its displaying only one data series in the output.
    that is its displaying only the last series. for eg
    i have included Data series1,Data series2,Data series3,Data series4,
    in output its displaying only Data series4.
    what settings i have to make inorder to get all the four data series to be displayed.
    Please Help.
    Thanks
    Tulsi
    Edited by: Thulasi ram on Jun 16, 2008 9:34 AM

    Hi,
    GML File is developed when you are developing your apllication.
    Procedure to Send the GML.
    Click on Model Menu bar in the Tool bar->select Export option
    Then Zip it and send to me
    Regards,
    Govindu

Maybe you are looking for