Help with Cross-tab

Hello everyone...
Here is some quick background info on my project:
1) I am attempting to write a Crystal Report (version 10) to automatically capture crime statistics for a previous time period based on a current time period entered into the Crystal Report parameter. The current date range to automatically be captured is the previous seven weeks. For example, if a user enters the date range of June 15, 2008 - August 2, 2008, the Crystal Report will automatically gather data for the two date ranges of April 27, 2008 - June 14, 2008 (the previous date range) and June 15, 2008 - August 2, 2008 (the current date range). The purpose of this is to automatically gather crime statistics for two equal date ranges to compare crime rates.
2) I have been able to successfully construct a formula to gather the previous date range.
3) I have constructed a cross-tab but I am having difficulties formatting the cross-tab to display data as I desire.
With the background of my project now described I will move into the main problem I am experiencing. I am able to display the data for all the necessary weeks in the cross-tab; using the same date range above I am able to show data for the fourteen weeks of April 27, 2008 - August 2, 2008. However, I wish to have a single cross-tab display the grand totals for just the previous date range while having weekly totals and a grand total for the current date range.
Using the same date ranges above as an example, the date range of April 27, 2008 - June 14, 2008 will show just the grand totals for all seven weeks of that period. Conversely, I would like to have the date range of June 15, 2008 - August 2, 2008 show weekly totals as well as grand totals for all seven weeks of that period.
I would like to keep all this data in a single cross-tab due to having to put the data in another crime analysis report.
Any help you can provide is most appreciated...let me know if I can provide further info. Just so you know I am a bit of a beginner when it comes to Crystal Reports.

Hello, you might try this:
1) Create a formula field in your details section with this:
Whileprintingrecords;
If (table.date >= "start date of your pre-date range" and
table.date <= "end date of your pre-date range") then 'Pre-Date'
else
if (table.date >= "your 1st week start" and table.date <= "your 1st week end") then 'Week 1'
else (if table.date >= "your 2nd week start" and table.date <= "your 2nd week end") then 'Week 2'
else .... for the 7 weeks you want a separate column.
2) create the cross-tab and put the formula field as the column.
3) I believe if you right-click on the total field to the far right and "Format Field" you can use the "Display String" option to delete the sum of the previous week's from the CurrentFieldValue and use the TOTEXT() function to display it. This will only display the sum of your current 7 weeks.
You may want to go change the "Group Options" for the column to Sort in "Specified Order" and create named groups for each of your column headings. I can explain how you would do this if you need it.

