Anyone help me in cross tab report

Hi All,
this is my first time to build cross tab report in xml publisher
my code is
<?xml version="1.0"?>
<!-- Generated by Oracle Reports version 10.1.2.0.2 -->
<TEST>
<LIST_G_SUMFIXED_ASSETS_COST>
<G_SUMFIXED_ASSETS_COST>
<LIST_G_ASSET_NUMBER>
<G_ASSET_NUMBER>
<ASSET_NUMBER>2402</ASSET_NUMBER>
<DESCRIPTION>Intangible Assets </DESCRIPTION>
<LIST_G_PERIOD_NAME>
<G_PERIOD_NAME>
<PERIOD_NAME>Dec-08</PERIOD_NAME>
<LIST_G_FIXED_ASSETS_COST>
<G_FIXED_ASSETS_COST>
<FIXED_ASSETS_COST>1</FIXED_ASSETS_COST>
</G_FIXED_ASSETS_COST>
</LIST_G_FIXED_ASSETS_COST>
</G_PERIOD_NAME>
<G_PERIOD_NAME>
<PERIOD_NAME>Nov-08</PERIOD_NAME>
<LIST_G_FIXED_ASSETS_COST>
<G_FIXED_ASSETS_COST>
<FIXED_ASSETS_COST>2</FIXED_ASSETS_COST>
</G_FIXED_ASSETS_COST>
</LIST_G_FIXED_ASSETS_COST>
</G_PERIOD_NAME>
<G_PERIOD_NAME>
<PERIOD_NAME>Oct-08</PERIOD_NAME>
<LIST_G_FIXED_ASSETS_COST>
<G_FIXED_ASSETS_COST>
<FIXED_ASSETS_COST>3</FIXED_ASSETS_COST>
</G_FIXED_ASSETS_COST>
</LIST_G_FIXED_ASSETS_COST>
</G_PERIOD_NAME>
<G_PERIOD_NAME>
<PERIOD_NAME>Sep-06</PERIOD_NAME>
<LIST_G_FIXED_ASSETS_COST>
<G_FIXED_ASSETS_COST>
<FIXED_ASSETS_COST>4</FIXED_ASSETS_COST>
</G_FIXED_ASSETS_COST>
</LIST_G_FIXED_ASSETS_COST>
</G_PERIOD_NAME>
<G_PERIOD_NAME>
<PERIOD_NAME>Sep-08</PERIOD_NAME>
<LIST_G_FIXED_ASSETS_COST>
<G_FIXED_ASSETS_COST>
<FIXED_ASSETS_COST>50</FIXED_ASSETS_COST>
</G_FIXED_ASSETS_COST>
</LIST_G_FIXED_ASSETS_COST>
</G_PERIOD_NAME>
</LIST_G_PERIOD_NAME>
</G_ASSET_NUMBER>
<G_ASSET_NUMBER>
<ASSET_NUMBER>2403</ASSET_NUMBER>
<DESCRIPTION>Lands Al-Mashail school</DESCRIPTION>
<LIST_G_PERIOD_NAME>
<G_PERIOD_NAME>
<PERIOD_NAME>Dec-08</PERIOD_NAME>
<LIST_G_FIXED_ASSETS_COST>
</LIST_G_FIXED_ASSETS_COST>
</G_PERIOD_NAME>
<G_PERIOD_NAME>
<PERIOD_NAME>Nov-08</PERIOD_NAME>
<LIST_G_FIXED_ASSETS_COST>
</LIST_G_FIXED_ASSETS_COST>
</G_PERIOD_NAME>
<G_PERIOD_NAME>
<PERIOD_NAME>Oct-08</PERIOD_NAME>
<LIST_G_FIXED_ASSETS_COST>
</LIST_G_FIXED_ASSETS_COST>
</G_PERIOD_NAME>
<G_PERIOD_NAME>
<PERIOD_NAME>Sep-06</PERIOD_NAME>
<LIST_G_FIXED_ASSETS_COST>
<G_FIXED_ASSETS_COST>
<FIXED_ASSETS_COST>1400000</FIXED_ASSETS_COST>
</G_FIXED_ASSETS_COST>
</LIST_G_FIXED_ASSETS_COST>
</G_PERIOD_NAME>
<G_PERIOD_NAME>
<PERIOD_NAME>Sep-08</PERIOD_NAME>
<LIST_G_FIXED_ASSETS_COST>
</LIST_G_FIXED_ASSETS_COST>
</G_PERIOD_NAME>
</LIST_G_PERIOD_NAME>
</G_ASSET_NUMBER>
<G_ASSET_NUMBER>
<ASSET_NUMBER>2404</ASSET_NUMBER>
<DESCRIPTION>Buildings Um-Hany Arabic school</DESCRIPTION>
<LIST_G_PERIOD_NAME>
<G_PERIOD_NAME>
<PERIOD_NAME>Dec-08</PERIOD_NAME>
<LIST_G_FIXED_ASSETS_COST>
</LIST_G_FIXED_ASSETS_COST>
</G_PERIOD_NAME>
<G_PERIOD_NAME>
<PERIOD_NAME>Nov-08</PERIOD_NAME>
<LIST_G_FIXED_ASSETS_COST>
</LIST_G_FIXED_ASSETS_COST>
</G_PERIOD_NAME>
<G_PERIOD_NAME>
<PERIOD_NAME>Oct-08</PERIOD_NAME>
<LIST_G_FIXED_ASSETS_COST>
</LIST_G_FIXED_ASSETS_COST>
</G_PERIOD_NAME>
<G_PERIOD_NAME>
<PERIOD_NAME>Sep-06</PERIOD_NAME>
<LIST_G_FIXED_ASSETS_COST>
<G_FIXED_ASSETS_COST>
<FIXED_ASSETS_COST>109501.785</FIXED_ASSETS_COST>
</G_FIXED_ASSETS_COST>
</LIST_G_FIXED_ASSETS_COST>
</G_PERIOD_NAME>
<G_PERIOD_NAME>
<PERIOD_NAME>Sep-08</PERIOD_NAME>
<LIST_G_FIXED_ASSETS_COST>
</LIST_G_FIXED_ASSETS_COST>
</G_PERIOD_NAME>
</LIST_G_PERIOD_NAME>
</G_ASSET_NUMBER>
<G_ASSET_NUMBER>
<ASSET_NUMBER>2405</ASSET_NUMBER>
<DESCRIPTION>Buildings Um-Hany Arabic school</DESCRIPTION>
<LIST_G_PERIOD_NAME>
<G_PERIOD_NAME>
<PERIOD_NAME>Dec-08</PERIOD_NAME>
<LIST_G_FIXED_ASSETS_COST>
<G_FIXED_ASSETS_COST>
<FIXED_ASSETS_COST>2468.5</FIXED_ASSETS_COST>
</G_FIXED_ASSETS_COST>
</LIST_G_FIXED_ASSETS_COST>
</G_PERIOD_NAME>
<G_PERIOD_NAME>
<PERIOD_NAME>Nov-08</PERIOD_NAME>
<LIST_G_FIXED_ASSETS_COST>
</LIST_G_FIXED_ASSETS_COST>
</G_PERIOD_NAME>
<G_PERIOD_NAME>
<PERIOD_NAME>Oct-08</PERIOD_NAME>
<LIST_G_FIXED_ASSETS_COST>
</LIST_G_FIXED_ASSETS_COST>
</G_PERIOD_NAME>
<G_PERIOD_NAME>
<PERIOD_NAME>Sep-06</PERIOD_NAME>
<LIST_G_FIXED_ASSETS_COST>
</LIST_G_FIXED_ASSETS_COST>
</G_PERIOD_NAME>
<G_PERIOD_NAME>
<PERIOD_NAME>Sep-08</PERIOD_NAME>
<LIST_G_FIXED_ASSETS_COST>
</LIST_G_FIXED_ASSETS_COST>
</G_PERIOD_NAME>
</LIST_G_PERIOD_NAME>
</G_ASSET_NUMBER>
</LIST_G_ASSET_NUMBER>
</G_SUMFIXED_ASSETS_COST>
</LIST_G_SUMFIXED_ASSETS_COST>
<SUMSUMFIXED_ASSETS_COSTPERREPO>4548732.119</SUMSUMFIXED_ASSETS_COSTPERREPO>
</TEST>
this my code in rtf file
     <?for-each-group@column: G_PERIOD_NAME; PERIOD_NAME?>
