Crystal reports graph sort order

I have 2 fields called fiscal year and fiscal month.
Expected sort order - sample values:
Fiscal year     Fiscal Month
2011     5
2011     5
2011     6
2011     7
2011     8
2011     9
2011     10
2011     11
2011     12
2012     1
2012     2
2012     3
2012     4
2012     5
2012     5
Current sort order- shows up incorrectly by default
Fiscal Year  Fiscal Month
2011          10
2011          5
2011          6
2012         12
I will be using these values in a graph and I created a new formula column called time PEriod that I will be in the
x axis of my graph (mid({query.fiscal_mth_nbr1},1,3)) . the output of this formula is Oct,Nov, Dec,Jan,....Oct
Without the year, but it still needs to be sorted in the first sample values order , since fiscal year starts in Jun and ends
in July. We are now in fiscal year 2012 , fiscal month 6
I tried sorting the value inside crystal reports by going to design view and applying sort. But it does not take the
sort order. Can you please suggest the best way to keep the sort order. The data is coming from a universe and I even tried
to sort the data from the universe by using order by, but the database would not let me use order by  that in a derived table within the universe.
Edited by: developerbo1 on Nov 14, 2011 7:19 PM

hello,
the best way to get the correct dynamic sort is by using a two digit month in your conversion. for example
totext({table.datefield}, 'yyyyMM')

