Chart Not Grouping Series in Stacked Bars

I'm trying to show  hours spent among different work types or categories each month. The labels are all correct in the chart, but I can't figure out why the series are not stacking as expected. Developement, Admin, and Project are
all values from a choice column, [Work Type].  [Month] is calcuated based on [Week Ending] date in order to group all of the timecard entries together.  I was hoping the attached chart would show 50 hours of "Project"
work, 20 hours of "Admin" and 15 hours of "Development" all in the same month, February, although the project work ocurred in two different weeks of that month. 
The calcuation used to determine [Month] is: (Single Line of Text), =YEAR([Week Ending])&"/"&RIGHT("0"&MONTH([Week Ending]),2).  And here's what I'm using in the Data Conneciton Wizard, Step 4:

Hi,
I tested the same scenario per your post and I got the same results as you got.
It seems that the Group By function cannot work correctly in Chart web part.
As a workaround, we can either create Pivot tables and use them as data source for Chart web part in SharePoint or we can create Pivot charts in Excel and show them directly in SharePoint.
For more details, please refer to the link below:
http://planetoss.com/nonoss/sharepoint-charts-from-lists-using-chart-web-parts-pivot-tables-and-excel-charts/
Best regards.
Thanks
Victoria Xia
TechNet Community Support

Similar Messages

  • How to format individual series in stacked bar chart

    Hi,
    Is there any way I can format (sort order, or transperency) of each series individually in a horizontal stacked bar chart?
    I am trying to create a gantt chart, where I am using two series
    1. Start Date
    2. Duration
    The function of series one (Start Date) is only to place the start position of the horizontal bar of series 2 (duration) in the year time frame.
    After creation of the stacked bar chart, I want to make the reansperency of series 1 (start Date) as 0 so that the duration bar apears floating and gives the feel of Gantt chart.
    Thanks
    Aurobindo

    You may wish to see the article <a href="http://www.xcelsiusjournal.com/index.php?option=com_content&task=view&id=45&Itemid=2" target="_blank" title="Constructing a Simplified Gantt Chart in Crystal Xcelsius">Constructing a Simplified Gantt Chart in Crystal Xcelsius</a>. It does require changing the skin to Windows Classic, but that&#39;s a small price to pay for having a gantt-like capability.  <p>Loren Abdulezer/Evolving Technologies Corporation<br /><strong><a href="http://www.XcelsiusBestPractices.com">www.XcelsiusBestPractices.com</a></strong><br /><strong><a href="http://www.XcelsiusJournal.com">www.XcelsiusJournal.com</a></strong> </p>

  • SVG CHart error ORA-20001 with Stacked Bar Chart HTML DB 1.6.0.00.87

    Hi,
    during I put a How-To into execution (How To Create a Stacked Bar Chart) I'll get the following error code:
    SVG Chart error:ORA-20001:line_Chart error:ORA-20001:
    get_data error:ORA-20001:Parse error:ORA009
    (see http://www.oracle.com/technology/products/database/htmldb/howtos/index.html)
    This Situation occurs when i add a second series to the
    chart. The first series works fine. I've used the following SQL-Statement:
    select null l, sales_month, revenue from (select to_char(o.order_timestamp,'Mon YYYY') sales_month, sum(oi.quantity * oi.unit_price) revenue, to_date(to_char(o.order_timestamp,'Mon YYYY'),'Mon YYYY') sales_month_order from DEMO_PRODUCT_INFO p, DEMO_ORDER_ITEMS oi, DEMO_ORDERS o where o.order_timestamp <= (trunc(sysdate,'MON')-1)and o.order_timestamp > (trunc(sysdate-365,'MON'))and o.order_id = oi.order_id and oi.product_id = p.product_id and p.category = 'Audio' group by to_char(o.order_timestamp,'Mon YYYY') order by sales_month_order);
    Please help.
    Regards
    Detlev

    Well,
    I've just been struggling for a couple of hours with a cluster bar chart giving the same problem.
    The problem is definitely with "ORDER BY".
    I guess the graphing chart is taking the sql query as a string and then does some other manipulation on it which ends abnormally when you include the order by clause.
    I presume that if you embed the query in a
    SELECT * FROM (<actual query with order by>)
    it might mitigate the problem.
    Bye,
    Flavio

  • Problems with date in stacked bar charts

    I am having a lot of problems trying to generate stacked bar charts where one of the fields is a date. Using the chart generator in word, the stacked bar charts work perfectly if I use (for example) Labels=Country, Series=Product, Values=Quantity(Sum) . The correct quantities are shown.
    However if I change Country to Expiry (date), the quantities are all wrong ? Such that I have no idea how it is obtaining the values.
    The generated code is :
    <Graph depthAngle="50" depthRadius="8" pieDepth="30" pieTilt="20"
           seriesEffect="SE_AUTO_GRADIENT" graphType="BAR_VERT_STACK">
      <Title text="" visible="true" horizontalAlignment="CENTER"/>
      <LocalGridData colCount="{count(xdoxslt:group(.//G_MED,  'EXPIRY'))}"
                     rowCount="{count(xdoxslt:group(.//G_MED,  'PRODUCT'))}">
        <RowLabels>
          <xsl:for-each-group xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                              select=".//G_MED" group-by="PRODUCT">
            <Label>
              <xsl:value-of select="current-group()/PRODUCT"/>
            </Label>
          </xsl:for-each-group>
        </RowLabels>
        <ColLabels>
          <xsl:for-each-group xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                              select=".//G_MED" group-by="EXPIRY">
            <Label>
              <xsl:value-of select="current-group()/EXPIRY"/>
            </Label>
          </xsl:for-each-group>
        </ColLabels>
        <DataValues>
          <xsl:for-each-group xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                              select=".//G_MED" group-by="PRODUCT">
            <RowData>
              <xsl:for-each-group select="current-group()" group-by="EXPIRY">
                <Cell>
                  <xsl:value-of select="sum(current-group()/QUANTITY)"/>
                </Cell>
              </xsl:for-each-group>
            </RowData>
          </xsl:for-each-group>
        </DataValues>
      </LocalGridData>
    </Graph>Any help would be greatly appreciated !
    Cheers,
    Brent

    Thank you all for your replies so far:
    @Alex: You are right, using your short script in sqlplus gives me also 2009 as result
    So, I am now posting the essential excerpts of the procedure because the whole one is to large:
    function insert_szrl (my_fremd_name varchar, my_elementadresse varchar,
    my_zeitstempel varchar, my_wert float,
    my_status varchar, my_zyklus varchar,
    my_offset integer,
    my_quelle varchar, my_nzm_daten integer) return integer is
    begin
    my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24;
    if my_zyklus = 'mm' then
    my_zeitstempeldate := add_months(to_date(last_day(to_date(my_date, 'dd.mm.yyyy')), 'dd.mm.yyyy'),-1) +1 + (my_tageswechsel+1/24);
    my_days := to_date(last_day(to_date(my_date, 'dd.mm.yyyy')), 'dd.mm.yyyy') - add_months(to_date(last_day(to_date(my_date, 'dd.mm.yyyy')), 'dd.mm.yyyy'),-1);
    my_year := to_number(to_char(to_date(my_date,'dd.mm.yyyy'), 'yyyy'));
    ptime.umschalttage_tuned (my_year, my_ws, my_sw);
    end if;
    While debugging the complete procedure I see since the start only a date which looks like '01.04.2009 07:00:00'
    Edited by: user10994305 on 19.05.2009 15:58
    Edited by: user10994305 on 19.05.2009 15:58

  • Combined Side-by-Side and Stacked Bar Charts

    I need to create a chart with side-by-side stacked bar charts with one additional level of detail than appears to be available.  I have Crystal X.
    I need to show 2 bars for each customer and each bar needs to have 12 months of sales within the bar - each month a different color. 
    I can create 2 stacked bars - one for each year.  I can also create side-by-side bars - one for each year by customer.
    But I cannot seem to combine them.  Any ideas?
    Thank you in advance for your assistance.

    CR charts are very limited on what you can put in a chart. There have been several posts to the CR Idea Forum on this subject. You may need to do seperate charts.

  • Stacked bar combination

    Hi All,
    I have built a stacked vertical bar chart in one of my applications and now am trying to have a line on these stacked bars.
    Is there any chart type available for the stacked bar combination. Please advice.
    Thanks,
    Prasanthi.

    Oh sorry,
    for that you can may find the solution here?
    create stacked bar with line
    kind regards
    Kai

  • Negative values in stacked bar

    Hi
    I am using a custom chart.  In one column (stacked bar) I have two values (2 and -1).  I would expect the chart to draw one bar up from 0 to 2, and another bar down from 0 to -1 (as Excel would do in this situation).
    However what actually happens is it draws the first bar from 0 to -1 then draws the second bar over this from -1 to 1.
    As usual, any help is much appreciated, and if you need any further info please just ask.
    Nick
    PS Here is my data
      <?xml version="1.0" encoding="UTF-8" ?>
    - <Rowsets DateCreated="2007-10-25T15:47:11" EndDate="2007-10-25T15:47:11" StartDate="2007-10-25T14:47:11" Version="11.5.3">
    - <Rowset>
    - <Columns>
      <Column Description="" MaxRange="1" MinRange="0" Name="DateTime" SQLDataType="93" SourceColumn="DateTime" />
      <Column Description="" MaxRange="1" MinRange="0" Name="title" SQLDataType="1" SourceColumn="title" />
      <Column Description="" MaxRange="1" MinRange="0" Name="Category" SQLDataType="1" SourceColumn="Category" />
      <Column Description="" MaxRange="1" MinRange="0" Name="Qty" SQLDataType="8" SourceColumn="Qty" />
      </Columns>
    - <Row>
      <DateTime>2007-10-20T00:00:00</DateTime>
      <title>Prior</title>
      <Category>DepReq</Category>
      <Qty>-1</Qty>
      </Row>
    - <Row>
      <DateTime>2008-03-15T00:00:00</DateTime>
      <title>Post</title>
      <Category>DepReq</Category>
      <Qty>-1</Qty>
      </Row>
    - <Row>
      <DateTime>2007-10-20T00:00:00</DateTime>
      <title>Prior</title>
      <Category>PurRqs</Category>
      <Qty>0</Qty>
      </Row>
    - <Row>
      <DateTime>2008-03-15T00:00:00</DateTime>
      <title>Post</title>
      <Category>PurRqs</Category>
      <Qty>2</Qty>
      </Row>
    - <Row>
      <DateTime>2007-10-20T00:00:00</DateTime>
      <title>Prior</title>
      <Category>variance</Category>
      <Qty>-1</Qty>
      </Row>
    - <Row>
      <DateTime>2008-03-15T00:00:00</DateTime>
      <title>Post</title>
      <Category>variance</Category>
      <Qty>0</Qty>
      </Row>
      </Rowset>
      </Rowsets>
    Here is my Display Template
    <?xml version="1.0" encoding="UTF-8"?>
    <iChart AxisLabelColumns="title" ChartType="Custom" Decimals.1="0"
    Decimals.2="0" Decimals.3="0" GlobalDecimals="0" GlobalMaxRange="30.0"
    GlobalMinRange="-10.0" GlobalServerScaling="false"
    HorizontalGridColor="#E0E0E0" InterpolateLines="false"
    LabelColumns="Category" MaxRange.1="60.0" MaxRange.3="60.0"
    MinRange.1="-20.0" MinRange.3="-20.0" PenType.1="StackedBar"
    PenType.2="StackedBar" PenType.3="Line" SaveDate="10/25/2007 15:27:33"
    ShowHorizontalGrid="false" ShowTagDescription="false"
    ShowTimeControl="false" ShowVerticalGrid="false" ThreeD="true"
    UseGlobalDecimals="true" UseGlobalRanges="true" ValueColumns="Qty"
    Version="11.5.3" XAxisLabelDepth="2" XAxisShowLabels="false"
    XAxisThreeD="false" XAxisTicksPerLabel="1" YAxisThreeD="false"
    ZeroBasedCenterline="true" ZeroBasedScale="true"/>

    Nick,
    I would just use the StackedBar mode, since it will do a better job of determining the pseudo pen names you want based upon the data mapping of Category / Title.  If there was a particular reason for using Custom mode then please advise.
    This DT seems to work just fine with the sample dataset you provided earlier:
    <?xml version="1.0" encoding="UTF-8"?><iChart AxisLabelColumns="title" ChartType="StackedBar" GlobalMaxRange="1.0" GlobalMinRange="-1.0" GlobalServerScaling="false" HorizontalGridColor="#E0E0E0" InterpolateLines="false" LabelColumns="Category" SaveDate="11/06/2007 15:05:57" ShowHorizontalGrid="false" ShowMouseTracking="true" ShowTagDescription="false" ShowTimeControl="false" ShowVerticalGrid="false" UseGlobalDecimals="true" UseGlobalRanges="true" ValueColumns="Qty" Version="11.5.3" XAxisShowLabels="false" XAxisThreeD="false" XAxisTicksPerLabel="1" YAxisThreeD="false" YAxisTicksPerLabel="1" ZeroBasedCenterline="true"/>
    I would also recommend using "NA" instead of "0" to keep your dataset squared up, unless the values are truly zero.  If you are building the dataset in BLS then use the nullnumber expression in the link editor instead of a hardcoded 0.  If the dataset comes from a query, the null values should be sufficient.
    Regards,
    Jeremy

  • Stacked Bar chart does not overlap series

    I have a stacked bar chart with to values "Invoiced" and "Budget" and 2 categories YEAR and MONTH - the problem is that the bar chart shows the values Invoiced and Budget in Top of each other and Not overlapping each other . ex:
    NOW:  Invoiced =  200   Budget = 300   - Bar chart shows a column of 500 for the month (NOT correct)
    What I want is to show 1 column for each month where up to 200 the colour is green and from 200 to 300 the colour is blue for example....
    How to achieve this ?

    Hi HCMJ,
    By default, the bar value will not overlapping each other in stacked bar chart, and we cannot increase or decrease the gap between the series in Reporting Services.
    Based on my research, I find a workaround can achieve your requirement, please refer to the steps below:
    Create a dataset with the query below (sample data):
    CREATE TABLE #temp(name nvarchar(50),time nvarchar(50),value int)
    INSERT INTO #temp VALUES     ('Invoiced','YEAR',100),('Invoiced','MONTH',200),('Budget','MONTH',300),('Budget','YEAR',600)
    SELECT * FROM  #temp
    Insert time field to Category Groups pane, and change the group name to “time”.
    Insert value field to Values pane, then change the value to like below:
    =min(Fields!value.Value,"time")
    Insert another field with the following expression to Values pane:
    =max(Fields!value.Value,"time")
    Change the type of chart from Stacked Bar Chart to Range Bar Chart.
    Right-click the Series field to change the Fill color to #9bff8c00 (DarkOrange with 155 Transparency) or any color with Transparency you like. Now we can get the following:
    Preview it and get the following result:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Stacked bar chart with single group

    Post Author: rt50896
    CA Forum: Charts and Graphs
    Dear all,   I have a question about stacked bar chart with one group value(normally more than one group value is ok)   ex. YYYYMM      PRODUCT    AMT        -
            200601          ABC            1000        200602          ABC              300        200603          ABC              500       .....   the data collection is as above,then chart display: x-axis as YYYYMM,y-axis as PRODUCT...   but why this case the bar chart color not the same for each YYYYMM? and legend not display one PRODUCT as ABC only?   the bar chart display like this:   http://tkfiles.storage.live.com/y1po30C7CH6eW9phoLAXH89MBGwFLYdEZ3kOMQXUQzDzwM-VNnffibEwqPI8TIUNBm1f7uKTjnkaOI   ps. crystal report version is 8.5Regina

    Thanks, Jeff. I did try this but for whatever reason it doesn't make a difference. I think it is because if there's no data for a given series for a certain week, there is no entry in the data set that is sent to AnyChart.
    I was able to get around the issue by "filling in" the missing weeks from each data series. To generate the list of "Week Of" dates for a given date range, I used this code:
    select
         trunc (each_day) as week_of,
         0 as effort
    from (
         select
              (to_date(:p920_start_date,:app_date_format) + 2 - to_char(to_date(:p920_start_date,:app_date_format),'D') - 1) + level each_day
         from dual
         connect by level <= to_date(:p920_end_date,:app_date_format) - to_date(:p920_start_date,:app_date_format) + 1
    where
         to_char (each_day, 'D') = '2'This creates an effort entry of 0 for each week within the date range; I use the Monday date of a week as the "Week Of" date. I then union this with my actual data and summarize by week and viola, I get the weeks in order. This also has the benefit of showing a week for which there are no entries in any of the three series.
    Thanks for taking a look at this.
    Mike

  • Stacked Bar Chart with Multiple Series Sort Question

    Hi,
    Apex version 4.1.1
    I have a stacked bar chart with three separate series, one showing customer effort, another showing project effort and the third showing other effort, summarized by calendar week. The x-axis of the chart is the calendar "week of" date, and the y-axis has a bar for each of the three series. Not every type of effort occurs every week.
    When AnyChart renders the chart, the order of entries on the x-axis seems to be dependent both on which series are present in a given week as well as the "week of" date. Weeks with all three series sort in order by calendar date, followed by weeks where just the 2nd & 3rd series are present, followed by weeks where just the 3rd series is present. See this [url http://tinypic.com/r/b9zdt/6] picture of the chart  noting the "week of" dates. Note that the months go Sep-Oct-Nov-Aug-Oct.
    Is there a way to force AnyChart to sort the x-axis in chronological order regardless of whether there is data for all three series for a given week? I have looked through the AnyChart XML reference but cannot find a way to do this.
    Incidentally, I can solve the sorting problem by combining all three series into a single query:
    select
      null as link,
      week_of as label,
      sum(customer_effort) as "Customer Effort",
      sum(project_effort) as "Project Effort",
      sum(other_effort) as "Training, Admin and Other Effort"
    from ...But if I do this, I cannot figure out how to have each bar on a given week link to a different detail page, e.g., if I click on a bar representing customer effort I want to link to one page, but if I click on a bar representing project effort, I want to link to a different page. I have had a look at the [url http://apex.oracle.com/pls/apex/f?p=36648:59:1570983160946101::NO:::] chart examples  posted on apex.oracle.com, but cannot figure out how to apply to multiple series in a single query.
    Thanks,
    Mike

    Thanks, Jeff. I did try this but for whatever reason it doesn't make a difference. I think it is because if there's no data for a given series for a certain week, there is no entry in the data set that is sent to AnyChart.
    I was able to get around the issue by "filling in" the missing weeks from each data series. To generate the list of "Week Of" dates for a given date range, I used this code:
    select
         trunc (each_day) as week_of,
         0 as effort
    from (
         select
              (to_date(:p920_start_date,:app_date_format) + 2 - to_char(to_date(:p920_start_date,:app_date_format),'D') - 1) + level each_day
         from dual
         connect by level <= to_date(:p920_end_date,:app_date_format) - to_date(:p920_start_date,:app_date_format) + 1
    where
         to_char (each_day, 'D') = '2'This creates an effort entry of 0 for each week within the date range; I use the Monday date of a week as the "Week Of" date. I then union this with my actual data and summarize by week and viola, I get the weeks in order. This also has the benefit of showing a week for which there are no entries in any of the three series.
    Thanks for taking a look at this.
    Mike

  • Stacked bar group by series?

    Hello, I'm trying to convert data stored like so into a stacked bar chart.
    group_nm
    P0
    P1
    Top 25
    0.58
    0.31
    Remainder
    0.42
    0.69
    And display it so there's one column for P0 and one for P1 with Top25 stacked with remainder like:
    P0| 58% | 42%|
    P1| 31% | 69% |
    Setting one of the series to the secondary horizontal axis sort of works but the axis labels are off center since I guess it still thinks it's a clustered bar. Is this possible?

    Hi Lampjaw,
    Thank your for your post.
    Based on your description, did you have change the x-axis to reverse direction in your chart? Based on my test, I cannot reproduce the similar issue. Please refer to the screenshot below:
    Since I am not very clearly about your questions, could you please elaborate the issue for further investigation?
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • 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

  • How to creat a grouped stacked bar chart

    Hi,
    I am trying to create a grouped stacked bar chart.
    For 'on change of ' i have -> 1) update_month                                                                               
    2) update_source ( i have 2 values for this field -> website and ivr)
    And for 'show value' field i am trying to use 1) sum of valid_count
                                                                          2) sum of invalid_count
    -> I need two stacked bars for each month, each stacked bar belongs to either website or ivr and is made of valid and invalid counts for that particular update source.
    when i tried to use the fields as i mentioned above, i got an error saying
    'The data you have selected doesnt fit the chart type' and explanation is as follows 'This chart type requires 2 on change of fields and i show value field OR 1 on change of field and many show value fields'.
    I have selected a stacked bar chart.
    Does any one know how to do this?
    i am trying to create a chart similar to the one in the following link http://www.java2s.com/Code/Java/Chart/JFreeChartStackedBarChartDemo4.htm
    Thanks

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • BIP 11.1.1.7 - Stacked Bar chart data label not visible in pdf

    Hi all,
    I have a report built with the online editor. This contains a stacked bar chart with percentage values in a repeating section and I made the property DataVisible=true.
    When I view the report in interactive mode it all works: I can see the data label for every value of the parameter but when I view in any other format (PDF, PPT, ecc..) the data labels are visible in the first chart (for the first value of the parameter) while in the other charts they aren't. This doesn't happens for other types of chart, for example with a pie chart.
    Can someone help me or tell if it is a bug?
    Thanks,
    Micaela

    Hi Mitalee,
    Would you please check the PAM at https://websmp108.sap-ag.de/~sapidb/012002523100018972812014E
    On page 11 it says 64 bit IE11 is not supported; is your IE11 32 bit or 64 bit?

  • Hide Textmarker for one series item on stacked bar chart

    I have created a stacked bar chart on which I have to show Datamarkers, but only for the two data series out of three.
    Is it possible to show the textmarkers for the two series and hide it for the third one?

    Can someone help me?

Maybe you are looking for

  • How to install App Store on my macbook pro?

    Hi I have del the app "app store" as i can't open it,so i decided to del and install it back but I jus can't find the app.Can someone pl's advice.Thank You

  • ABAP Proxy not generate in QAS

    Hi All, I´m with problem in Abap Proxy objects, I developer and transported to QAS environment but has not generate in QAS. I checked this objects in environment QAS and all were transported. When I go to transaction SPROXY, it´s with not generate. C

  • Printfab 2.0.4 and 10.4.8 (Client & Server)

    Hello In another thread http://discussions.apple.com/thread.jspa?messageID=2223082" I mentioned that I wasn't able to get PrintFab Software running with the Server 10.3.9 Now I tried it again with 10.4.8. No output. You see the client transmit the da

  • Undefined VARIABLE in FORM

    Dear All, Another post with a classic "undefined <VARIABLE> in FORM" error message I'm afraid. I don't think this is the usual problem of scoping however or form not submitting the data. Basically I've checked and triple checked the file with the <cf

  • How do I get the value of a comboBox item that is in a grid?

    Hi all, I have a data grid that has comboBoxes in two of its columns. What I need to do is get the values of those bombo boxes when a user highlights the row of the grid NOT when the user uses the comboBox. I understand how to pull the values out onc