PERIOD_NAME
<?end for-each-group?>
<?for-each-group: G_ASSET_NUMBER; ASSET_NUMBER?>
<?ASSET_NUMBER?>     
<?for-each-group@cell:current-group();PERIOD_NAME?>
<?sum(current-group()/FIXED_ASSETS_COST)?>
<?end for-each-group?>
<?end for-each-group?>
and this sample of output
Asset Dec-08 Nov-08 Oct-08 Sep-06 Sep-08
2402
0 0 0 0 0
2403
0 0 0 0 0
2404
0 0 0 0 0
2405
0 0 0 0 0
2406
0 0 0 0 0
2407
0 0 0 0 0
2408
0 0 0 0 0
2409
0 0 0 0 0
2410
0 0 0 0 0
2411
0 0 0 0 0
2412
0 0 0 0 0
2413
0 0 0 0 0
2414
0 0 0 0 0
2415
0 0 0 0 0
2416
0 0 0 0 0
2417
thanks in advance

Thanks Vetsrini for your help but when i tried to apply your code it give me the following error
Font Dir: E:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
RTFProcessor setLocale: en-us
FOProcessor setData: E:\Documents and Settings\Administrator\Desktop\asset report\test\New Folder\testqq.xml
FOProcessor setLocale: en-us
java.lang.reflect.InvocationTargetException
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:586)
     at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:383)
     at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:201)
     at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:161)
     at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1015)
     at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:968)
     at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:209)
     at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1561)
     at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:951)
     at RTF2PDF.runRTFto(RTF2PDF.java:626)
     at RTF2PDF.runXDO(RTF2PDF.java:460)
     at RTF2PDF.main(RTF2PDF.java:251)
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
     at oracle.xdo.parser.v2.XSLTContext.peekExprValue4Grouping(XSLTContext.java:861)
     at oracle.xdo.parser.v2.XPathFunctionCall.evaluate(XPathFunctionCall.java:526)
     at oracle.xdo.parser.v2.PathExpr.evaluate(XSLNodeSetExpr.java:851)
     at oracle.xdo.parser.v2.XSLForEachGroup.processAction(XSLForEachGroup.java:78)
     at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
     at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
     at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
     at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
     at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
     at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
     at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
     at oracle.xdo.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
     at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:508)
     at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:485)
     at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:264)
     at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:150)
     at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:187)
     ... 16 more
