Ordering of values in Stacked Area Chart

I have a stacked area chart that I want to order the stack from highest to shortest based on the last year.  The area chart has years and schools on the x axis and count one the y-axis.  I want to stack based on the last year of the school count.
When I order it in the chart expert, it seems to pick the first year as the criteria to order the stack.
Is there a way I could use some type of formula or something.
Thanks in advance.
Eric

Hi Eric,
As a static solution, you could use specified order.
In the Chart Expert, when you select your field located in the "On change of" list,
and click on the button "Order", you can change the order to: "in specified order"
Another static solution could be to actually create a formula like:
If {My Database Field} = "My Value 1" Then
     1
Else If {My Database Field} = "My Value 2" Then
     2
Else If {My Database Field} = "My Value 3" Then
     3
Then use the formula on the chart, instead of the database field.
And on the Legend, it will display the number like: 1, 2, 3,...
You can then replace the text on the legend by text object with the right heading, or manually create a legend with text objects.
Note that one thing to be careful of, it's if for one group, not all the subgroup are present, then the order will not be retained.
For example:
If I have on my chart the following:
- Country
- Product
With a summary on sales amount.
If I have the following data:
Canada
     - Product 1
     - Product 2
     - Product 4
USA
     - Product 1
     - Product 2
     - Product 3
     - Product 4
Then despite we set a specified order of:
     - Product 1
     - Product 2
     - Product 3
     - Product 4
The chart will display the order of:
     - Product 1
     - Product 2
     - Product 4
     - Product 3
This is happening because the first group on the chart doesn't have all the products, and it will use the element of that sub-group to order the information.
If you know that your data set may not have all the data for a sub-group used on the chart, then none of the above suggestion will work for you, unless you write a stored procedure, or a command object that always returns all the subgroup elements, or you use a subreport technique which is described in the sample report provided in the following knowledge  article:
1245204 - Date range in Chart for Crystal for all dates not just those dates with data
The Knowledge Base Article refer to dates, but the same technique applies for any type of data.
Hope this help!
Patrick