Similar Messages

  • CRYSTAL REPORT GRAPH WITH DATE AND TIME

    Post Author: Dino Dentone
    CA Forum: Charts and Graphs
    Dear forum,
    I am developing a Visual Studio .net 2005 Windows Form,i have a sql table with 2 field:1) DATA (date and time)2) Temperatura (numeric)I have to make a line graph with numeric data axes.I have insert two parameters' to customize the filtering, so i can have a graph of the temperature between to date and time.If i choose two date's and time (parameters) like 20/04/2008 00:00:00 trought 20/05/2008 00:00:00 i have no problemBut if a choose a range minor of 1 day (some hours like from 15/05/2008 00:00:00 trought 15/05/2008 08:00:00) i have no graph.It sound like it don't use the time values?Thank's for the Help.

    There is some debugging info on the website. I've had problems getting the text to work. It was generally that I installed either the wrong 'version' of ImageMagick (the recommended one works for me--I'm running Vista x64 and one time installed the x64 version and it didn't work). I also installed Ghostscript to get the font list to work correctly. At one time I installed the x64 version of Ghostscript and it didn't work with the plug-in, either.
    I installed two items:
    ImageMagick: ImageMagick-6.4.9-3-Q16-windows-dll.exe
    Ghostscript: gs863w32.exe
    I don't know if it is necessary but I also added the fonts from
    ghostscript-fonts-std-8.11.tar.gz to the c:\Program Files (x86)\gs\fonts directory. Some, none, perhaps all, may already be installed just by installing ghostscript--it has been so long that I don't remember exactly. I do know that the contents of the gs fonts directory contains all the files in the .gz, I just don't remember if I put them there separately or as part of the gs install :)
    You need to make sure the font size is large enough. I usually use about 2-4% of height and export a single photo to make sure I see the text correctly.
    Tim does respond to email when he can so if you can't get it to work you can always drop him a line.

  • Crystal Reports for SAP Print Output requirements like Sales Order O/P

    Hello,
    Has anybody used Crystal Reports for Sales Order or Invoice Print Output type requirements?
    Typically these outputs get triggered via Output Management Configuration on Save of a Sales Order or Configuration.
    Traditionally in the Output Management configuration of say Sales Order, we can specify the "Output Program" and the "Sapscript" or "Smart Form" or "Adobe Form".
    How do we tell SAP t trigger a Crystal Report output if it is a feasible way to go?
    Also can anybody tell what is SAP's strategic direction for Print Output requirements?
    regards,
    Atul

    Hi Atul,
    Do you have answers for your questions? If so, could you please share?
    Thank you in advance,
    Joã

  • Crystal report 9 problem

    hi guys..i newbie in crystal report..i have a question.. what is Crystal11_NET_EmbeddedReporting.msm and how can i find this similar merge modules in crystal report 9?Actually my previous senior used crystal 11 in her project but right now i'm continued diong her tasks but then i only have crystal report 9. hopefully somebody can teach me..explain little bits about crystal report 11 and crystal report 9 in order to me to create web setup in my project.
    Regards,
    ct

    Hello Ct,
    If the previous developer was using Crystal Reports XI (11), I would really advise you to get hold of that version too. Converting your application from 11 to 9 might not work, and it would no longer be supported by Business Objects ([Crystal Reports 9 is end-of-life|http://support.businessobjects.com/programs_and_lifecycle/lifecycle/product_eol_dates.asp#Crystal%20Reports]). Jason already mentioned that some newer features available in XI would fail in CR9. Unless you are absolutely certain that the previous developer did not use any newer features, your application may not work as expected in CR9.
    You can find the deployment guide and merge modules for Crystal Reports XI [here|http://support.businessobjects.com/downloads/runtime.asp#05], you can then use the same merge modules as your predecessor. If you want to deploy your application separately (this may be the easier option), and install the Crystal Reports runtime with one simple installation file, you can always use the [Server Install (redistributable)|http://support.businessobjects.com/communityCS/FilesAndUpdates/crXI_net_server_install.zip.asp]. Again, this process is described in the deployment guide.
    Cheers,
    Fritz

  • Design of Crystal Report in SAP B1 8.8 Version

    Hi,Please Tell me how can i designed & developed Crystal Report in SAP B1 8.8 version I want to display Sales
    Order in crystal report and work order report from screen made by screen printer

    Hi
    Check below link.
    [https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples]
    Thanks
    Kevin

  • Standard B1 layouts in Crystal Reports

    Hi all,
    Is there any SAP standard B1 layouts created in Crystal Reports (invoice, sales order, etc) ?
    PLD sucks so it will be wonderfull if SAP could deploy standard layouts in Crystal formart.
    Regards,
    Manuel Dias

    Hi,
    You may check this link too: [SAP Crystal Generic samples|https://websmp105.sap-ag.de/~sapidb/011000358700001064612009]
    Regards,
    Bala

  • Difference Between Crystal Report Template and Sub Report

    I am not able to get the Report Template Option/menu.
    I am working with Visual Studio 2005 , Crystal Report Version 10.2
    Do i need to have Crystal Report Server in order to work with Template.
    Also i will like to know the diff. between Template and Sub Report?

    Hello,
    The Report Template Wizard is not part of Crystal in .NET. You need to upgrade to the full version of Crystal Reports.
    Template is a base report to work from. Subreport is another report object that can be inserted into a section of the main report.
    Thank you
    Don

  • Printing font Barcode3of9 from Crystal Reports XI

    I have an issue with printing font Barcode3of9 from Crystal Reports XI utilizing Manhattan Associates Performance Management (PM) UI application.
    The font is applied to a field that is converted from a number to a text using the CStr formula in Crystal Reports XI in order to display the value as a barcode.
    The barcode on the report is converted successfully in the PM UI 100% of the time.  However the business tries to print the report using the print or the export the report functions and the barcode is not converted 100% of the time into a barcode only the value of the field displays.
    The font is installed on the server that the business accesses and I have installed the font on the web server for our testing environment, but it still does not aide with fixing the issue.
    Does anybody have any experience with this issue?
    Thank you

    Please contact Manhatten Assoc. for supporting their software.

  • Error code 1064 mysql and crystal reports XI

    Post Author: aminski
    CA Forum: Data Connectivity and SQL
    Hello friends , I am trying to create a Crystal Report connected to a MySQL database using an ODBC (RDO) connection.  I created a DSN using the MySQL Connector/ODBC 3.51 and mysql database 3.23.51 version .  When creating a new report I can add the ODBC (RDO) connection using Add Command Option, I place my query into the Add Command Text Box then i click on Ok button and i get an error message that reads as follows: << Failed to retrieve data from database, details 2300 mysql odbc 3.51 driver mysqld 3.23.51 you have an error in your sql syntax near ;create temporary table if not exists cursa (cbod_puc varchar(14), saldo floa at line 1 database vendor code 1064.>>
    The error message doesn't display the whole SQL statement, so I can't tell if Crystal Reports is making a bad SQL statement or if it is a problem with the MySQL ODBC driver. or with the delimiter character ( ; ) interpreted by crystal or the odbc driver 
    this is my complete query:
    DROP TABLE IF EXISTS cursa; create temporary table if not exists cursa (cbod_puc varchar(14), saldo float(12,2));insert into cursa select cbod_puc,sum(if(cbod_tipo='D',cbod_valor,0))-sum(if(cbod_tipo='C',cbod_valor,0))from myacbodymovimientoswhere cbod_puc='110505003' and cbod_fecha<='2007-08-31' and cbod_estado not in ('a','A')group by cbod_puc;
    select       x.cbod_ccosto,      x.cbod_documento,      x.cbod_fecha,cbod_concepto,      x.cbod_tipo,      ccos_nombre,      x.cbod_puc,      a.puc_nombre,      x.cbod_razonconcepto,      if(x.cbod_tipo='D' and x.cbod_estado not in ('a','A'),x.cbod_valor,0) as debito,      if(x.cbod_tipo='C' and x.cbod_estado not in ('a','A'),x.cbod_valor,0) as credito,      substring(x.cbod_puc,1,1) as puc_clase,      substring(x.cbod_puc,1,2) as puc_grupo,      substring(x.cbod_puc,1,4) as puc_mayor,      substring(x.cbod_puc,1,6) as puc_submayor,      ifnull(b.puc_nombre,'') as puc_NombreClase,      ifnull(c.puc_nombre,'') as puc_NombreGrupo,      ifnull(d.puc_nombre,'') as puc_NombreMayor,      ifnull(e.puc_nombre,'') as puc_NombreSubMayor,      chea_chequeno,saldo,      x.cbod_fecha as Ffinicio,x.cbod_fecha as Fffinalfrom myacbodymovimientos as x  left join myacheadmovimientos on chea_ccosto=x.cbod_bodega and         chea_documento=x.cbod_documento and chea_concepto=x.cbod_concepto and         chea_beneficiario=x.cbod_beneficiario  left join myaccosto on ccos_codigo=x.cbod_ccosto  left join myacpuc a on a.puc_codigo=x.cbod_puc        left join myacpuc b on b.puc_codigo=substring(x.cbod_puc,1,1)  left join myacpuc c on c.puc_codigo=substring(x.cbod_puc,1,2)  left join myacpuc d on d.puc_codigo=substring(x.cbod_puc,1,4)  left join myacpuc e on e.puc_codigo=substring(x.cbod_puc,1,6)  left join cursa f on f.cbod_puc=x.cbod_pucwhere x.cbod_puc='110505003' and x.cbod_fecha BETWEEN '2007/01/01' and '2007/09/07'order by         x.cbod_puc,        x.cbod_fecha,        x.cbod_concepto,        lpad(trim(x.cbod_documento),12,'0')
    I tested this query using HeidiSQL program Version 3.0 Revision 572 and it runs perfectly without errors, please help me to know if the problem is my odbc driver version or what is the right delimiter character that i have to use in crystal reports XI in order to run perfectly
    Thanks -Aminski

    I developed a JSP page that displays a Crystal Report using NetBeans 4.1, and it works fine.
    Then I set up a project in SJSC with exactly the same libraries, context parameters, etc., and I copied over my JSP page, making it the starting page of the SJSC project, but I get the same "Unexpected error determining relative path". It's got to be a problem with the way SJSC sets up the servlet context or something, but I need help from some of you guys out there with some pretty serious knowledge of SJSC's plumbing...
    Thanks,
    Luca

  • Dynamic Sorting on Multiple filed in Crystal report 2008

    Hi
      I am using Crystal report 2008 sp3 full build with hotfix 3.3 along with ASP.NET 2.0
      I have implimented the multi filed sorting using the record sort export and setting the sort order in the report designer.
    Now my requirement is such that i would like to have dynamic sorting on multiple fileds while report is displayed in the UI.
    Means suppose i have a report with Customer region,name,city,rating,status etc.
    Now by using the sort control  i would like to have the functionality in such a way that if user
    a)  first sorts on the region then the records should be first sorted by region
    b)  then sorts on the city then the records should be sorted first by region then by city
    c) now sorts on the  rating then the records should be sorted first by region ,second by city and then by rating
    Now other user may do
    a) first sorts on the rating then the records should be first sorted by rating
    b)  then sorts on the status then the records should be sorted first by rating then by status
    c) now user sorts on the  region then the records should be sorted first by rating,second by status and then by region
    and so on the sorting criteria changes from user to user through the UI.
    Is there any way to achieve the dynamic kind of sorting with Crytsal report 2008 where we can set the order of the fileds at sorting in UI dynamically .The sorting order of the fields are not known at the time of design of the report and its completely depends on the user's need.
    Please let me know if you require any information on the same.
    Regards,
    smitha

    Hello,
       Good Day!
       Thanks for your answer.
       Could you please explain me in detail how to achieve this functionality?
       Do i need to create a static parameter?
       I  get my data set through the command option in crystal report.So i think i need to go by formula in the report.
       i am just putting down the steps to follow.Please correct me if i am wrong.
      step1 :Create s static parameter with the name SORT.
    step2: create the formula as you have mentioned like     
        (IF {?Sort}='Vendor Number' THEN {Pr_Voucher_Status;1.Vendor_Key}& " "& {Pr_Voucher_Status;1.ap_remt_key}
        & " " & {@date}
       else
        IF {?Sort}='Invoice Number' THEN {Pr_Voucher_Status;1.ap_vchr_invno}& " " & {Pr_Voucher_Status;1.Vendor_Key}&
        " " &{@date}
       else
       IF {?Sort}='Invoice Amount' THEN {Pr_Voucher_Status;1.ap_vchr_amtc}& " " & {Pr_Voucher_Status;1.Vendor_Key}&
         " " &{@date})
        I could not  understand what this formula is really doing .
        Could you please tell me what the following names indicates? :
                  Pr_Voucher_Status :- Table/Command name ??
                  Vendor Number,Invoice Number etc.. :-  ??
                 Vendor_Key,ap_vchr_invno,ap_vchr_amtc .. :-  Filed names ??
                 use of 1.{} :- ??                              
    step3: place the below formula in the page header  to display the sort order
        (if {?SORT}='Vendor Number' then "Vendor Number, Remit To, Invoice Date"
              else if {?SORT}='Invoice Number' then "Invoice Number, Vendor Number, Invoice Date"
              else if {?SORT}='Invoice Amount' then "Invoice Amount, Vendor Number, Invoice Date") .
    Note:-My report does not have grouping.Do i need to have grouping?
    in this case how the sort control will work  ?
    As i have mentioned in the first post the order of sorting is completely depends on the user's perspective .
    The report is used by the whole organization ..
    i mean the people with different roles like Manger,Team leads,modul leads,developers ,testers etc..
    the usage of report varies according to the roles so the sort order also.
    Regards,
    smitha.
    Edited by: smitha thomas on Mar 16, 2011 5:01 AM

  • Sorting the list of value like in BEX but out of crystal report

    All,
    I have created a crystal report base on a BEX query where I have a variable for which  i am filtering base on a field period.fiscalyear.
    for the list of values that prompt you for this variable ...
    l in BEX we can do the sort by either alphabetical ascending order or descending alphabetical order such as:
    here is for ascending
    001.2008
    001.2009
    or by clicking on it we can do the following: (descending)
    012.2009
    012.2009
    however in crystal when refreshing the report in infoview it sorts the list of value base on the month
    something like this :
    JAN 2008 [0FISCPER].[K42008001]
    FEB 2008 [0FISCPER].[K42008002]
    We would like to have in crystal the same behaviour than in BEX,  so in crystal we would like to be able to get the list of values sorted in either ascending order to descending order. is there a way to do so ?
    notes also that we would like to avoid to create the variable in crystal
    Philippe

    Hi,
    in Crystal Reports you have per InfoObject - depending on the definition - the key value, the description and the member unique name. In BW these objects are defined as NUMC in most cases - which means it is a character / string.
    In your example the value is 001.2008 and 001.2009. What you can do in Crystal Reports is to split up the values into year and month and then sort based on the actual numbers.
    Ingo

  • Crystal Reports Sort Bindings

    I saw a post here regarding problems with sorting and I am having what I believe is a slightly different issue (or maybe not understanding the question).
    Anyway, I created a report in Crystal Reports 2008.  When I did so, I added sort bindings to a couple of the document headers (document number, revision).  Running the report in Crystal Report, I see a sort control (two arrows) that allow me to sort by the Document Number or the Revision. 
    When I tried to create a simple form in VS for this report, I used the Crystal Reports Viewer in the Reporting section of the Toolkit and selected my *.RPT file as the source.  When I run the app in debug, it prompts me for the parameters for filtering (yeah!) and the database connect string, but it does not allow me to change the sorting order.  The data appears and it looks great, except that I can't sort it.  Any ideas how to add this? 
    Is there maybe an incompatibility between Crystal Reports 2008 and VS 2008?  I did notice that when I tried to edit the *.RPT file from within VS, it says something about the *.RPT file being a different version, but it seems to open it properly.

    Looks like you have an issue with the correct CR assemblies. The version of the CR 2008 assemblies should be 12.x. I suspect is you check this out, you'll see that your app references 10.5. To resolve this, reinstall CR 2008. Not knowing the sequence of install, it may be that CR 2008 was installed before .NET(?).
    Ludek

  • Sorting the Crystal Reports

    Dear Sir
    Iam woring on crystal reports version-13 my problem is how to working the sorting(ascending order and descending order ) in  the crystal reports please help me

    See if the demo [Sorting and Filtering
    |http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/504d77eb-892a-2d10-c0b9-c9b6da1e1ffa] will help.
    Also, see the Developer Help files:
    http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/xi4_rassdk_net_api_en.zip
    http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/xi4_rassdk_net_dg_en.zip
    http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_api_2010_en.zip
    http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_dg_2010_en.zip
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • How to arrange month in order in cross tab in crystal report

    Hi all,
          we are using cross tab to arranging the data (month wise)  in crystal report. we have month in string format like jan2008. this field is in column of the cross tab. now we need to arrange the month in sorted order. At Present , the month is displayed as april2007, arpil2008, april2009,may 2007, may 2008, may 2009.
      now i want in this order. april 2007, may 2007, april 2008, may 2008, april 2009, may 2009. how to achieve this in crystal report.
    Regards,
    Shanthakumar.

    Try this,
    Create a new formula
    For example, "April 2009" is stored as string in {TABLENAME.FIELDNAME}
    datevalue("1 "&{TABLENAME.FIELDNAME});
    Now you have a date, composed of your year, your Month and 1.
    you can use it to order your data by date.
    If sometimes there is no blank between month and year ("April2009") try this
    local stringvar x;
    x:={TABLENAME.FIELDNAME} ;
    x:=left(x,length(x)-4)&" "&right(x,4);
    x:=replace(x,"  "," ");
    datevalue("1 " & x);
    regards,
    zettels.

  • Problem viewing graph in Crystal reports using VB6

    I have a report created in Crystal RDC Version 9 and it has a pie chart. The chart comes out fine in
    Crystal but when I view it using Report-viewer OCX embedded in a VB6 application there are blank spaces
    where the graph ought to be. Database used is SQL Server.
    Does anyone know how to get past this problem?
    Are there any specific dll files I need to download to be able to view the graphs ?

    Post moved to the Legacy SDKs - SAP Crystal Reports forum.
    First a sort of a 'preamble" / FYI, then an attempt at some help
    CR 9, being out of support for close to 10 years, it will be tough to get any help on this. My best suggestion would be to upgrade to CR 2008 and .NET (2005 or 2008) and use the CR SDK for .NET. Or use VS 2010 with Crystal Reports for Visual Studio 2010. E.g.; unfortunately, time to move to more recent builds of CR and development language.
    BTW., the SDK you are using in CR 9 has been retired in CR XI R2 (11.5) which has been out of support since June 2009. E.g.; if this turns out to be a bug of some sort, no fixes...
    The help (finally)
    You say the following which is a bit confusing:
    Crystal RDC Version 9 and it has a pie chart. The chart comes out fine in
    Crystal but when I view it using Report-viewer OCX embedded
    Not sure what you mean by "Report-viewer OCX embedded". The RDC SDK consists of essentially two files; craxdrt.dll and crviewer.dll. Craxdrt.dll is the engine, crviewer.dll is the viewer. Those should really be the only two CR references in your project. Assuming that this is the case, is the behavior you are describing on your development computer, or after you deploy the CR runtime? How did you deploy the CR runtime? Does the app work as expected anywhere?
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Maybe you are looking for

  • TS1292 How can I give an iTunes gift to someone in another country?

    I want to give iTunes as a gift to someone in another country, how do I do this?

  • Issue while deploying .war at weblogic 10.3.0.0

    Hi All, We have developed application and created rboimgr.war under weblogic 10.3.4 and trying to deploy at 10.3.0.0 but getting following error message: An error occurred during activation of changes, please see the log for details. http:101064(WebA

  • Auto populate date field in form

    Hi I have been trying to get a field in a form to automatically populate with todays date. I have got a script which defines the default value for the field as: document.dform.currentdate.value=displayfirst+"/"+displaysecond+"/"+displaythird where df

  • Extracting address id and marrying up with vendor number / name

    Hi all I need to extract the email address for all vendors that we hold.  However, ADR6 only gives me the address ID rather than the vendor name or number.  Can you tell me what table (or other) will give me the address id married up with either the

  • Files MIssing

    HELP! I have a problem with my files on my site. I use dreamweaver on a daily basis and today I noticed that a chunk of my file are missing. They are not listed in the files window in dreamweaver. When I o to open the pages they don't show up there e