thanks again

Similar Messages

  • Help with formatting for Cross Tab Report Crystal 2008

    This is probably a simple question.  I have a cross tab report that displays sales by month for a period of 6 months.  These sales columns are formatted to be numbers with no decimals.  In addition to these columns, I have inserted columns that display the percentage up/down in sales over the previous month.  If I try to format the percentage columns, it changes every column to then display "##,##.##%" when I need to keep the sales columns at "##,###" with no decimal or percentage sign.
    1.  Is there a way to change the formatting of some of the columns but not all in a cross tab report?
    2.  If not, can I add a function that would change these in the calculation formula of the calculated member? 
    I tried to add "%" but it wants it to return a number.
    Here is the current code:
    //The calculation formula is used in place of the summaries in Calculated Members.
    // This calculation formula must return a/an Number value.
    If GridValueAt (CurrentRowIndex,CurrentColumnIndex-3,CurrentSummaryIndex) = 0 then 0 else
    ((GridValueAt (CurrentRowIndex,CurrentColumnIndex-1,CurrentSummaryIndex) -
    GridValueAt (CurrentRowIndex,CurrentColumnIndex-3,CurrentSummaryIndex)) /
    GridValueAt (CurrentRowIndex,CurrentColumnIndex-3,CurrentSummaryIndex)) * 100
    Any help is appreciated. 
    Thank you,
    Tobi

    Carl,
    Thank you for your help.  I did try your method but still couldn't get it to ignore the fact that it wanted a number.  I changed my approach a litte and managed to solve the problem.  Here is the method that I chose which managed to solve the problem.  If this is a poor way to solve it, please let me know as I am always open for new ways.
    Format Field > Number Tab > Customize > Currency  Symbol Tab
    Checked Enable Currency Symbol Fixed, changed  currency symbol to %.  This is the same thing that I did before which changes it for all columns. 
    Beside Enable Currency checkbox, I added this formula:
    // This conditional formatting formula must return one of the following Currency Symbol Constants:
    // crNoCurrencySymbol
    // crFixedCurrencySymbol
    // crFloatingCurrencySymbol
    If GridRowColumnValue("InvoiceLine.TxnDate") = Date(0,0,0) then
        crFixedCurrencySymbol  
    else
        crNoCurrencySymbol
    My added columns have a null date field so they take the currency format.  My other columns do not so they do not take the formatting.
    Thanks again for the help.
    Tobi
    Edited by: Tobi@TABeverage on Dec 2, 2009 3:58 PM

  • Sort in Cross-Tab report

    I have a cross-tab report that lists dates as headers and employees as rows. The data at every cell shows the qty (it is like timesheet report). The totals are shown for every row and column. The report layout looks something like this:
    ----------- <date> <date> <date> .... <Total>
    <name> <qty> <qty> <qty> <qty>
    <name> <qty> <qty> <qty> <qty>
    <name> <qty> <qty> <qty> <qty>
    <Total> <qty> <qty> <qty> <qty>
    The report definition looks like this (I numbered the columns to make it easier to write about them):
    01: <?horizontal-break-table:1?>
    02: <?for-each-group@column:EMPLOYEE_TIME;./TRANSACTION_DATE?><?sort:TRANSACTION_DATE;'ascending';data-type='date'?>
    03: <?TRANSACTION_DATE?>
    04: <?end for-each-group?>
    05: <?for-each-group:EMPLOYEE_TIME;./EMPLOYEE_NAME?><?sort:EMPLOYEE_NAME?><?variable@incontext:G1;current-group()?>
    06: <?EMPLOYEE_NAME?>
    07: <?for-each-group@cell://EMPLOYEE_TIME;./TRANSACTION_DATE?>
    08: <?sum ($G1[(./TRANSACTION_DATE=current()/TRANSACTION_DATE)]/TRANSACTION_QTY)?>
    09: <?end for-each-group?>
    10: <?sum ($G1/TRANSACTION_QTY)?>
    11: <?end for-each-group?>
    12: <?variable@incontext:T;.//EMPLOYEE_TIME?>
    13: <?for-each-group@cell://EMPLOYEE_TIME;./TRANSACTION_DATE?>
    14: <?sum (current-group()/TRANSACTION_QTY)?>
    15: <?end for-each-group?>
    16: <?sum ($T/TRANSACTION_QTY)?>
    The XML data is not sorted in any way and the report sorts it by employee and date. As you see at the line 02 I applied the sort by the transaction date. The sort works as expected, however the actual QTY are not showing at correct cells. If I remove sort it works fine but the dates are in random order. I suspect it is because I sort transaction date at header level and the QTY is not aware about it. I tried to apply the sort at line 07 but it does not help.
    Does anyone has any idea how to get this report to display data correctly?

    I have a SR which has associated bug 6131270.
    Here is the latest from my SR:
    UPDATE
    =======
    Hi Tomas,
    The bug has been updated. Development has recommended
    "You also need the patch from bug 4332399 to solve the java.util.EmptyStackException. "
    Please review above bug if you have access.
    Please consider applying Patch 4332399 - XSL:SORT FAILED IN A 2 LEVEL XSL:FOR-EACH-GROUP CASE
    Backport is included in patch 5840358 for EBS customers.

  • Problem in Cross Tab Report in crytsal report

    Dear members,
    I have designed and generated a cross tab report with fields being percentage,country,amounts. i have obtained the sum of row level.But i need to obtain the sum of amounts in each region wise. I need the report as shown below. I have tried the running total field in cross tab as sum but its showing the overall total.
    Month PO Ger EurTot.USA Canada NATot
    5%       10     20  30       15    25          40
    But i am getting the report as like this.
    Month TOTAL PO GER USA CAN INDIA
    10%     150    15   30    15    45     45.
    Can anyone please help me in this regard?
    Thanks and Regards,
    Venkatesh.R

    Hi,
    cross tab is a diagonal report , u have to make query in such a way so that it returns the all field in row and columns way  i.e in diagonal form .
    U have to fetch total in same manner
    Rgds,
    Premraj

  • Cross tab report's -one column display total counts of previous financial year, one column current financial year

    Hi
    I'm using CR XI. I'm attempting to create  a cross-tab report where:
               Added       Total
    AF         12            23
    F            15           30
    CO         18           50
    Where AF etc is the categoty of items, Added is the total count of previous finanical year(e.g. 1 July 2006 to 30 June 2007), Total is the total account of current finanical year.
    The count is based on created_date field(e.g. ITD.DTE -- ITD is the table, DTE is the field).
    Although I can at the moment only display the value correctly in "Added"  column, if I tried to display the Total column, the two columns always have the same value.
    How could I achieve the above desired results by using fomula? I would appreciate it very much if anyone could help me with this?
    Thanks in advance
    JS

    Create 2 formulas, 1 for the previous year and 1 for current, similar to the following;
    1) if date({Orders.Order Date}) in date(2003,07,01) to date(2004,06,30) then 1 else 0
    2) if date({Orders.Order Date}) in date(2004,07,01) to date(2005,06,30) then 1 else 0
    Add both of these formulas as the summarized fields in the crosstab

  • How to add an image or static text in the header of EACH page of a cross-Tab report

    Post Author: rtutus
    CA Forum: General
    Hi, I use Crustal 11.0.
    I have a cross Tab. I display the items on the left column and the months horizontally, the items are grouped by category field. The values are the sum of quantities are displayed for each month. Like this:
                             Items         Jan       Feb       March .....................Total
    Category 1                       
                             Item11         val11     Val12      Val13                     Total values
                             Item12         val21     Val22      Val23                     Total values
                             Item13         val31     Val32      Val33                     Total values
    Category 2                       
                             Item21         val11     Val12      Val13                     Total values
                             Item22         val21     Val22      Val23                     Total values
                             Item23         val31     Val32      Val33                     Total values
    Category 3                       
                             Item31         val11     Val12      Val13                     Total values
                             Item32         val21     Val22      Val23                     Total values
                             Item33         val31     Val32      Val33                     Total values
    The problem, I want to add a page header for each page of the report.
    When Crystal reports first displays my cross-tab in the designer, CR displays the cross tab in the Report header section. I d like to add text or image for each page and not only at the begining of my Cross-Tab.
    If I just add an image or text at the top of the report designer, which is my report header, I get the image or text only on the begining of the 1st page of my report but never in the other following pages.
    If I try to work around the problem and move the cross Tab to a group section instead, and then put the Image in the group header, I get what I want, but the problem is that:
    The columns header: Jan, February....December are displayed for each group of my report and not only in the beginning of the report. I get something like this:
                             Items         Jan       Feb       March .....................Total
    Category 1                       
                             Item11         val11     Val12      Val13                     Total values
                             Item12         val21     Val22      Val23                     Total values
                             Item13         val31     Val32      Val33                     Total values
                             Items         Jan       Feb       March .....................Total
    Category 2                       
                             Item21         val11     Val12      Val13                     Total values
                             Item22         val21     Val22      Val23                     Total values
                             Item23         val31     Val32      Val33                     Total values
                             Items         Jan       Feb       March .....................Total
    Category 3                       
                             Item31         val11     Val12      Val13                     Total values
                             Item32         val21     Val22      Val23                     Total values
                             Item33         val31     Val32      Val33                     Total values
    You see the months get duplicated. Any way, my real need is to add an image or text in the header of EACH page of a cross-Tab report.
    Thanks a lot for your help.

    Hi Divya,
    you could do for example in the wdDoInit() of the view
    wdContext.currentContextElement().setPicture("picture.gif");
    Now you assign this context variable to the Tab using the Tab_header's imageSource-Property. When you click on its value column, you see a button with three dots on it. If you click on this button, you will get all context nodes and attributes for this View. Usable variables are clearly marked, you now choose the one named Picture or what ever name you prefer to use. But it must correspond to the one set in the wdDoInit.
    I think setting a picture (not necessarily for the tab-page) is done in one of the excellent tutorials. If you are a newcomer I strongly recommend doing some of the tutorials.  I have learned tremendously from them.
    Hope this helped
    Harald

  • Dynamically color to each column in Cross-tab report

    Hello All,
    I am a newbie in Crystal report,from last few weeks, i am working on cross tab crystal report.i have a requirement to show color dynamically for each column.i am adding an attachment how i want it. i tried dynamic coloring using object field formula but it is showing red color to all data.i want red color data when in 2nd  cross tab report data is beyond upper or lower limit in first cross tab table. it will be very helpful if somebody will give me any clue on this.... i read so many articles now it seem like impossible for me..:(
    i am using visual studio 2010 and sap crystal report version 13.0.0.99 for visual studio 2010.

    Hello Manish,
    I have attached a sample report that does this. You will need to remove the .txt extension from the attached file to open it as an .rpt file.
    Please right click on one of the value fields of the first cross tab in the report > Format Field > Common > Suppress if Duplicated conditional formula.
    The nested formula is as follows;
    numbervar array l;
    numbervar array u;
    numbervar x:=CurrentColumnIndex;
    if GridRowColumnValue ('@limit') = 'lower limit' then
    (redim preserve l[x];
    l[x]:= tonumber(CurrentFieldValue))
    else if GridRowColumnValue ('@limit') = 'upper limit' then
    (redim preserve u[x];
    u[x]:= tonumber(CurrentFieldValue));
    false
    So it assigns each lower and upper limit value for each client (in the sample it is country) to an array using the cross tabs column index to index the array and it ends in False as we don't actually want it to suppress if duplicated. This nested formula is just used to generate the arrays of upper and lower values.
    In the second cross tab if you again right click on one of the value fields > Format Field > Font > Color you will see the following conditional formula;
    numbervar array l;
    numbervar array u;
    numbervar x;
    if not(tonumber(CurrentFieldValue) in l[CurrentColumnIndex] to u[CurrentColumnIndex]) then
    crred
    else
    crblack
    So this compaes the current field value to range generated by the 2 arrays and assigns a color based on whether or not it is in the range.
    Regards,
    Graham

  • Issue in developing cross tab report with wizard in 10.1.3.2.1

    Hi Gurus,
    We are trying to develope group above cross tab report with wizard in BI Publisher 10.1.3.2.1 .
    i am unable to achieve multiple level columns dynamically.Using cross tab wizard i can achieve single level measure column ,but not the second level column.
    Output should look like this:
    Country1
    Region1 Region2 Region3 --(level1 column)
    d1 d2 d3 d1 d2 d3 d1 d2 d3 -- (level2 column)
    Row1 10 20 30 70 80 90 40 70 90 --data
    Row2 21 24 54 65 23 64 64 76 87 --data
    Here Regions and d1 d2 d3 may vary based on xml data.Also we have page break on country.
    Haven't get any solution till now.
    Also unable to achieve under line and overline on data for total row.
    Need help urgently in this issue.
    Thanks,
    Mahesh
    Edited by: user13450806 on Jan 7, 2011 12:43 AM

    Hi Gurus,
    I am still waiting for some one to help me in this issue.
    It is very urgent for me to solve this. Did not get any help yet.
    --Mahesh                                                                                                                                                                                                                                                                                                       

  • Help me in Cross Tab

    Post Author: mak101
    CA Forum: Crystal Reports
    Hi,
    My table has following fields;
    Region,ReportMonth,ClientName,SpecialOrder1 and SpecialOrder2
    I store all client information who has ordered in that month and also mark if they have ordered special items. Here is sample data.
    Region  ReportMonth    ClientName    SpecialOrder1    SpecialOrder2
    1           Jan                Client 1          Yes                     No
    1           Feb                Client 1           No                     No
    1          Mar                 Client 1        Yes                      Yes
    I need detail report b region and in region summary i need information like:
                                                     Jan              Feb             March             .......
    Total Orders
    of Special order 1
    % of special orders 1 to total
    of special Order 2
    % of special orders 2 to total
    I have never created cross tab report, I would appreciate if someone can help me.
    Thanks.

    Post Author: mak101
    CA Forum: Crystal Reports
    Hi,
    My table has following fields;
    Region,ReportMonth,ClientName,SpecialOrder1 and SpecialOrder2
    I store all client information who has ordered in that month and also mark if they have ordered special items. Here is sample data.
    Region  ReportMonth    ClientName    SpecialOrder1    SpecialOrder2
    1           Jan                Client 1          Yes                     No
    1           Feb                Client 1           No                     No
    1          Mar                 Client 1        Yes                      Yes
    I need detail report b region and in region summary i need information like:
                                                     Jan              Feb             March             .......
    Total Orders
    of Special order 1
    % of special orders 1 to total
    of special Order 2
    % of special orders 2 to total
    I have never created cross tab report, I would appreciate if someone can help me.
    Thanks.

  • Restricting data in cross tab report

    Hi
    I am creating a cross tab report.In that I want to restrict the column dynamically.The column depends upon the parameter field.
    say for example if i enter the parameter as 2007,it should display field from 2004-2007 only rather than displaying all years.
    Thanks in Advance,
    Eswari

    Hi,
    You can use a formula. e.g
    < Basic format>
    Select case year({Command.tradeDate})
        case 2005 to 2007
            formula = 1
        Case else
            formula = 0
    end select
    Then on the crosstab column group options, choose "specified order" and on the "Other" tab choose "Discard all others"
    Hope this helps
    Regards
    Dotun.

  • Cross Tab Report

    Hi,
    I'm creating a report in Crystal 2008 for SAP Business One. This report is a sales report and i want to pull the data  from three tables namely Invoice Rows, Credit Memo Rows and Down Payment Invoice Rows. Other selections in the report include the Posting Periods table, Items Group Table and the Items Master Data table.
    I'm considering a cross tab report displaying the Items Group on the Row level and the Posting Periods on the columns with Sum of row totals for item groups per items on invoice,credit memo or down payment.
    I need help regarding the kind of joining is needed to ensure that i get a correct and good report showing total sales made for item groups per period. Thus, total sales = Invoice+Downpayment - Credit Memo
    Thanks.
    John

    You can also user OJDT as the base and left join it to the Invoice, Credit note and Downpayment tables by linking DocEntry and the object tpye.
    With this option, you need to use IF statement to read information based on object type.
    Using command as suggested is simpler.  However, my preference is to use command alone. 
    Linking Command with Tables seems to have slower performance.

  • Row Headers in Cross Tab Report -Crystal Report XI

    I am trying to create a cross tab report. The report has 4 rows and the columns get generated based on the value of a database field.
    I have 2 questions
    Question 1 : I want the rows to have headers. I insert text objects in the report and when I run the report in crystal, the headers are displaying as required. But when I export to excel, the headers are displayed after the data. How can I create row headers and get them exported to excel as row headers.
    Question 2: I am creating the column based on a database field. The field is of text data type. The sorting for this filed is 1. abc ,10. abc , 11.abc , 2.abc , 3.abc ; etc where abc is a text string. How can I sort the columns so that the columns appear as 1.abc, 2.abc, 3.abc etc.
    I tried using the specified order sorting, but when I check the list of values that it creates to select the values, it is truncating the values. I can only see part of the values from the database.
    Please Help!!!

    I don't have Crystal in front of me so I will try to do this from memory.  If you right click on a report object, there is option on one of the tabs (I think it is General) that says Display String with a corresponding X button.  If you click on that, then you can enter a text expression that overrides the actual value of the report object.
    In your case, if you want to add a static header text to the row data, you could try something like the following:
    if Gender = "M"
         then "Mr. " + CurrentFieldValue
         else "Ms. " + CurrentFieldValue
    where Gender is a field object in the report and CurrentFieldValue is the data object specified for rows in the cross-tab.
    If you wanted to put header on the previous line, you could try something like this:
    "Account ID" + chr(13) + CurrentFieldValue
    where CurrentFieldValue is the account ID string.
    Fuskie
    Who expects this looks nothing like your actual report but hopefully it works as an example...

  • Cross tab reporting in Crystal 8.5

    Post Author: KPetrey
    CA Forum: General
    I am trying to create a cross tab report for some data that will have varying number of columns.I am running into a problem where some situations are producing 25 or more columns.  This results in the crossing over to a second page.My end-users are going to dislike this very much.  I am trying to duplicate a report they had with their previous software system and it did not cross pages.  All data stayed on one page. My questions are as follows:Is there a way to make the cross tab wrap so that data does not cross to second page?Is there a different way to do what I need other than cross tab?What I am trying to do is list a column for each store that will show the qty of a product that is ordered for it....the number of stores will vary depending on my end-users setup. Any help would be greatly appreciated.Thanks

    Post Author: wapper
    CA Forum: General
    Crosstab is designed to grow wide-wise if the number of columns increases. How can you avoid splitting pages if the number of columns will reach, for example, 50?
    You should probably first make a decision, whether your report must be fixed-column or variable-column. If you stick to fix-column, you can design the report to accommodate theoretical maximum of columns, and imitate dynamic columns by using groups, formulas and hiding columns not in use at run time. Pain in the a** with 25+ columns but still doable. Drawback - if actual data will exceed the maximum number of columns, you are out of luck. Or you could stay with crosstab to keep support for variable number of columns, using small font and "Show Cell Margins" option to squeeze as many columns as is actually possible before falling over to the second page. I would prefer the latter if you ask me.
    Wapper

  • SAP Crystal Report - Formula in Cross Tab Report

    I have a below requirement in a cross tab report,
    Category          Name          Valu1          Value2    %ge
    A                       Car               40                  50        80
    A                        Bike             30                  60        50
    Total                                       70               110     63.6
    %ge is a formula field and is calculated as value1/value2 * 100
    Consider the Total section as a group footer.
    In the cross tab report how do I put the formula field for %ge in Total section.

    Vishujain
    Crosstabs are very structured and you are limited in what you can do with them. You can do a percentage summary in Crosstabs, but only as a percentage of the row total or the percentage of the column total. You cannot put a formula in the crosstab to do a percentage of a values in seperate rows. Any time I need to perform a function not available in a crosstab, I do a manual cross tab. Look at: [Manual Crosstab Explaination|Re: Formulas : Help for coding]
    Debi
    Edited by: Debi Herbert on Nov 3, 2011 11:51 AM

  • Drill down on cross tab report

    I would like to know whether it is possible to drill down through groups in a cross tab report.

    go to your online help in crystal reports and in the index section, look up "report part navigation".
    read through the sections on report parts and go through each section (using the right arrow at the bottom left of the help page) until you hit the section that is titled "context Report Part option scenarios".

Maybe you are looking for

  • Web Analysis report loading problem

    Hi, I have made my report on Web Analysis. I could open and edit it till yesterday. But now whenevr I try to open it I get an error popped up saying "Error loading document". I am not able to figure out why am i facing this problem. Could anybody ple

  • My cd rom is not working hp probook 4410s

    hp probook 4410s window xp error cd drive is not working no upgradation is made

  • Zone clustering in LDOMs

    A customer wishes to cluster zones using Solaris 10 u 11, and sun cluster 3.3. Customer has two T4-1s, each server has two ldoms. ldom-1 on the two servers has two non global zones. Can server1-ldom1 and server2-ldom1 cluster nonglobal zone 1?

  • Trouble opening MAC FLA after opening it on PC

    Hi. I have created a FLA file in Flash on a MAC. I then attempted to open it on a PC running Flash. It wouldn't open. Now when I try to open it back on the Mac it says that the windows machine has added an object that needs removing before it will op

  • Transport of APD process

    Hi, has anyone of you transported a APD process? We try to transport from a DEV system to the TST system. The transport is OK (only zeros, not even a varning somewhere), but what we get in the TST system is a modified version, not the active one. And