How do you insert a "prior period" in Crystal Reports 2008

I am constructing a income statement that compares this current period versus the same period from last year.  I used the parameter field and filter list for one time period.  Is it possible to have a comparison time period on the same report.
For example Revenue and Expense amounts for the 2nd Qtr of 2010 and on the same report on the next column 2nd Qtr Revenue and Expenses for the 2nd Qtr of 2009?
Thanks for any help
jim

Not sure how your parameters are working but assuming you have a date range and you enter
01/01/2010, 31/03/2010
Your select statement will look like
(DateField = {?daterangeParam} or
datefield in dateadd("yyyy", -1, minimum({?daterangeParam}) ) to dateadd("yyyy", -1, maximum({?daterangeParam}) ) )
Wrap in brackets to include other filters, this should get parsed to SQL with out any impact on performance
Ian

Similar Messages

  • How to overcome the Memory leakage issue in crystal report 2008 SP2 setup.

    I have developed the small windows based application tool with help of  Visual studio 2008 for identify the memory consumption of crystal report object. It helps to load the crystal report objects in the memory and then released the object from the memory. The tool simply does the u201CLoading and Unloadingu201D the objects in the memory.
    The tool will be started once u201CTest_MemoryConsumption.Exeu201D executed. The u201CTest_MemoryConsumption.Exeu201D consumes u201C9768 KBu201D memory before load the crystal report object in memory. It means, 9768 KB is normal memory consumption for run the tool.
    Crystal report object initiated by the tool and object help to load the report in memory once the tool initiated the crystal report object. Now u201CTest_MemoryConsumption.Exeu201D consumes u201C34980 KBu201D memory during the crystal report object creation and report load process. The actual memory consumption of crystal report object is 34980u20139768=u201C25212u201DKBu201D. 
    The memory consumption u201C34980 KBu201D will be continued till the end of the process. The memory consumption will be reduced to u201C34652 KBu201D from u201C34980 KBu201D once report load process completed. It means, u201C328 KBu201D memory only released from the memory consumption. Tool enables the Release command for the crystal report object. But crystal report object does not respond to the command and will not release his memory consumption.
    The memory consumption u201C34652 KBu201D will be stayed in the memory once job ends.  If i again initiate the crystal report object then it crystal report object start to consume the memory from 34652 KB.
    Database objects and crystal report objects are properly used in the tool. The object release commands properly  communicated to crystal report setup. But the u201CCrystal report service pack 2u201D setup unable to respond the commands which has enabled from .Net Tool.  Crystal report objects are properly initiated and disposed in the tool. But the crystal report unable to release from the server.
    The memory consumption will be reduced once the server restarted or kill the application.
    Crystal report 2008 and crystal report 2008 SP2 setup available in the server.
    Microsoft .Net Framework 2.0 SP2, Microsoft .Net Framework 3.0 SP2 and Microsoft .Net Framework 3.5 SP1 are available in the server,
    Could you please suggesst how to avoid the memory consumption keep increasing and  how to release the memory consumption  once the crystal object disposed???

    Hi Don..
    My case is different one. I hope, the problem with Run time Installation setup file (Crystal report 2008 Serivce Pack2 installer) which we installed in the server.
    Let me explain with Live scenario which our client faced in crystal report 2008 Service pack2 Installer.
    Our client is using a application to help to print their reports. The application is developed with Windows service.
    Windows service keep on running in the server. Windows service executes the client 's crystal reports( Labels Report, Stock  report) which designed for clients need and the reports will be printed from printer. 
    10 Same type report (Label Report) will be printed in 1 minute. Reports are not printing during non business hours. But the windows service keep on running.  Memory cosumption of application will be 160 MB in business hours.
    For Example, On Monday the application memory consumption starts with 160 MB. The Memory consumption will be reached 165 MB  in peak business hours. Then the memory will be ended in163 MB in the End of Monday. It means, The memory consumption will be in 163 MB during the non business hours. Reports will not be printed in non business hours.
    On Tuesday, the application memory consumption starts with 163 MB and it will be reached 168 MB during the peak hours. The Memory consumption will be ended in 165 MB in the end of Tuesday.  The same process contiues till friday. End of friday, the memory consumption of the application will be ended with 170 MB.
    Application Memory Consumption slowly increasing in the server. In 5 days, Memory consumption reached Threshold value (170 MB) of the server. Application gets hanged up once the memory consumption reached 170 MB. We got the error messages as "Attempted to read write protected memory " / "Not Enough memory for process".  If we restart server / If we restart the service then memory consumption of application get reduced to 160 MB.
    From the above scenario, We came know that the either the problem with Application object or the problem crystal report object. In the application, We have checked dispose methods of application objects completly. I am sure that  application objects are properly disposed in the application. I hope the problem not with application objects. The problem with Crystal report objects.
    Application properly communicates the dispose methods to crystal report objects. Crystal report objects are not released from
    the memory.
    Crystal report 2008 Serive Pack 2 setup installed in the server. 
    As you said, If Crystal report runtime is not released from memory then memory consumption keep increase???  In service oriented architecture application, how to unload the crystal report runtime??
    Do you any fix for this kind of issue??
    Willl Crystal report 2008 service pack 3 help on this issue??

  • How to get Description of parameter filed in Crystal report 2008

    Hi expert,
    I am creating a crystal report from Query ,which is created in BEX    Query designer 7.
    In query designer i have some selection variable.
    The requirement from clint is that they want to see what value is selected for all  variable.
    when i tried to put all parameter field in crystal report it is showing only Technical name of value selected not  description and also it show only for variable which is single value variable  not for the range value variable and multiple selection variable.
    can any one help me How to get description of value in report and can it is possible to show Range value and multiple value for a particular variable .
    i am using Crystal report 2008 SP3 version.
    Thanks and regards
    devendra

    Moved to BEx forum

  • How do you reference a textObject on a Crystal report using Java?

    Hi,
    Could someone please tell me the java statement to reference a textObject on a Crystal report. I am struggling to find the info in the docs and work out how the object model works.
    My textObject on the report is called "VersionNumber" and I want to locate it on the report (I know it will be in the page footer) and then retrieve its value and change it.
    I've managed to get a handle to the report using,
    ReportClientDocument localDoc;
    localDoc = getReport();
    localDoc.open("rassdk://" + reportFile.getAbsolutePath(), OpenReportOptions._openAsReadOnly);
    Any help would be much appreciated.
    Regards
    Rob.

    I've found a way of referencing the textObject using the following line of java code (used in conjunction with the preceding code).
    IReportObject iro = localDoc.getReportDefController().findObjectByName("VersionNumber");
    I can put "iro" into a Watch (within Eclipse) and I can find the contents of the textObject there under the Paragraph tree, but I am now stuck with how to reference this within Java.
    If anyone can help it would be much appreciated (and I will of course award points !)
    Regards
    Robert.

  • How to use CRAXDDRT.DLL in crystal report 2008?

    Hello All,
    We have purchased Crystal report 2008 Full software.
    We need to insert BLOB field into Crystal report 2008 at runtime using *CRAXDDRT.DLL*.
    How can I insert OLE object and bind it at Runtime using crystal report 2008?
    Is it possible to insert Ole Object runtime using crystal report 2008? If yes how and if not is there alternative to perform this job.
    Please let me know your feedback.
    Thanks

    CrxDDrt.dll is only provided in order for the Crystal Reports designer in the .NET IDE.
    1) You are not licensed to use this CraxDDrt.dll
    2) Even if you were, in previous versions of CR, there were licensing implications to using the craxDDrt.dll (read $$)
    3) Once your project would be done, using CR 2008, you would not be able to distribute the runtime as there is no CR MSM or MSI that contains the craxDDrt.dll and it's supporting runtime.
    In your original post you say:
    "I need to show Word and Pdf file in to Crystal report 2008 using CRAXDDRT.DLL";
    I do not understand why you'd need to do this using the craxddrt.dll? You should be able to insert a BLOB field using the RAS SDK for .NET and CR 2008. Now, one hting you will have to keep in mind. If you insert a multipage .doc or .pdf file into the report, you will only get the first page of that document. I suggest you try this in the CR designer first. Always remember that if you can not do a certain thing in the designer, you will not be able to do it at runtime either. Giving all the limitations above, if you are still interested in doing this using RAS, let me know and I'll set you up with some resources to get you going.
    Ludek

  • How do you insert an electronically signed report as an appendix into a main report which will be signed electronically at a later date?

    How do you insert an electronically signed report as an appendix into a main report which will be signed electronically at a later date?

    You can add it as a file attachment. Exactly how you do this depends on the version of Acrobat you're using, but if you open the Attachments panel, you should see where you can add a file.

  • How do you insert live web pages in keynote?

    How do you insert live web pages in keynote?

    Insert a 2D Pie chart on the slide (Insert > Chart > 2D Pie), then place a circle from Shapes overlaid in the centre:

  • How can you insert "Page Break" in a pdf file so you will specify the pages

    How can you insert "Page Break" in a pdf file so you will specify the pages

    How / from what was the PDF originally created?  It would be easiest to insert page breaks into the original document, then recreate the PDF.

  • How do you insert a photo in mail

    how do you insert (as opposed to "attach") a photo or an image into an email?
    thanks

    The only way possible to send a non-text file by e-mail is as an attachment. Different e-mail programs will handle JPEG attachments differently. Some will show the attachment within the message and some will not.

  • How do you insert special characters with imovie 08?

    How do you insert special characters into a project
    with imovie 08?

    Don't think that would work. Since my "system date" is already set at 2007. I have 2 imports, one has the year as 2048, and the other at 2016!! I don't know where they are getting these dates from, but they are not the system date.
    Were the files imported directly from a camcorder or from files already on your hard drive? In the first case the year may have been taken from the time "stamp" recorded when the footage was shot (which may or may not have been correctly set by the user). On the other hand, files imported from the hard drive seem to be keyed to the date the imported file is written to the "Events" folder which, of course, reflects the current system time/date setting. That's why I said you had to then import (re-import) the files from a hard drive source -- i.e., to ensure the DTG would be re-written.

  • How do you insert a picture into another picture?

    How do you insert a picture into another picture.  For example, one person is missing from family photo & I'd like to insert that person's face.

    By using an external editor:
    In order of price here are some suggestions:
    Seashore (free)
    The Gimp (free)
    Graphic Coverter ($45 approx)
    Acorn ($50 approx)
    Pixelmator ($50 approx)
    Photoshop Elements ($75 approx)
    There are many, many other options. Search on MacUpdate. You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.

  • How do you insert page numbers into a pdf that combines multiple documents?

    I need to combine a number of documents into one PDF that then has correct pagination for the whole new document. How do you insert page numbers when combining into one PDF?

    Hi,
    You can go to Tool panel. Go to Pages. Click on Header& Footer -->  Add & Footer from the Add Header and Footer
    Regards,
    Ajlan Huda.

  • How do you insert a submit button into your form?

    How do you insert a submit button into a form?

    Hi,
    The submit button is included automatically. If you are distributing your form as HTML you can use the Test tab to preview your form. If you are distributing your form as PDF, you would need to generate the PDF to see the submit button.
    Regards,
    Brian

  • In captivate 8, how do you insert a company logo so that it appears on every slide?

    in captivate 8, how do you insert a company logo so that it appears on every slide?

    Put it on the main master slide and check the daughter master slides. Which theme do you use? Not all daughter master slides have automatically the main master objects, that is why I'm asking about the theme.

  • How to show full name of user in crystal report

    Hi. I am using Crystal Report 2008. I need to show full name (first name and last name) of the user logged in. Currently I am using "currentceusername" but it shows the user id that a user uses to login.
    Is there any way to show the full name of the user in crystal report?
    Thanks in advance.

    Hello,
    Not you H4... Can I suggest if someone replies to actually add something of value!!!!
    Cr does not have the ability to query your AD Server. What you would have to do is use a AD query tool or Export Option and export the user info from the log on ID into a Excel or an Access table or something CR could report off of. Then you can add a subreport to get the name from the ID and insert it into the main report.
    Check with your IT department, they should have tools to get the info. I'm not sure if there is a DB connector that would allow you to query the AD server directly but if there is one and it supports ODBC then you can use that as your subreport Data connection.
    Typically names do not change that often so rather than running the Query every time the report is generated it would be better to export the info to a text type file and simply use it for your report. IT can put a rule on to export if the Names change.
    Thank you
    Don

Maybe you are looking for