Similar Messages

  • Problem with Cross tabs

    I have a problem with cross tab.
    When I do grouping on date according to month and summarize the units I am getting the result as 58
    while I do grouping without the croos tab generally in the details section I get the result to be 64.
    I am not able to understand where is the problem.
    Even when I write a query i get the answer as 64.

    Hi,
    Summarizing with a Cross-tab and creating a summary of a group are one and the same; I mean, the summary results are always the same.
    Could you check the summary operation in the crosstab, could you confirm if it is not count or something else?
    Also, create a summary and place it on the Group Header/Footer. It should be same as the Crosstab results for the that particular group.
    -Abhilash

  • Help in Cross Tab!!!

    Hi All,
    I have a samll issue when creating a cross tab report with the format like this:
    Year (Group By Year)
    Quarter (repeats for every Year)
    Actual Budget Short
    customer name Quarter amounts
    TOTAL TOTAL AMOUNTS
    I have been able to create a cross tab report with only year...i am having difficulties putting in the quarters....
    any help is much appreciated.
    I can pass the rtf template created for the yearly data.
    Thanks,
    Madhavan G V

    Hi Vetsrini,
    No offence taken. I appreciate all the help i can get from this forum.
    Anyways, please find the the xml & code generated.
    XML:
    ====
    <ROWSET>
    <RESULTS>
    <INDUSTRY>Motor Vehicle Dealers</INDUSTRY>
    <YEAR>2005</YEAR>
    <QUARTER>Q1</QUARTER>
    <SALES>1000</SALES>
    </RESULTS>
    <RESULTS>
    <INDUSTRY>Motor Vehicle Dealers</INDUSTRY>
    <YEAR>2005</YEAR>
    <QUARTER>Q2</QUARTER>
    <SALES>2000</SALES>
    </RESULTS>
    <RESULTS>
    <INDUSTRY>Motor Vehicle Dealers</INDUSTRY>
    <YEAR>2004</YEAR>
    <QUARTER>Q1</QUARTER>
    <SALES>3000</SALES>
    </RESULTS>
    <RESULTS>
    <INDUSTRY>Motor Vehicle Dealers</INDUSTRY>
    <YEAR>2004</YEAR>
    <QUARTER>Q2</QUARTER>
    <SALES>3000</SALES>
    </RESULTS>
    </ROWSET>
    Code:
    ====
    <?variable:c297;xdoxslt:create_groups($_XDOCTX, RESULTS/node()[local-name()='YEAR' or local-name()='QUARTER'], 'YEAR;QUARTER', 'v')?><?horizontal-break-table:1?>
    <?for-each@cell:$c297?>
    <?for-each@cell:xdoxslt:get_groups($_XDOCTX,'v','YEAR',string(.))?>
    <?end for-each?><?end for-each?>
    <?for-each@column:$c297?>
    <?.?>
    <?for-each@column:xdoxslt:get_groups($_XDOCTX,'v','YEAR',string(.))?>
    <?xdoxslt:get_groups($_XDOCTX,'v','YEAR',string(.))?>
    <?.?>
    <?end for-each?><?end for-each?>
    <?for-each-group:RESULTS;./INDUSTRY?><?variable@incontext:G1;current-group()?>
    <?INDUSTRY?>
    <?for-each@cell:$c297?>
    <?sum ($G1[(./YEAR=current())]/SALES)?>
    <?for-each@cell:xdoxslt:get_groups($_XDOCTX,'v','YEAR',string(.))?>
    <?sum ($G1[(QUARTER=current())]/SALES)?> -- Problematic part. [i get the total of quarters rather than total of quarter on a year basis)
    <?end for-each?><?end for-each?>
    <?sum ($G1/SALES)?>
    <?end for-each-group?>
    <?variable@incontext:T;.//RESULTS?>
    <?for-each@cell:$c297?>
    <?for-each@cell:$c297?>
    <?for-each@cell:xdoxslt:get_groups($_XDOCTX,'v','YEAR',string(.))?>
    <?sum ($T[(./QUARTER=current())]/SALES)?>
    <?end for-each?><?end for-each?>
    <?sum ($T/SALES)?>
    Thanks,

  • Count Function Specific with Cross Tab Name for Multiple Cross Tabs

    Hello Friends I have cross Tab1 and Cross Tab2 based on 2 query data providers. I need to feed calculate the Count of Items in Cross Tab1 and DISPLAY In cross Tab2
    Dimension name is ITEM ID
    So if there are 21 items in Cross TAB1 then in Cross TAB 2
    I want to display "Number of Item" = 21
    so do this i Created a count variable
    =Count([Item ID]) In Report
    which give me 21 in cross tab1 but when I drag that to cross tab2 it give me count of Item in Cross Tab2 = 87 which is wrong since i want 21
    so How do I fix this Count in Cross Tab 2
    Please help with code to say Count([Item ID]) In Report from cross tab1
    thanks
    Soniya

    Hi,
    Have you tried for the solution given in the previous thread by converting it to the dimension or detail?
    What result did you get?
    If you use "Report" operator/keyword then the formula will give you result for whole report. So if you have sections in the report then you can replace it with Section keyword.
    Also measure are dynamic and gives result according to the dimesion you associate with them. so you have to convert it to STRING dimension or detail. before using it in the next block.
    Regards,
    Rohit

  • Problem with Cross Tab in Live Office Connectivity

    Hi Experts,
    I am using Live Office Connectivity to build a Xcelsius Dashboard.
    The webi Report has data in 4 cross tabs which comes to Xcelsius as 4 LO Connections.
    The size of the Xcelsius Doc is around 900K. I am getting "Xcelcius has stopped working " error when i preview the document.
    Earlier i have built dashboards on Webi Report which used Verticle tables(more than 1 MB in size). I am able to preview them and generate SWF without any problem.
    I am working on Xcelsius SP3 on Vista OS with 2 GB RAM.
    Is using Cross Tab, responsible for the Application Crash or any other reason?
    Please help me in solving the above problem at the earliest.
    Please let me know if you need any further information on the same.
    TIA,
    Bhargava Bommidi.

    Bhargava,
    Webi cross tabs via Live Office connection should work. Pls see this [post|Re: Does Xcelsius support Cross Tab report via Live Office?; for more detail.
    Pls let me know what version of Xcelsius you are using because this error is known to popup when some of the dlls are not registered as well.
    Cheers,
    Ryan

  • Issues with cross tabs when trying to convert our cry10 reports to cry 2008

    We are trying to convert our reports from crystal 10 to crystal 2008. Reports that contain cross tabs will not execute in crystal 2008. We are getting a report application failed error. Has anyone encountered this? What is the fix?

    I did notice that in a formula I am using in the Summarized Fields section I have a Next() on a field that I am trying to compare the next record with the current record. If I take that Next() out, the cross tab will work. Why would using this cause me problems?

  • Issue with passing parameters through Java-JSP in a report with cross tab

    Can anyone tell me, if there's a bug in Java SDK in passing the parameters to a report (rpt file) that has a cross tab in it ?
    I hava report that works perfectly fine
       with ODBC through IDE and also through browser (JSP page)
    (ii)    with JDBC in CR 2011 IDE
    the rpt file has a cross tab and accpts two parameters.
    When I run the JDBC report through JSP the parameters are never considered. The same report works fine when I remove the cross tab and make it a simple report.
    I have posted this to CR SDK forum and have not received any reply. This have become a blocker and because of this our delivery has been postponed. We are left with two choices,
       Re-Write the rpt files not to have cross-tabs - This would take significant effort
    OR
    (ii)  Abandon the crystal solution and try out any other java based solutions available.
    I have given the code here in this forum posting..
    CR 2011 - JDBC Report Issue in passing parameters
    TIA
    DRG
    TIA
    DRG

    Mr.James,
    Thank you for the reply.
    As I stated earlier, we have been using the latest service pack (12) when I generated the log file that is uploaded earlier.
    To confirm this further, I downloaded the complete eclipse bundle from sdn site and reran the rpt files. No change in the behaviour and the bug is reproducible.
    You are right about the parameters, we are using  {?@Direction} is: n(1.0)
    {?@BDate} is: dt(d(1973-01-01),t(00:00:00.453000000)) as parameters in JSP and we get 146 records when we directly execute the stored procedure. The date and the direction parameter values stored in design time are different. '1965-01-01' and Direction 1.
    When we run the JSP page, The parameter that is passed through the JSP page, is displayed correctly on the right top of the report view. But the data that is displayed in cross tab is not corresponding to the date and direction parameter. It corresponds to 1965-01-01 and direction 1 which are saved at design time.
    You can test this by modifying the parameter values in the JSP page that I sent earlier. You will see the displayed data will remain same irrespective of the parameter.
    Further to note, Before each trial run, I modify the parameters in JSP page, build them and redeploy so that caching does not affect the end result.
    This behaviour, we observe on all the reports that have cross-tabs. These reports work perfectly fine when rendered through ODBC-ActiveX viewer and the bug is observable only when ran through Java runtime library. We get this bug on view, export and print functionalities as well.
    Additionally we tested the same in
        With CR version 2008 instead of CR 2011.
    (ii)   Different browsers ranging from IE 7 through 9 and FF 7.
    The complete environment and various softwares that we used for this testing are,
    OS      : XP Latest updates as on Oct 2011.
    App Server: GlassFish Version 3 with Java version 1.6 and build 21
    Database server ; SQL Server 2005. SP 3 - Dev Ed.
    JTds JDBC type 4 driver version - 1.2.5  from source forge.
    Eclipse : Helios along with crystal libraries directly downloaded from SDN site.
    I am uploading the log file that is generated when rendering the rpt for view in IE 8
    Regards
    DRG

  • Help with spry tabbed menu bar

    Hi.
    I need help with the spry tabbed menu panel (horizontal) It
    works fine in dreamweaver ( pressing f12 ) but when i goto my
    website www.so-nouveau.com it puts it all over and not in boxes
    either just the writing.
    I ahve double checked all uploading is correct and files are
    located but it wont work.
    Here is what i did >
    new> html> 1 column elastic,centered. i have not
    changed any other settings at all. Do i need to change the doc type
    or css layout in the drop down menus before starting (doc
    type=xhtnl 1.0 transitional and layout css=add to head)
    I am still on cs3 , does this matter ? or is 4 easier ?
    any help out there guys is much appreciated but please bear
    in mind that i am not a web designer or pc expert at all , this is
    just me building my own site , until nowit has been an enjoyable
    experience but grrrrrr when it dont work
    Thanks
    Jay

    so-nouveau wrote:
    > Hi.
    > I need help with the spry tabbed menu panel (horizontal)
    It works fine in
    > dreamweaver ( pressing f12 ) but when i goto my website
    www.so-nouveau.com it
    > puts it all over and not in boxes either just the
    writing.
    Please post links directly to the page having an issue. I saw
    no tabs on the home page, but I noticed that there is a link on the
    bottom of the page to this page that has a Spry tab on it:
    http://www.so-nouveau.com/test%208.html
    > I ahve double checked all uploading is correct and files
    are located but it
    > wont work.
    That page refers to a Spry JavaScript file and a Spry CSS
    file, which should be at the following locations but are not
    present:
    http://www.so-nouveau.com/SpryAssets/SpryTabbedPanels.js
    http://www.so-nouveau.com/SpryAssets/SpryTabbedPanels.css
    Make sure you upload the SpryAssests folder and see where
    you're at after that.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • Discover group problem with cross tab report

    Hi, I'm working on a cross tab report in discoverer 4i and I'm having a problem with two of the colums. I'm doing a count on one field but because they are called something different they are being shown as two seperate columns rather than 1.
    I have one called 101 -AVG and another called 101-AVG. My condition pulls every result back that starts with 101 in the table. So because in the table the values are different it breaks the count into totals for 101 -AVG and 101-AVG.
    Is there some way I can group these results together into one field?
    thanks,
    Ian

    Pitson,
    better to ask this question in the BI Publisher Forum than here in the Oracle Reports Forum:
    BI Publisher
    Regards
    Rainer

  • Problem with Cross-tab report (RTF Template) null values, current-group()

    Hi, experts!
    I generate Cross-tab report using RTF Tamlpate and I have problem with grouping.
    My XML file have to be with one group only because I want to using dynamic regrouping inside the RTF template.
    Here is my data structure (XML file):(Look the images for details)
    http://img156.imageshack.us/img156/3997/xmlstructureay9.jpg
    =======================
    WITH GROUPS
    =======================
    Here is my RTF template:
    http://img151.imageshack.us/img151/2951/resultcrosstabbycustomehf8.jpg
    When I'm using grouping and I want to have for each group cross-tab report I have the following problem: (Look the images for details)
    http://img156.imageshack.us/img156/8786/resultcrosstabbycustomect9.jpg
    And this is my code I'm using inside the RTF template with groups:(Look the images for details)
    http://img156.imageshack.us/img156/4253/fieldbrowserxb7.jpg
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    =======================
    WITHOUT GROUPS
    =======================
    Here is my RTF template:
    http://img151.imageshack.us/img151/9545/resultcrosstabwithoutgrzg7.jpg
    When I generate one cross-tab there is no problem: (Look the images for details)
    http://img156.imageshack.us/img156/7030/resultcrosstabwithoutgrsr1.jpg
    This is my code I'm using inside the RTF template WITHOUT groups:(Look the images for details)
    http://img151.imageshack.us/img151/7030/fieldbrowserwithoutgrours8.jpg
    Can someone give me a hand to deal with this?
    Thank you!

    Pitson,
    better to ask this question in the BI Publisher Forum than here in the Oracle Reports Forum:
    BI Publisher
    Regards
    Rainer

  • Problem with Cross-tab report (RTF Template)

    Hi, experts!
    I generate Cross-tab report using RTF Tamlpate and I have problem with grouping.
    My XML file have to be with one group only because I want to using dynamic regrouping inside the RTF template.
    Here is my data structure (XML file):(Look the images for details)
    http://img156.imageshack.us/img156/3997/xmlstructureay9.jpg
    =======================
    WITH GROUPS
    =======================
    Here is my RTF template:
    http://img151.imageshack.us/img151/2951/resultcrosstabbycustomehf8.jpg
    When I'm using grouping and I want to have for each group cross-tab report I have the following problem: (Look the images for details)
    http://img156.imageshack.us/img156/8786/resultcrosstabbycustomect9.jpg
    And this is my code I'm using inside the RTF template with groups:(Look the images for details)
    http://img156.imageshack.us/img156/4253/fieldbrowserxb7.jpg
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    =======================
    WITHOUT GROUPS
    =======================
    Here is my RTF template:
    http://img151.imageshack.us/img151/9545/resultcrosstabwithoutgrzg7.jpg
    When I generate one cross-tab there is no problem: (Look the images for details)
    http://img156.imageshack.us/img156/7030/resultcrosstabwithoutgrsr1.jpg
    This is my code I'm using inside the RTF template WITHOUT groups:(Look the images for details)
    http://img151.imageshack.us/img151/7030/fieldbrowserwithoutgrours8.jpg
    Can someone give me a hand to deal with this?
    Thank you!

    Pitson,
    better to ask this question in the BI Publisher Forum than here in the Oracle Reports Forum:
    BI Publisher
    Regards
    Rainer

  • Running Totals and Formulas with Cross Tabs

    Hi,
    I'm using Crystal Reports 2008 and am having two issues using Cross Tabs.
    The first is that I want to have two crosstabs. They both will have a common Y axis (Oppourtunity.Sales Rep), and on the Y Axis I want one to show all (Opportunity.Create Date) where (Opportunity.Staus = Won) and the other where (Opportunity.Staus = In Process), but I can't figure out how to contruct the formula to return this result.
    The other issue, is that in addition to summarizing based on Sum (Opportunity.Expected Revenue), I would also like to create a running total to show the cumulative (Expected Revenue) Week over Week.
    Any direction would be fantastic.
    Thank you,
    Michael

    Please go through the SAP Notes listed here which would help you how to create mannual running totals in crosstab
    [https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_ossnotes&query=runningtotalin+crosstab&adv=true&note_number=&component=&sdn_updated_on_comparator=GE&sdn_updated_on=&sortby=cm_rnd_rankvalue]
    Regards,
    Raghavendra

  • Grouping when there are multiple subreports with cross tabs

    <p>I have been unsuccessful trying to make a grouping work on the master report when the sub-reports contain cross tabs. All stored procedures used contain the exact grouping field.</p><p>Where am I going wrong?</p><p>Thanks</p>

    Not much, but good call.
    While I'm not too versed in reading them, as I rarely branch out of the Premiere Pro part of the workflow,
    a quick look at the EDL in a text editor names the files by name and then provides the timecodes for cuts,
    and the like. There's no more information there than anywhere else, though it does tell me what parts
    should flow into what parts. I could manually track to the appropriate places in the source files and see if
    the cut makes sense, and then the file with the most sensical cuts is the one I'm looking for, but again
    that would be a really long process, and would have to be repeated for each and every file.
    Definite credit for thinking of it, though. I hadn't thought of what I could glean from there.
    As for crashing, I've been taking it slow trying to not risk making mistakes and needing to go back and
    re-reimport the files, but I'd assume Premiere Pro doesn't like it too much when you ask it to pull footage
    from the fifteenth minute of a twelve-minute clip. I haven't extensively tested it, though, that's why I offered
    the second scenario, in which it works and I have to figure out what's out of place.

  • Help in cross tabs.

    I have a cross tab defined.
    can we show levels hierarchy in cross tabs?
    I have a hierarchy described. I have a cross tab such a way that,
    In th description on cross tab:
    If value at Level4 = 'computers' this table gives us the all sublevels under level 4 i.e.level 5
    But, even level 5 has a sublevel as Level6.
    I need to dsiplay even level 6 in the outcome.
    Its this way:
    This is my cross tab:
    http://img651.imageshack.us/img651/9179/76869600.jpg
    and the code in box C: <?crosstab:c547;"//SQL_ROW[level4='computers']";"level5";"sum_date{,o=a,t=t}";"price";"sum"?>
    This is my current output:
    http://img64.imageshack.us/img64/3011/89739442.jpg
    But I need this as outcome: how do I achieve this? Please help me :
    http://img834.imageshack.us/img834/84/27269357.jpg

    I am not clear of where to put the condition.
    can anyone help me please.
    This is my Cross tab:
    http://img163.imageshack.us/img163/9575/78212975.jpg
    This is my current out put:
    http://img411.imageshack.us/img411/7033/55191078.jpg
    But I need this Out put:
    http://img834.imageshack.us/img834/84/27269357.jpg

  • Problem with cross tab

    Hello,
    I want to use a crosstab within Crystal Report Studio to display the revenues of several months of each customer in a single row. (in the underlying database the revenues of each month are stored in a seperate row). So far so good.
    I have put the customer id to the row, the date_id to the column and the kpi revenue as group field.
    But I want to use further describing db columns in front of the kpi, additionally to the customer id, for example the customer name, customer city and so on. But I don't know how I can do this. Is there any possibility?
    I don't want to create a formular and concatenate the columns, because then I don't have the columns of the different customers amoung each other.
    So is there another approach.
    Many tahnsk,
    Stefen

    You  can add as many columns or rows as  you want.
    In your case, you can add Customer name, City etc as rows next to customer id. By default 'subtotals' for each of the row will be added.
    Since you dont want any subtotals, right click on the cross tab, select crosstab expert, uncheck 'Suppress subtotal' checkbox under 'Customize Style' tab.
    Hope this helps

Maybe you are looking for

  • How do I transfer non-iTunes music files from my iPad to my MacBook using home sharing?

    My MacBook Pro hard drive recently had to be replaced by Apple, because it quit for some reason they couldn't identify. However, now my ipad2 doesn't recognize my macbook pro and I have at least 200 music files in my library on my iPad that I did not

  • How to use the separate symbol in the text field in the adobe form.

    Hi,experts, I don’t know how to use the separate symbol to make a paragraph separate into several lines correctly in the text field in the adobe form. Action: 1. config the ADS successfully. 2. create the adobe form with a mult-line textfield(binding

  • Date Formats (dd/mm/yyyy and mm/dd/yyyy)

    Is there anyway to change the date format from mm/dd/yyyy to dd/mm/yyyy? I'm using XP and have changed all settings I can to UK from US but nothing changes. It's quite frustrating as I am used to the UK system. Thanks.

  • Music for slide show

    I am creating a slide show and the music I use is a bit short so it plays twice. It there any way to eliminate the delay (silence) when it starts again. Maybe this is something I need to do in iTune? Thanks for all the great tips I keep reading on th

  • Itunes: where has the english lanquage gone?

    Can you assist, I have downloaded Itunes 11 many times hoping to correct the following problem. There is no english choices in the lanquage list and by default it uses the first listed  lanquage which I can not read nor any of the others.