Chart axis sorting by Month

I have two database fields, "Month" and "Year" which will be combined in a formula for the purpose of a chart.
(eg: "{Table.Month}" and "{Table.YEAR}" = January 2008)
My question is, if I use a line chart, how can I have Crystal sort the Month/Year properly instead of having it sorted alphabetically like it is already doing? 
As of right now, I'm getting April 2007, April 2008, August 2007, August 2008, etc...

Try to create a formula to return a perfect date format by combining both month and year. Also try to combine a day value as 1 so that you will get a complete date. Now use this formula in chart and click on order button and choose group by monthly.
Hope this Helps!
Raghavendra

Similar Messages

  • Display Month verbiage on chart but sort by month number

    Hello,
    I have inserted a simple bar chart (values by month for a single year) and my goal is to get the data values to group by month.
    I found that I can achieve this by using a formula that extracts the month from my Date/TIme field MONTH({Command.OB_DELIVERY_DATE}).
    This works OK and displays months as 1, 2, 3,  etc. on my chart), but I want to display the month text instead (Jan, Feb, Mar)
    I tried a second variable:  ToText({Command.OB_DELIVERY_DATE},'MMMM')
    This works in displaying the verbiage of the months, however, the problem is that it groups the months on my chart alphabetically now (April is now my 1st month instead of January).
    What is the trick to displaying month verbiage on my chart, but still sorting these months in their proper numerical order?
    Many Thanks!

    Hi Dave,
    Try this please:
    1) Insert a Crosstab and place it on the Report Header. Use the Delivery Date field as the row and add the measure field as the Summary Field with the right Sum function
    2) Highlight the Delivery Date field > Group Options > set it to print 'For Each Mointh'
    3) While in the Crosstab Expert highlight the Delivery Date field > Click Group Options > Options  tab > check the option 'Customize Group Name field' > Select 'use formula as group name' and click the formula button beside. Use this code:
    ToText({Command.OB_DELIVERY_DATE},'MMMM')
    4) Right-click the Crosstab and select Insert Chart. Choose the right Chart Type
    5) Suppress the Section that holds the Crosstab
    Hope this helps.
    -Abhilash

  • Studio : Chart Based on day/month/year

    In Studio , There is a requirement for us to display chart based on day/month/year .
    Since Date attribute is not displayed as a Dimension in the chart configuration list , I have divided  date attribute into  day/month/year attributes and based on that I generated a sample chart
    But now I'm facing with a problem
    Suppose there are records for only July and Sep then the chart shows up for July and Sep , It doesn't show up for august.
    I agree that there are no records for august in my data domain that is the reason august is not displayed in the chart . But as per our requirement we should display august as well with zero count.
    I'm curious to know if there is any way to do this .

    The idea behind the calendar record type is it is a secondary, new record type you're introducing that compliments your "sales" record type.  The RECORDs you provided would be your "sales" record type, not your "calendar" record type.  To continue with your example, your "sales" records would look like what you provided:
    =============== RECORD ==================
    Id: 1
    sales_amount : 1000
    Month: Oct
    RecordType: sales
    date: 2012-10-01T00:00:00.000Z
    day: 01
    year: 2012
    =============== RECORD ==================
    Id: 5
    sales_amount: 1000
    Month: Dec
    RecordType: sales
    date: 2012-12-01T00:00:00.000Z
    day: 01
    year: 2012
    ==========================================
    And your "calendar" record type would be loaded subsequently.  I usually provide one Endeca record for every day for this record type:
    =============== RECORD ==================
    Id: 1
    Month: Oct
    RecordType: calendar
    date: 2012-10-01T00:00:00.000Z
    day: 01
    year: 2012
    =============== RECORD ==================
    Id: 2
    Month: Oct
    RecordType: calendar
    date: 2012-10-02T00:00:00.000Z
    day: 02
    year: 2012
    ==========================================
    (and so on, one for each day up to today...yawn)....
    =============== RECORD ==================
    Id: 790
    Month: July
    RecordType: calendar
    date: 2013-07-31T00:00:00.000Z
    day: 31
    year: 2013
    ==========================================
    Thus, when you write an EQL statement like:
    RETURN foo AS SELECT
    SUM(sales_amount) AS "TotSales"
    GROUP BY Month
    You will get a Month bucket for every month, where the "calendar" record type will be sure to offer a month where sales don't offer it...aka. fill in any "holes".
    HTH,
    Dan
    http://branchbird.com

  • How do I rotate chart axis labels?

    Trying to rotaet chart axis labels for the x-axis, but would like to know the same for the y-axis too. Know the solution for a text box, but doesn't seem to work for the axis labels.

    Hi Martin,
    The solution is the same for X and Y labels. Select the labels and then set the rotation angle, either in the Format Bar or in the Metrics Inspector.
    Jerry

  • How do I sort by month ? using the "Month" format

    Hello All,
    Is it possible to sort by month using the follwoing SQL.
    Select TO_CHAR (RCA_CLOSE_DATE, 'MON-YY') "Month",
    SUM (ADJUSTMENT_INCL_GST)
    From My_Table
    Group By TO_CHAR (RCA_CLOSE_DATE, 'MON-YY')
    Output
    Month Sum(Adjustment Incl Gst)
    APR-06 $6,539,983.08
    AUG-06 $23,122,705.31
    FEB-06 $14,365,106.52
    JUL-06 $19,776,122.04
    JUN-06 $20,161,278.12
    MAR-06 $8,248,955.87
    MAY-06 $18,498,683.04
    NOV-06 $24,120,095.49
    OCT-06 $12,781,721.23
    SEP-06 $15,632,604.21
    Hope someone can help
    Frank

    If the desired sort order is MM-YYYY, then how would...
    ORDER BY
        TO_CHAR(RCA_CLOSE_DATE, 'MM-YYYY') ...not achieve this?
    Perhaps the original poster could clarify what they mean by "sort by month". In numeric order by month then year, in numeric order by year then month, or in some other order?
    If you do not like TO_CHAR, another approach (again assuming "numeric order by month then year" is what is desired) might be:
    SELECT
        TO_CHAR(RCA_CLOSE_DATE, 'MON-YY') AS MONTH,
        SUM(ADJUSTMENT_INCL_GST) AS TOTAL
    FROM
        MY_TABLE
    GROUP BY
        EXTRACT(MONTH FROM RCA_CLOSE_DATE),
        EXTRACT(YEAR FROM RCA_CLOSE_DATE),
        TO_CHAR(RCA_CLOSE_DATE, 'MON-YY')
    ORDER BY
        EXTRACT(MONTH FROM RCA_CLOSE_DATE),
        EXTRACT(YEAR FROM RCA_CLOSE_DATE)In any event, in a query with GROUP BY clause:
    1. The expression(s) in ORDER BY clause do not need to appear in the SELECT clause.
    2. The expression(s) in ORDER BY clause do need to appear in the GROUP BY clause (unless you want to order on the result of an aggregate expression, like involving SUM, which does not appear to be the case here).
    3. Expressions in the SELECT clause do need to appear in the GROUP BY clause, unless they are aggregate expressions, like involving SUM.
    Hope this helps.
    P.S. If the desired order is "in numeric order by year then month", then you might use TRUNC like this:
    SELECT
        TO_CHAR(RCA_CLOSE_DATE, 'MON-YY') AS MONTH,
        SUM(ADJUSTMENT_INCL_GST) AS TOTAL
    FROM
        MY_TABLE
    GROUP BY
        TRUNC(RCA_CLOSE_DATE, 'MONTH'),
        TO_CHAR(RCA_CLOSE_DATE, 'MON-YY')
    ORDER BY
        TRUNC(RCA_CLOSE_DATE, 'MONTH')Doing the TRUNC in a subquery and formatting the result in the outer query as John has suggested may be more efficient.

  • How to sum time values sorted by month/year?

    I would like to sum time values that are sorted by month/year. (Concept is based on a pilot's logbook)
    In Table 1, Column A is a date; Column B is the associated time value (duration).
    In Table 2, I would like to Sum the time value of Table 1 Column B by month an year.
    TABLE 1
    Date
    Time
    Header 3
    Jan 1, 2013
    2:30
    Jan 3, 2013
    4:15
    Jan 9, 2013
    3:55
    Feb 2, 2013
    5:01
    Feb 10, 2013
    1:33
    March 3, 2013
    5:55
    TABLE 2
    Month/YR
    Total Time
    Header 3
    Jan-13
    10:40
    Feb-13
    6:34
    Mar-13
    5:55
    Apr-13

    smash,
    Here's an example of what can be done:
    The formula in the Total column of Summary is:
    =SUMIFS(Log :: B, Log :: A, ">="&A, Log :: A, "<"&EOMONTH(A, 0)+1)
    The Month column of Summary is filled with a series of dates that can be formatted as Jan-13, etc, if you wish.
    I used the 0h 0m format for the Durations to distinguish it from times.
    Jerry

  • How to display PIE chart Axis label horizontally?

    Hi
    Currently my PIE chart axis label is displying in 2 lines. How make it to display in one line?
    Thank you

    hi,
    For Pie chart there will be no X-axis or Y-axis terms generally.
    Label/Text could be one of the following.
    Title?
    or Sub Title?
    or Foot note?
    Right Click -> Format Title . Reduce the font size such that it fits into a single line.
    Regards,
    Vamsee

  • Chart Axis: Label Renderer pixel width

    Am using custom label renderer for Chart Axis labels.
    CustomLabelRenderer extends label
    override   public function set data(value:Object):void
     if(value is AxisLabel){
    dataValue = String(value.text);
    else{
    dataValue = String(value);
    I would like to get the Width of the Label component in PIXELS on runtime.
    Can you please tell me how I can get the pixel width of the labels that gets updated when user changes the screen resolution.
    Please let me know ASAP.
    Thanks

    See this example and the related thread:
    http://apex.oracle.com/pls/otn/f?p=31517:222
    Basically, you need to customize the chart XML. That is quite easy to do.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Sort the month name column based on month id in rpd itself only

    sort the month name column based on month id in rpd itself only without creating the logical column.

    Hi,
    sort the month name column based on month id in rpd itself only without creating the logical column. Can you be bit specific?
    Is this what you want..http://www.biconsultinggroup.com/knowledgebase.asp?CategoryID=198&SubCategoryID=368
    Regards,
    Srikanth
    http://bintelligencegroup.wordpress.com

  • Problem replacing  chart axis title  with &string. syntax

    Apex 4.1.1
    Hi,
    I am having a problem replacing a chart axis title with substitution syntax &P5_MYFIELD., where P5_MYFIELD is an item with Source Type PL/SQL Function Body:
    begin
    return web_message.show('LASTNAME', 'dk');
    end;
    The Item is defined on the same Page as the chart in a different region. I can see that function is working ok, because the return value is displayed in P5_MYFIELD.
    There is a second item in an other region on the same page where the source value is defined with substitution syntax &P5_MYFIELD. It also displays the expected value. But when I use the string &P5_MYFIELD. as axis title it is not displayed.
    I also defined a field P0_MYFIELD on Page Zero with the same function, when I reference that with &P0_MYFIELD. as axis title on Page 5 the value is displayed correctly. I tried the same with a field on Page 1, &P1_MYFIELD. and it is displayed correctly.
    I think, the chart axis title must be substituted before the item P5_MYFIELD is executing the PL/SQL function body to get its value. Can anyone tell me why?
    We want to use string substitution syntax to translate all our labels in different languages. I would like to create hidden items with source type PL/SQL function body for all labels on a page and reference these values as label definitions. I would like to place them on the same page as the labels.
    Thanks
    Anne

    I started the application again and now also the Items are not displayed, only the message 'Label not defined', so I probably did something wrong with the computation. Why the correct values were shown during the first run, I do not know, maybe i did not logout in between.
    Here is the debugging information, but I cannot see any error message:
    0.02844 0.00038 Computation point: Before Header 4
    0.02881 0.00032 ...Perform computation of item: P5_CYCLE, type=FUNCTION_BODY 4
    0.02913 0.00060 ...Performing function body computation 4
    0.02973 0.00464 ...Execute Statement: declare function x return varchar2 is begin begin return web_message.show('CYCLE','de'); end; return null; end; begin wwv_flow.g_computation_result_vc := x; end; 4
    0.03437 0.00042 ......Result = Wurf 4
    0.03479 0.00046 ...Session State: Save "P5_CYCLE" - saving same value: "Wurf" 4
    0.03526 0.00027 Processes - point: BEFORE_HEADER 4
    0.03553 0.00027 ...close http header 4
    0.03580
    Edited by: Anne-Marie Rosa on Jun 8, 2012 10:09 AM
    Now the correct value is displayed again in the P5_MYFIELD, because I had to set the item source back to PL/SQL Function body, but I am still getting the chart error and the chart is not displayed.
    Edited by: Anne-Marie Rosa on Jun 8, 2012 10:17 AM

  • Urgent: Chart Axis with Min, Max, Help needed.

    Hi guys,
    I am rushing on a report submodule in our application, which will go on live in a short time. We need to have charts which use min and max value from the table and calculate the appropriate interval as the scale of the axis, instead of the default interval.
    I also tried to put page items into the Min&Max in the chart attributes, but always got the error message that asks for a number.
    I have searched the forum and the conclusion I can made now, is that HTMLDB does not support parameterized value for chart axis.
    So, my question is: if I have to do it manually, how should I do it? I don't have much experiences in pl/sql, so really need some help here.
    Any input is appreciated.

    Does anybody know whether a chart can be built on a collection? I've tried but didn't succeed.
    If somebody has experiences on this, please let me know, so I won't waste more time on trying it if the answer is no. Thanks.

  • Tool tips on chart axis

    Is there a way to create a dynamic tool tip for the labels on
    the chart axis. For example I have a bar chart that shows the
    quantity ordered in 5 categories. I want to be able to add a tool
    tip to the category label on the vertical axis to help explain what
    the category is. I need this tool tip to change based on the
    category that is rolled over. I'm assuming I should be able to do
    something with the ToolTipCreate action on an axis renderer but I
    can't figure out how to find out which label is being moused over.
    Any help would be greatly appreciated. Thanks in advance.

    I'm not sure if you're refering to components you can place in containers, but if you are, there's a ToolTipText option in the component inspector for every component you can select. If you want to change the tooltips manually for specific components, you can use the method (Component).setToolTipText(String text). Hope that helps...
    hello again,
    just one more question :) i was wondering if anyone
    knows how to implement tool tips with controls in
    JavaForte. i looked through the properties window,
    but didnt see any .ToolTipText property.... i know
    its possible, and probably just one line of code,
    anyone know it? thanks a lot in advance for any help!
    talk to ya later,
    Steven M. Berardi
    [email protected]

  • Editing chart Axis label

    Hi. I have a report where one chart repeats one time, and in Preview, I am able to click on the Axis label and find an option to Edit the label, where I define 1 - 12 as Jan - Dec. However, another chart repeats for 80 or so pages, thus I can't use Preview to edit the label as it effects one chart at a time. Is there a place to edit axis labels in Design?
    Thanks!
    Robin

    Thanks so much for following up on this. To clarify, converting month numbers to names is nice, and I did that using the specified order suggestion, but it doesn't effect the order of say, May, when Jan thru Apr are missing, and in fact created other issues of data misintrepatation I didn't bother resolving at the time.
    I suppose the best solution would be something that supplies a placeholder for blank months, so that the Jan-Dec order remains constast and the data graph bars appear in appropriate months, Jan-Apr no bars, May-Dec with data generated bars.
    Does this help?

  • CR4E Chart Axis Label

    I have a report developed with Crystal Reports XI Standard that includes a chart. The axis labels for the chart have been set (via Edit Axis Label) and appear correctly in preview mode of the Crystal Reports XI designer (e.g. "District" instead of "Sum of StateReportsView.District").
    When this report is exported to a PDF file via a Java program (using Crystal Reports for Eclipse), the axis labels revert to their original values (e.g. appear as "Sum of StateReportsView.District").
    Can the axis labels be set before exporting the report via the JRC API?
    Or is there some way to save the axis labels to the report using the Crystal Reports XI designer?
    Thank you...

    Thanks so much for following up on this. To clarify, converting month numbers to names is nice, and I did that using the specified order suggestion, but it doesn't effect the order of say, May, when Jan thru Apr are missing, and in fact created other issues of data misintrepatation I didn't bother resolving at the time.
    I suppose the best solution would be something that supplies a placeholder for blank months, so that the Jan-Dec order remains constast and the data graph bars appear in appropriate months, Jan-Apr no bars, May-Dec with data generated bars.
    Does this help?

  • X-axis labels for months when listing daily data

    Hi all,
    Have a problem with the presentation of a chart that I need some assistance with, can anyone advise.
    OBIEE 10.1.3.4.1
    I have a chart that is display data along the x-axis for a rolling year, however the selection is excluding weekends. On the date column I have a custom format of MMM-yyyy to produce the months and get 12 labels, however it will often skip one month and duplicate another. So for example I'm currently getting:
    Mar-2010, Mar-2010, May-2010, Jun-2010, etc.....
    Mar-2010 is shown twice and Apr-2010 is missing.
    I appreciatre this is because I'm missing off the weekends, it sometime coincides that a given month has far less days shown.
    Can anyone suggest a soilution to get the 12 months listed as the actual 12months rather then some duplicates/missing?
    Thanks for any assistance.

    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

Maybe you are looking for

  • PLSQL - Directory listing

    Can PLSQL read in a list of filenames from a given directory? Thank you very much.

  • Why are Player 10.1 source libraries missing from LCCS SDK Navigator?

    I have downloaded the LCCS SDK Navigator. Player 9 and 10 both have SWC and Source files, but 10.1 only has SWC files. This is further confirmed when navigating to the com.adobe.afcs plug-in folder. When installing the 10.1, I have no choice but to "

  • Aperture 3 and web journal

    I'm trying to post a web journal to my mac account with little success. I'm using the Export Web pages button with the destination being Idisc.sites.journalname. The exporting ball spins at the bottom of the page .... for hours but never completes. I

  • Oldest version of Photoshop to run on Mountain Lion?

    Just downloaded Elements 11 and am extremly disappointed. What is the oldest version of Photoshop that I can run on Mountain Lion? Thanks

  • Wireless Router/Networking question

    Could post this in any number of forums here as my computer inventory includes a MDD with wireless card and a Sawtooth connected direct to the ethernet hub which in turn is connected to my Qwest DSL wireless router. Have a couple others wired in as w