Dual Line Chart : Dynamic Secondary Axis

Hello All,
I am currently working on Dual Line Axis to Compare  ANY Two KF's based on user Selection in the provided Dropdown boxes. Also, the data has to be switched between Month and Quarter based on the Radio button Group.
Here is the Screen shot of the required output format. The KF1 and KF2 are filtered by code Chart.setSelectedValue(KF1 , KF2);
I am getting an error saying 'Can't Display data, At least one Measure has to be in Rows". I took 3 Measures in Rows and Calmonth in Column in the Default View.
Can anyone please throw some light how to achieve this ? The reason for the DUAL Axis is, One measure is $ Value and Second Measure is % Values.
Appreciate your help.
Thanks,
Priya.

Hi Priya -
That is a nice chart you have.
Only thing I could find that could be related is this note:
http://service.sap.com/sap/support/notes/1942481
It may or may not help.
Could you also specify which version of Design Studio you are using?

Similar Messages

  • SSAS2008 r2 and Excel Line Chart and Date Axis

    Hi
    Excel 2010. SSAS 2008 R2
    I have a excel line chart made out from SSAS pivot table with a date dimension (date) and No of licences.
    Currently, it displays 1/Jun/2014 to 30/Jun/2015 (FY2015) and this looks really ugly. 
    While keeping the details, I'd like to display by Month-Year. 
    However, while I can do this with other normal excel data, I just can not do it with SSAS Pivot table.
    Under Axis options, I ticked 'Date axis' but it won't bring up date options. 
    I think I tried everything but just can not figure it out. I wonder if it is even possible.
    Th date dimension is recognised as date because I can apply date filter.  I want to make it neat. Can anyone help me with this please? 
    It must be 'Date' Level. 
    Kind regards

    Hi SQLMa,
    Could you please elaborate more detail regarding the "Date" dimension structure? In order to display the date format with Month-Year, we should build a hierarchy to organize the granularity of date dimension at SSAS level. Please
    refer to the documents below:
    Create a Date type Dimension:
    http://msdn.microsoft.com/en-us/library/ms174884.aspx
    Modifying the Date Dimension:
    http://msdn.microsoft.com/en-us/library/ms166578.aspx
    Regards,
    Elvis Long
    TechNet Community Support

  • Webi Chart Dynamic X Axis lenght

    Dear experts,
    Is it possible to define an X axis as dynamic? I mean, is there a way that the chart size changes accordingly to the data show, i.e, if I choose to see only January (X axis) I would have a smaller chart (1 column only) but if I choose to see from Jan to Dec I would have a bigger chart since I would see 12 columns?
    Thanks in advance.
    Regards,
    Inê

    Hey Inês, You're correct, it is normal behavior of showing chart data if you have less object LOV's.
    Try these:
    Chart == >> properties ==>> Autofit Width & Autofit Height(if required).
    Hope it solves your prob.
    Gracias...!!

  • Line chart and vertical line repeats according period

    Hej,
    I have line chart and horizontal axis displays many months, thus is possible to vertical line from horizontal axis be displayed after years period and be color diferent?? My example, start displays January 2007,......finish December2007->DISPLAY VERTICAL LINE as LONG TICK, start January2008....and so on... is possible to set such repeater for line chart...thank for response.

    Hi 1234alex,
    According to your description, you want to create a non-vertical target line in top of bar chart to show different target.
    In Reporting Services, it’s impossible to create a non-vertical target line in top of bar chart. Because StripLines can only return a vertical target line even we put expression to make it dynamically . In this scenario, we can show the target line as values
    and use switch() function to specify different values based on different category. Then we just need to change the chart type for that series only. However, it only support horizontal line chart type in Reporting Services, so we suggest you use column chart
    instead of bar chart. Please refer to detail steps below:
    1. On Chart Data region, set an expression looks like:
         =switch(Fields!month.value=”A”,”4”,
         Fields!month.value=”B”,”8”, 
         Fields!month.value=”C”,”2”,
         Fields!month.value=”D”,”5”)
    2. Right click expression in Chart Data region, choose Change Chart type, select a line chart.
    3. Click Preview, the results look like:
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • Please help me to draw a special line Chart!

    Hi, I am programming to draw a line chart with X-axis as timepoint (for example, t1, t2, t3, t4, ...) and Y-axis as values (v1, v2, v3,v4,...) and have a line connecting all the (t, v) point. The issue I have encountered is that when a value (for example, v3) is missing at the timepont(t3), I still want the timepoint to show on X-axis but the connectiong line to stop at (t2, v2) and start again at (t4, v4). Is it possible to draw such a line chart? Is there any 3rd party supporting it? If so, may you please give me hints and help me out of this? Thanks alot.

    I did find this:
    import java.awt.event.*;
    import java.awt.*;
    public class Pxy extends Frame 
    public Pxy()
         addWindowListener(new WindowAdapter()
        {     public void windowClosing(WindowEvent ev)
              {     dispose();
                   System.exit(0);}});
         setBounds(1,1,670,450);
         txy pan = new txy();
         add(pan);     
         setVisible(true);
    public class txy extends Panel
         int xt[] = {1,1,1,0,1,1,1,1,0,1,1,1,1,0,1,1};
         int yv[] = {40,15,30,90,105,128,120,98,199,250,269,203,90,210,200,145};
         int sx = 40;
         int sy = 30;
    public txy()
         super();
         setBackground(Color.pink);
    public void paint(Graphics g)
         g.setColor(Color.white);
         for (int i=0; i < 21; i++)
              g.setColor(Color.white);
              g.drawLine(i*30+sx,sy,i*30+sx,sy*10);
              g.setColor(Color.blue);
              g.drawString(""+i*30,i*sy+sy+2,30*10+30/2);
         for (int i=0; i < 10; i++)
              g.setColor(Color.lightGray);
              g.drawLine(sx,i*30+sy,20*30+sx,i*30+sy);
              g.setColor(Color.blue);
              g.drawString(""+i*30,10,i*sy+sy+2);
         g.setColor(Color.black);
         for (int i=0; i < xt.length-1; i++)
              if (xt[ i ] == 1)
              g.drawLine(i*30+sx,yv[ i ]+sy,(i+1)*30+sx,yv[ i+1 ]+sy);
    public void update(Graphics g)
         paint(g);
    public static void main(String[] args )
         new Pxy();

  • Shade part of a line chart - Crystal 10.5

    On my line chart, the Y axis is a percentage 0 - 100%.  Is it possible to shade a part of this graph...for example the top part of the chart, from 95% to 100%?  This way it is easy for the client to see if the X axis data points are in the "good" range.
    Edited by: sdickinsen on May 13, 2011 9:15 PM

    Ok, figured it out.
    Make it a stacked area chart.  Change on of the series to a line, make another area transparent (to allow the gridlines to be seen), and set the max Y axis to 100.  (i'm having a percentage chart).
    Viola!
    Crazy stuff.

  • Dynamic X axis in line chart

    Hi All,
    I'm making a line chart in Webi in which different lines represent different products.  On the Y axis I have a measure (no problems here) and on the X axis I have months.  Naturally, different products enter the chart at different points along the X axis because they didn't all enter the portfolio at the same time as you can see in the print screen.  My problem is though, that I want the start point for all of the lines in the chart to be at the X-Y intersect, not the month that they actually started.  The values for the X axis should then be 1 - 24 or something similar to cover a 2 year period. Newer products would then have a line that stopped at some point in the middle of the chart, rather than one that started in the middle.
    I've been trying to create a new variable where min([Month]) is equal to 1 and then each month after that would be +1, but I'm not having any luck.
    Thanks in advance for any suggestions.

    Hi Jeremy,
    Thanks for your tip.  I've created a new variable to calculate the months between the very first date and the product specific dates, and then subtracted the difference so that all products start at the same date in the new variable.  But it still leaves me with the same problem as I had with the count variable earlier. When I place the new variable on the chart it returns a multivalue error.  Any idea on how I could get around this? In table format it looks like this:
    Table 1 with original month and new variable
    Table 2 with only new variable
    Table 3 desired outcome
    Product
    Month
    *Adjusted Month
    Rate
    Product
    *Adjusted Month
    Rate
    Product
    *Adjusted Month
    Rate
    Product 1
    201205
    201203
    Product 1
    #MULTIVALUE
    1.61%
    Product 1
    201203
    Product 1
    201206
    201204
    0.05%
    Product 2
    #MULTIVALUE
    2.12%
    Product 1
    201204
    0.05%
    Product 1
    201207
    201205
    0.07%
    Product 1
    201205
    0.07%
    Product 1
    201208
    201206
    0.39%
    Product 1
    201206
    0.39%
    Product 1
    201209
    201207
    0.65%
    Product 1
    201207
    0.65%
    Product 1
    201210
    201208
    0.94%
    Product 1
    201208
    0.94%
    Product 1
    201211
    201209
    1.18%
    Product 1
    201209
    1.18%
    Product 1
    201212
    201210
    1.16%
    Product 1
    201210
    1.16%
    Product 1
    201301
    201211
    1.61%
    Product 1
    201211
    1.61%
    Product 2
    201205
    201203
    Product 2
    201203
    Product 2
    201206
    201204
    0.02%
    Product 2
    201204
    0.02%
    Product 2
    201207
    201205
    0.29%
    Product 2
    201205
    0.29%
    Product 2
    201208
    201206
    0.74%
    Product 2
    201206
    0.74%
    Product 2
    201209
    201207
    0.95%
    Product 2
    201207
    0.95%
    Product 2
    201210
    201208
    1.37%
    Product 2
    201208
    1.37%
    Product 2
    201211
    201209
    1.77%
    Product 2
    201209
    1.77%
    Product 2
    201212
    201210
    2.12%
    Product 2
    201210
    2.12%

  • How to adjust x axis of line chart for dynamic values from universe

    Dear All,
    I am new to SAP Dashboard. I got one requirment that, user will pass single value to universe using prompt in Dashboard. Based on that prompt value / input parameter, universe will deliver data to plot line chart in my canvas. But, on every request i will get different count from universe. Like for request A = 30 records, request B = 56 records, request C = 2 records and so on.
    Based on the count, i want to display line chart in my canvas which will auto fit the screen. (Auto adjustment of X axis e.g For A, last record on x axis should be 30, for B = 56 and for C =2). Please let me know, how can i achive this task?.
    Note : i know, how to plot simple line chat with fix count.

    This is based on the output you get for the selection, get in touch with the functional team and get an idea about maximum no of result set will appear on various selection options. Say example if the functional guy says around 100 then go ahead and map 100 cells for the series.
    Then as arijit said you can use the ignore blank cell option to eliminate the blank rows in the selection.
    Note: Eliminating blank cells will always work at the end of the rows, not in the middle of the rows.

  • Using Repeater to generate dynamic line charts

    I have a call to a webservice that returns an array of
    arrays. The outside array relates to the "YEAR", and the inside
    arrays have 1 element for each "MONTH". I want to create a line
    chart that has a line for each year, with the x-axis having months
    across the bottom.
    I can create this just fine by coding the appropriate number
    of mx:LineSeries tags in my code.
    However, I have a case where the data that I get back from
    the webservice could have up to 5 years (I'm only coding for 3).
    So, I'd like to find a way to dynamically generate an mx:LineSeries
    instance for each one of these years. I can't seem to get this to
    work with using a Repeater.
    This code isn't mine (got it from the docs), but it matches
    with what i'm trying to do exactly:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Script><![CDATA[
    import mx.charts.events.ChartItemEvent;
    import mx.collections.ArrayCollection;
    [Bindable]
    public var expenses_2005:ArrayCollection = new
    ArrayCollection([
    {Year: 2005, Expense: "Taxes", Amount: 2000},
    {Year: 2005, Expense: "Gas", Amount: 100},
    {Year: 2005, Expense: "Food", Amount: 200}
    [Bindable]
    public var expenses_2006:ArrayCollection = new
    ArrayCollection([
    {Year: 2006, Expense: "Taxes", Amount: 2500},
    {Year: 2006, Expense: "Gas", Amount: 400},
    {Year: 2006, Expense: "Food", Amount: 300}
    [Bindable]
    public var expenses:ArrayCollection = new ArrayCollection([
    expenses_2005,
    expenses_2006
    ]]></mx:Script>
    <mx:LineChart dataProvider="{expenses}"
    showDataTips="true">
    <mx:horizontalAxis>
    <mx:CategoryAxis dataProvider="{expenses.getItemAt(0)}"
    categoryField="Expense" title="Expense"/>
    </mx:horizontalAxis>
    <mx:verticalAxis>
    <mx:LinearAxis displayName="Amount"/>
    </mx:verticalAxis>
    <mx:series>
    <mx:LineSeries xField="Expense" yField="Amount"
    displayName="2005" dataProvider="{expenses.getItemAt(0)}"/>
    <mx:LineSeries xField="Expense" yField="Amount"
    displayName="2006" dataProvider="{expenses.getItemAt(1)}"/>
    </mx:series>
    </mx:LineChart>
    </mx:Application>
    How can I now change this to dynamically build the necessary
    numbers of LineSeries?

    Hi jsevlie,
    What I usually do in this case is to create multiple
    LineSeries objects in ActionScript as soon as I get in the data.
    Here is some code to get you started:
    private var theChart:ColumnChart = new ColumnChart;
    function drawGraph(){
    this.theChart.dataProvider = this.theData;
    var ctgAxis:CategoryAxis = new CategoryAxis();
    ctgAxis.dataProvider = this.theData;
    ctgAxis.categoryField = "0";
    this.theChart.horizontalAxis = ctgAxis;
    var series:Array = new Array();
    for(var i:int=0; i < this.columnSpan; i++){
    var colSeries:ColumnSeries = new ColumnSeries();
    colSeries.yField = String(i+1);
    if(i==0){
    colSeries.displayName = "Revenue";
    colorSrs(colSeries, 0x3F48F3);
    else if(i==1){
    colSeries.displayName = "Profit";
    colorSrs(colSeries, 0xE9C836);
    else{
    colSeries.displayName = "Cost";
    colorSrs(colSeries, 0x6FB35F);
    series
    = colSeries;
    this.theChart.series = series;

  • Show Timestamp on Y axis in a SSRS line chart.

     I have a column with datatype as timestamp. And i want to show that column on Y axis in a line chart. two sample values from that column are 03/01/2014 11:30 PM and 03/02/2014 12:10 AM. In this case the data point for first value should be less compare
    to the second one, i.e. the series should consider the complete timestamp. Is there a way in SSRS to achieve it.
    If I only take the time value from timestamp on Y axis and plot the chart then the data point for 12:10 AM is less than the 11:30 PM, which is not true in this case.
    ApoorvaW

    Hi ApoorvaW,
    In Reporting Services, if we directly add the Timestamp field to Y Axis, it displays the count values in the line chart. When we modify the expression of the value to [Timestamp], it displays the date value in the Y Axis. Though it displays date type as
    the axis label, it represent the complete timestamp.
    So in my environment, the timestamp display very well in the line chart. If there are any misunderstanding, please elaborate the issue for further investigation.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How do I get more than 10 Y axis chart labels on a line chart

    I cannot find a way to get more than 10 y axis labels on a line chart. In AppleWorks you set your step size so a size of "10" which in my case equates to labels of 10, 20, 30, ..., 80, 90 and so on up to the MAX value. I would often have 20 or more labels. In iWork the size is the number of labels and the maximum size (number of labels) I can display is 10. With a min value of 30 and a max value of 330 each label jumps 30 points which doesn't give the resolution I need to see...and....when showing the data point values on the page in iWork they overlap each other and are unreadable even when stretched out on legal paper.

    What I am calling the X axis (horizontal) you are calling the Y axis. I need more than 10 labels on the vertical axis. Space for text is not a problem. I already have done exactly what you suggest for the horizontal axis. What I need is to get 30 value labels on the vertical axis (You show 5 in your example) along with the many more than 10 I have on the horizontal axis. The 10 through 300 value labels run vertically, and roughly 90 data points, one per day covering 3 months runs horizontally with a date label every 7 days. This graph represents values recorded daily at the same time each day.

  • Line chart cuts off x-Axis value

    Hi All,
    Have created a display to display an x-Axis value versus a Y-Axis value using a Line Chart. We want to maximize the chart space so we have removed the Legend from the display, problem is doing this cuts of part of the final x-Axis label and part of the final data point on the graph ? Why - can we move the borders out ?
    Emmett

    Emmett,
    You can "Fake" some extra space out of the right side of the chart by setting the legend colors to blend into the background of the chart.  This includes unchecking the "Use Pen Color?" box and setting the labels in the legend to match as well.  Then simply set the legend to be whatever additional width you need.  Other than this there's not really any other way that I can think of.  Hope this helps.
    Sam

  • Showing one data point on a line chart - X-axis label placed away from its actual position

    Hi Guys,
         In line chart, i used CircleItemRenderer to show single data point. It shows correctly if it is single data point. But the x-axis label placed away from its actual position. Right now it displayed left most position where the line chart starts. I need to move that label straight of that datapoint where it plotted.  Please see the screen shot attached with this post.
    In screen shot, x-axis label "Jan" displayed in left most position.
         And how can we show the datatip for single datapoint. At present, we can't able to see the datatips also with single datapoint.
         Can any body help me to fix those two issues.

    I figured out a way to customize a single datapoint in a line series.  The solution is at this link:
    http://www.flexdeveloper.eu/forums/flex-charting/customize-a-datapoint-in-a-line-series/

  • Secondary Axis Disappears in Pivot Table Chart

    I'm using Excel 2010 and have a pivot chart based off of a PowerPivot table with multiple slicers. The X or secondary axis disappears randomly and the only way to get it to reappear is to go back into the chart property and re-assign the value to the secondary
    axis.

    I had the same problem. It happens when filtered results doesn't contain values for series i used in the secondary axes. When i toggle off filters and turn back to all results the pivot chart "forget" the secondary axis setting....
    Anyone have find a solution?

  • Webi Line Chart to Start from Axis Origin

    Hi,
    Need a quick help in BI4.0 webi line chart formatting.
    I have datetime on x-axis and cash flow on Y-axis.
    Say my cash flow starts at 9am on a day with $100 , my line chart starts the plot from 9am i.e. (9am,$100)
    instead I want the line plot to always start from (0,0)
    This is probably a chart option, but i dont find it.

    Hi Thangaraj,
    I have a similar requirement for a line chart to start from 0,0. while its min value is greater than 0.
    We are on BO 4.1 SP4  and there is no direct chart option for this.
    I would like to know whether you were able to achieve this in web intelligence.
    I really appreciate your reply.
    Thanks,
    Sri

Maybe you are looking for