Similar Messages

  • Stacked area chart with start and end dates

    Hi,
    I'm trying to create a stacked area chart from values that have a start date and an end date. I'd like the area to be drawn as a sum of the values at each x-axis date interval. So if I have data like:
    Start              
    End               
    Value
    2013-01-01      2015-01-01     
    100
    2013-09-01      2014-01-01     
    200
    2013-01-01      2016-01-01     
    300
    What I need is to have the chart show the area y-axis at 400 from the start up to 2013-09-01 where it would rise to 600. At 2014-01-01 it would drop back down to 400 and at 2015-01-01 it would drop to 300 until the end.
    Is this possible without calculating the sums for each date beforehand?

    Hi Erba,
    According to your description, it seems that you need add Start and End fields with the same level (without group relationship) to the x-axis in stacked area chart. As per my understanding, we couldn’t add multiple fields in one group at the same level.
    So in order to work around this issue, we can modify the dataset to combine the Start and End field into one filed, then add the new filed to x-axis. For more details, please refer to the steps below:
    Modify the dataset with the following query statement:
    select Start as date , Value as value
    from table_name
    union
    select [End] as date, (0-Value) as value
    from table_name 
    Drag a Stacked Area Chart to design surface.
    Insert value field to Values pane, then modify it with the expression below:
    =runningvalue(Fields!vlaue.Value,sum,"DataSet_name")
    Insert date field to Category Group pane.
    The following screenshot is for your reference:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Problem with Stacked area chart

    Hi all,
    I'm working on delivery data according to month having input(combo) as the year. I'm trying to display the data in percentages in Stacked area chart having series as ontime delivery, 1 week late, 2 weeks late,........5 weeks late and category labels as months. The problem is when I take the Preview of data I get to see the data for ontime, 1 week , 2 week as it should be but when I hover the mouse over the 2 weeks data area  mouse over values shows 5 weeks data(0 %) where as in reality the colored area belongs to 2 weeks data. I tried to delete 5 weeks series data and now it shows as 4 weeks data.
    What could be the problem ?
    Thanks

    >
    Raghavendra Gadhamsetty wrote:
    > Did you try adding the formula year(datefield) in X axis by removing the existing datefield?
    >
    > Regards,
    > Raghavendra
    Thanks for the answer regarding dates. I'm still awaiting an answer on the following part of my question:
    "My problem is that I am trying to configure a stacked area chart to show various related financial figures over the period of a year or more. My problem with a regular stacked area chart is that because of the large number of data points (daily) the X axis becomes far too chaotic with the large number of labels. The obvious option seems to be to use the "Show time scale" option in axis settings, however when you chose this option the "Date axis area" chart type is automatically chosen and this chart type doesn't seem to allow stacking. Can anybody help?"
    Thanks in advance for your help.
    Kind Regards,
    Mark

  • Crystal 11 Stacked Area Chart Data Start Point X-Axis

    I am trying to create a Stacked area chart and by default there is space between the y-axis and the first data point on the x-axis. Is there any way to eliminate this space so that the first data point appears directly on the y-axis?

    I found the answer to my question. Uncheck the box "Value Axis Crosses Between Groups" in the "Group (X) Axis Settings" dialog box.
    Edited by: Chuck Gebhardt on Oct 14, 2011 12:28 AM

  • Area charts vs stacked area charts

    Hello,
    Once again, I think that I have missed something. I can use the area chart component to create a chart with  2 series of data. It looks just like the one I created using the stacked area chart component. I would think that there would be some difference betwwen the 2 chart componens, but I can't see what the difference is, so I'm hoping someone can tell me.
    Thank you
    Tracy

    for the normal chart you have every series in column, but in the stacked chart you have all the series within one column and every series start to count after the pervious one values.
    good luck
    Amr

  • Date Axis Stacked Area Charts

    Hi,
    I'm just evaluating the full version of Crystal Reports 2008 having had some frustrations with the design restrictions in the basic version that ships with Visual Studio 2008. Particularly important to me is the design features for charting data. A lot of the charts I need to build have daily data points and the dates for these data points are represented as labels on the X axis. My problem has been that when you try and build a report with several months or more worth of data points the X axis is getting way too crowded even to the extent of being unreadable with overlapping labels. I've noticed in the full version that there is a date axis chart type whereby you can alter the scale of the X axis e.g. to only show a date at a frequency once per month or greater resulting in the X axis being readable. This seems to work great for line charts etc, however one of the charts I need is a stacked area chart and unfortunately I can find no options / chart types that allow me to scale the dates on the X axis. I've seen there is a date axis chart for area charts, but there is no option of having this chart type as stacked. I know you can also skip data labels in X axis group options, but the max I can skip is 2 and so that doesn't really help me either.
    Is there any way of achieving a stacked area chart with a scaled date axis in Crystal Reports 2008? If not it seems to me that the lack of this feature is a real omission from the product. Even Excel charts can handle this type of chart and I would imagine Crystal Reports charts should be more advanced in its charting capabilities.
    Any help or recommendations would be appreciated.
    Kind Regards,
    Mark

    I have run in to the same problem.  I work for a systems integration company and I purchased this software because I have a lot of crystal reports and .NET experience but I have very minimal crystal chart experience.  I need to use the charting to display data over time collections.  I need to show all data points collected but for some series that I deal with I need to be able to scale the x-axis labels to something that is legible.  There is an aftermarket package(CRReports3.5) for $500 more dollars that would enable me to control this but it seems like alot more money for a small piece of functionality that should already be built in.  I have Crystal Reports 2008 and am working with visual studio 2008 can someone please tell me is there ANY WAY to achieve this functionality without purchasing additional software?  Otherwise this software purchase was worthless for my current project.
    Regards
    Dave Bedo

  • Turning PM notification into work order - standard value for business area

    Hello,
    when turning a PM notification into a work order in IW22, by pressing the create button, a windows comes up where
    'Order type', 'Business Area' and 'Main Work Center' can be entered.
    The field for business area is empty, but I would like to set a standard value, that comes up automatically when this window opens.
    Where can I make settings for that?
    Thanks
    Anne

    in IW22 go to - extras -settings- default values
    note - these will apply to your user id only

  • Multiple values in stacked waveform chart...how to?

    I am using a single waveform chart which is staked showing 3 Y-axis value on single X-axis platform.....more clearly I have bundled 3 values and connected to single waveform chart......Now, I want to add one more variable to each staked Y-axis....such that my each staked Y-axis have two variable....so that 6 y-axis variable in 3 staked plot(2 in each) having single platform of x-axis in single waveform chart.......
    how to do that?   

    There are 2 vis that do this. Attach is my chart.
    Attachments:
    Chart_Ini_Elnik-II.vi ‏24 KB
    Chart_Time-Init_No-Hist.vi ‏20 KB
    chart.png ‏92 KB

  • How to dynamically display data labels in area chart

    Hello, everyone,
    I have an stacked area chart with the data set as follows:
    Values: sales
    Category Group: date
    Series Group: products
    Now I have an requirement to display the data labels in the chart for the top 3 products with the highest sales within a certain time period (based on the date parameter). E.g. product1 in the product 1 area, product 2 in the product 2 area, etc.
    Is this possible? If so how do I go about doing it?
    Your help is much appreciated
    Kind regards

    Hi QQFA,
    According to your description, you have a stacked area chart. Values is sales, Category  Group is date, and Series Group is product. Now you want to show only top 3 products which has the highest sales data labels for each date.
    In SQL SERVER Reporting Service, we can achieve this goal by using expression in Series Label Properties setting. I have tested it on my local environment, you can follow these steps below:
    Create a new DataSet(name is “top3”).
    Select use a embedded dataset in my report and put
          “ select * from(
          select Product,Sales,[Date],
          ROW_NUMBER() over (partition by [Date] order by Sales desc) as rn
          from #temp)
          where rn<4 ”
        into Query.
    Right Click on your chart, select “show Data Labels”.
    Right Click on any label that just appeared, select Series Labels Properties .
    Click the “fx” next to Label data textbox.
    Type the expression below into Set expression for Label :
         “=IIF(InStr(Join(
         lookupset(Fields!Date.Value,Fields!Date.Value,Fields!Product.Value,
         "top3"),","),Fields!Product.Value)>0,Fields!Sales.Value,"")”
         (Ps: the “lookupset” function is only supported  in SQL SERVER 2008 R2 or later) 
    Click “OK”.
    Save and preview the chart ,as shown here:
    Now your chart will show you the top 3 highest sales product data labels in corresponding area.
    Reference:
    LookupSet Function
    Expression and Functions
    If you have any question ,please feel free to ask.
    Best Regards,
    Simon

  • Crystal Report 2008 Area Chart Data Label Problem

    Stacked Area Chart (Layer Cake) Issues:
    We would like to use a Crystal Report (2008) Stacked Area Layer Cake chart to show the workload RPD's (Sum of Resources Per Day = Y value axis) and Data_Date of the study (M,Month of study date = X value axis, using fiscal year type cycle Oct - Sept).
    Each Stacked Area represents the workload RPD's for a single project, or group of projects.
    When showing labels or series information the chart becomes overloaded and not visible to read because there is over 400 data points.
    Is there a way to break this dataset down so that values and/or labels are visible, using the crystal report options available? To suppress multiple layers and show a single label per layer?
    We tried using the Color Highlight to group and display them by group and condition. The labels and series data points are still over crowded.
    We also need to overlay the chart with the Average FC Totals from an additional Crosstab report.  Is there a way to overlay this over the 1st layer of the report?

    Stacked Area Chart (Layer Cake) Issues:
    We would like to use a Crystal Report (2008) Stacked Area Layer Cake chart to show the workload RPD's (Sum of Resources Per Day = Y value axis) and Data_Date of the study (M,Month of study date = X value axis, using fiscal year type cycle Oct - Sept).
    Each Stacked Area represents the workload RPD's for a single project, or group of projects.
    When showing labels or series information the chart becomes overloaded and not visible to read because there is over 400 data points.
    Is there a way to break this dataset down so that values and/or labels are visible, using the crystal report options available? To suppress multiple layers and show a single label per layer?
    We tried using the Color Highlight to group and display them by group and condition. The labels and series data points are still over crowded.
    We also need to overlay the chart with the Average FC Totals from an additional Crosstab report.  Is there a way to overlay this over the 1st layer of the report?

  • Stacked Bar Chart Descending order Based on Height

    I have a stacked bar chart and I want to order the bars based on height.  The tallest bar on the left.  Is there an easy and reliable way to doing this.  Also, I can concerned that I have two heights of the same value. 
    Thanks in advance.

    hi Eric,
    i am assuming that your stacked bar chart has more than 1 Show Value, correct?
    if so the following will work:
    1) create a new formula that adds up all of the different show values
    2) copy and paste your chart beside the existing chart so you don't inadvertently wreck it with the following steps
    3) in the new chart, using the Chart Expert add the new formula that is basically a sum of all of the show values
    4) you can use the Top N > All based on the new formula
    5) right click on the chart and then go to Chart Options, Axes, and then check Dual Axes
    6) you'll now get a Multi Axes tab...make sure that the new formula is alone in one of the columns
    7) you can go to the appearance tab and change the Overlap so that gaps are reduced
    8) you can now preview the report again, right click on the new series and change it to transparent
    cheers,
    jamie

  • Different sort order with line chart and stacked column chart

    Hi,
    I have a problem with sorting within flash charts.
    The chart should be ordered by a date column.
    If I'm using a line chart everything is fine. The columns in the chart are in the same order as returned by the query.
    If I change the chart type to stacked column chart, I get a wrong order.
    It is orderd like 5, 6, 7, 8, 9, 10, 1, 2, 3, 4.
    What's wrong?
    Here the query i use:
    SELECT NULL AS link,
    TO_CHAR (zeitpunkt, 'dd.mm.yyyy'),
    MAX (DECODE (db_sid, 'TI06E', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "TI06E",
    MAX (DECODE (db_sid, 'TI06T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "TI06T",
    MAX (DECODE (db_sid, 'TI14S', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "TI14S",
    MAX (DECODE (db_sid, 'TI14T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "TI14T",
    MAX (DECODE (db_sid, 'TI16T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "TI16T",
    MAX (DECODE (db_sid, 'TI24K', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "TI24K",
    MAX (DECODE (db_sid, 'TI33T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "TI33T",
    MAX (DECODE (db_sid, 'WF03E', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF03E",
    MAX (DECODE (db_sid, 'WF03K', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF03K",
    MAX (DECODE (db_sid, 'WF03T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF03T",
    MAX (DECODE (db_sid, 'WF05K', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF05K",
    MAX (DECODE (db_sid, 'WF05T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF05T",
    MAX (DECODE (db_sid, 'WF06T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF06T",
    MAX (DECODE (db_sid, 'WF07K', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF07K",
    MAX (DECODE (db_sid, 'WF07T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF07T",
    MAX (DECODE (db_sid, 'WF08K', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF08K",
    MAX (DECODE (db_sid, 'WF08T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF08T",
    MAX (DECODE (db_sid, 'WF09K', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF09K",
    MAX (DECODE (db_sid, 'WF09T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF09T",
    MAX (DECODE (db_sid, 'WF10K', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF10K",
    MAX (DECODE (db_sid, 'WF10T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF10T",
    MAX (DECODE (db_sid, 'WG04T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WG04T",
    MAX (DECODE (db_sid, 'WT05T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WT05T"
    FROM db_performance_temp
    ORDER BY zeitpunkt ASC
    SQL> desc db_performance_temp
    Name Null? Typ
    ZEITPUNKT DATE
    DB_SID VARCHAR2(30)
    VALUE NUMBER

    I found the solution.
    Anychart seems to have a problem with null values!
    The corrupted sorting only occured for a specific set of search criteria and a specific day. At this day some values have been null.
    I added a "nvl( [...], 0) for every value.
    No I get a correct sort order.

  • Stacked Bar Chart Order

    I am doing a stacked bar chart and I needt to control the vertical order of the bars. It seems to be always sorting alphabetically by my descriptions. My descriptions are 'No Mastery','Pre-mastery' and 'Mastery'.
    I want:
    Mastery
    Pre-Mastery
    No Mastery
    It always shows as:
    No Mastery
    Mastery
    Pre-Mastery
    How can you control this?

    Thanks Srinivas,
    Thank you for your reply! that solution indeed changes the alphabetical sort, the problem is that the order is now fixed (i.e. "Mastery" is always number 1)
    I need them ordered by a particular column (for example total sales) I guess I can use ranks instead of fixed numbers (i.e. concatenating the calculated sales rank instead of always using "1" for "Mastery").

  • Stacked bar chart should not sort by values but by month

    Hello,
    I have a problem concerning a stacked bar chart (Apex 4.0 / Anychart). X-Axis contains Months and Y-Axis contains values. Values are splittet to 4 Values (a,b,c,d)
    But if there is no value for a in February the sequence will jump to march displaying march before February and February at the end of the chart.
    In every month some values are missing, so I am not able to sort for a specific value.
    Do you know how to solve this problem? Thx in advance
    Thorsten

    Try to short in criteria and see how it works if not working check these links for reasons
    http://docs.oracle.com/cd/E21764_01/bi.1111/e16452/apndx_ui_chngs.htm
    Re: Sort measure on bar chart
    If helps pls mark

  • Stacked Bar Chart - Hiding legends with 0 values

    I'm using Crystal Reports 2008, building a report that will eventaully be called from an ASP.NET page.
    I've built a stacked bar chart that is displaying values per month of the number of various vehicle types.  The X values are the months, the Y values are the number of each vehicle type and the stacked series are each different vehicle type.  However, depending on the months that the user asks for, there may be some vehicle types that do not have any data, thus the number is 0.  Is there a way for the report to see that there is 0 data for this vehicle type and thus not include it in the legend of the various vehicle types?
    First time poster, so hopefully I explained everything well enough.  I searched the forums for anything matching Stacked Bar Chart and did not find anything.  I don't know how to find/query SAPNotes.
    Thanks.

    Thanks for the response, but I'm not familar with Alters?  Could you describe a bit more?  I didn't see anything in the documentation about it.

Maybe you are looking for

  • Itunes does not recognize my device

    itunes does not recognize my device

  • Captivate preview and publish text does not match slide. (Magic Shrinking Text)

    The text size on the Captivate slide matches the PowerPoint. So far so good. When I preview (or publish) the SCORM module, the text shows up as a smaller size and moved to the left. I don't understand why it doesn't match the original captivate slide

  • No shuffle in slide show?

    I hope I'm wrong on this, but... If I view an event and then click on slideshow, I can add music and shuffle. However, if I want to actually create a slideshow, I have all the options except for slide shuffle. In my case and for this slideshow it mat

  • Cs4 student cloud subscription?

    After trying to 'chat' with what I assume was a computer, I have what I think is a simple question. Will my student creative cloud membership allow me to activate a copy of CS4 Premier Pro? My normal computer has suffered from a recent move and I'd l

  • How can I disable the "New capabilities in .... Click here" message

    Hi, I really, really like PSE 9, but this constant message telling me that there are new capabilities in the spot healing brush is getting to be rather old.  I'm hoping there is a way to disable this initially helpful, but ultimately highly annoying