Re: Suppression Code in Cross tab Report

Hi All,
I am working with a cross tab report which has location descriptions as rows and dates as columns and the revenues as the summarized field.
Now I have over 7 locations without revenues and I need only 3 of them  for suppose 'LOC X' 'LOC Y' 'LOC Z' to be suppressed.
How can i Suppress only those 3 locations.
Can any one help  me with code please.
Thanks In Advance,
Nani

Nani
Can you use the "Suppress empty Rows" from the Customize Style tab in the CrossTab Expert?
Also, if your datasource is a Stored Procedure, you can filter them out there.
Edited by: Marty Reyes on Jan 3, 2011 10:52 PM

Similar Messages

  • Suppressing a prior Year Month Column on Cross Tab Report

    I have two cross tab report in the footer that compares orders booked against what was shipped by month.  I need to suppress the columns (Month) for the prior year but keep the Totals.
    I have a pdf of the report

    Try to add a formula as a column in the crosstab instead of a field. Create a formula like this
    if year()=year(currentdate)-1 then
    year()
    else
    month()
    This works only for two years of data, means you need to have the record selection formula like this
    year()>=year(currentdate)-1 and year()=year(currentdate)
    Regards,
    Raghavendra

  • 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

  • Problem using a conditional suppress in a cross-tab ?

    is there a problem using a conditional suppress in a cross-tab on a row  or summarized field  in crystal XI?
    I am using the following conditional suppress on a summarized field and its rows
             If {@SortCode}=4 then true;
    Sortcode is a group sorting formula field
    the summarized field is a formula field as well.
    All of the summarized fields are suppressed although the cross- tab performs correctly on @Sortcode  and the summarized field when not using the condition        
    it seems to me to be a reporting flow issue although i've included "whileprintingrecords" and "evaluateafter" with no success.
    i have also moved the cross-tab from the report header to group header and applied a conditional suppress on the group header through section expert.
    this supresses the group i dont want but includes grand totals for each group and also varys the number of columns
    i can't filter on sortcode because one of the grand total calculations requires those records and a subreport or second cross-tab does not contain the same number of columns
    the cross-tab is necessary as a client may have columns spanning one to many pages
    thanks for your help

    Hi I have a similar problem,
    I have an clock in solution, where i have some dates with data such as, various entries for a date eg, 01/11/2010 1hr, 01/11/2010 3 hrs etc, 03/11/2010 2hrs , 05/11/2010 4.5hrs, 05/11/2010 4 hrs so i need total for each day and highlight only those days, where total is less than 4.5, including days which donu2019t have records eg 02/11/2010 & 04/11/2010, I summarise in totals using a cross tab, to get summarised output for each day as,
                Totals
    01/11/2010    4
    03/11/2010    2
    05/11/2010    8.5
    in order to get the dates which didnu2019t have records, i added a dataset from Excel spreadsheet where i just have a sequential dates for the year , and use record selection to select only those dates in range which i need to display, so the result i get
    01/11/2010    4
    02/11/2010    0
    03/11/2010    2
    04/11/2010    0
    05/11/2010    8.5
    so far so good, all using cross tab, now i want to suppress rows which have total > 4.5 so the result should be
    01/11/2010    4
    02/11/2010    0
    03/11/2010    2
    04/11/2010    0
    How can i do that?

  • How to Add new column in cross tab reports

    I am using crystal reports 10
    I created cross tab report for monthly sales. I need to add one more column in that report
    ex:
    Month   Customer    Part1  Part2    Part3      
    Jan         A               10       12         15        
    Jan         B                20      0           10        
    Jan         C               0         3           5          
    Feb        A               5         10          8          
    Feb        D               55        23        33        
    In above data Parts are no limit, thatswhy i am taking cross tab report.
    I am taking Month and Customer name as Rows,
    Part Codes as Colums,
    Quantiry as Total fields in cross tab Report.
    Here month field is storing as Transaction date in database, I am calculating by month
    I am getting upto this.
    User needs add one more field is Invoice no
    Month   Customer    Part1  Part2    Part3        Invoice no
    Jan         A               10       12         15          B1,B2,B3,B4
    Jan         B                20      0           10         B12,B30
    Jan         C               0         3           5           B6
    Feb        A               5         10          8           B35,B40
    Feb        D               55        23        33          B25,B56
    How to add invoice nos by group wise(By customer and  By month)
    Thank you.
    Raja shekar Reddy K.
    Edited by: Raja shekhar Reddy on Apr 16, 2009 5:10 PM

    Dear Amogh,
    Thanks for u'r  Replay.
    If i use new crosstab for Invoice no each invoice number can display like seperate columns.
    But I need Invoice  no in single column with seperate with "," or "/".
    Thanks & regards,
    Raja Shekar Reddy K.

  • 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

  • How to create cross tab reports using RAS SDK api with Crystal Reports XI

    Hi Everybody,
    Iam generating reports in a web-based application with Crystal Reports XI using Report Application Server(RAS) SDK API. The columns in my report exceed that of an A4 sized page. So, when I export that report to pdf, only those columns that fit to a page are showing up. To solve, this problem, I thought of using cross tab. But, I donot know how to generate cross tab report using RAS SDK API. I have tried to get some code from the internet. But, I did not find any java code for that.Can some one give me some sample code.It is very urgent.
    Thanks in advance.

    Hi,
    The easiest way I use is to create the worksheet as regular table and then when i verify the data I get (non aggregate) I duplicate it as a cross tab.
    In the duplication wizard I just need to define the axis (using drag and drop).
    if you want to create a cross tab from the beginning you need to define that in the new workbook wizard (check the "cross tab" rather then "table"), chose your fields and define the place you want them.
    The data point (the center of the cross tab) is aggregated as to your machine definition and will happen automatically.
    for example: to find the amount of receipt by months:
    On the left put the "Buyer Name", on top put the "Months" and in the data point put the amount.
    What you'll get is something like:
    months: jan feb mar apr ......
    buyer_name
    jhon_smith 100 50 30 250 ......
    jhon_doe 80 45 90 453 ........
    and so on.....

  • 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

  • Cross tab report-dyanamic columns for months and quarterly sum

    Hi all,
    I work on report creation in BI Publisher.I need to display values in a cross tab report in a way that it shows data for 3 months and then a column for its quarterly sum.
    For ex:-
    Market --Jan       Feb    Mar    Q1_sum Apr May Jun Q2_sum ---------------like wise for n months
    Market1 100 --80 --30 -- 210 --10 -- 80 --90 --210
    Market2 120 --90 --40 --250 --100 --70 --30 --200
    Market3 130 --70 --60 --260 --140 -- 0 --40 --180 ('--' just to maintain indentation)
    The values of number of months( date range) and the names of market are derived dyanamically .
    The code from my sql query presently shows months-range (Jan ,feb,mar..), Quarterly sum to be displayed, Market names etc as child elements in multiple occurences main Query set.
    <Main Query>
    <Market>abc</Market>
    <Region>abc</Region>
    <Months-Range>abc</Months-Range>
    <Quarterly_sum>abc</Quarterly_sum>
    <Main Query>
    <Main Query>
    </Main Query>
    Please guide me on code in rtf template for the same.
    Thanks
    Edited by: user9061488 on Jul 13, 2010 1:32 AM
    Edited by: user9061488 on Jul 13, 2010 3:48 AM

    Hi,
    Do u have time dim in your metadata??
    If not,
    Create a time dimension year,quater,month,day
    http://lh4.ggpht.com/_rhCtHYLiamQ/S7PQvxYBbzI/AAAAAAABZXI/ef_Ur9AmyUo/s800/04_year_quarter_bmm.jpg
    After that in fact table by using the (ago/todate) function ....pull the respective columns to pivot table columns section(date column) and measures col in measures section and enable the grand total in columns section so that it will show grand total for every quarter
    thanks,
    saichand.v

  • Suppress values in Cross-Tab and Cross-Tab Chart if null

    I am developing a cross-tab report that has no-values contributing to the summary in a number of cells.  For instance, if I were to display the average value for the testing of particle-counts by the day of the month, and no testing was performed on a particular day, then I would hope that the cell would be blank and a plot of the cross-tab would just omit that data point.  However, Crystal interprets this as a 0.00 instead of NULL, and the plot (incorrectly) includes the zero-datapoint. 
    I can suppress the datapoint in the cross-tab if it's zero, but that isn't correct either (as, sometimes, zero will be the correct answer).  Even then, though, I cannot suppress the datapoint on the plot.
    Anyone have experience with a workaround for this?
    Thanks - Tim

    BTW...I found that I can work-around the plotting issue if I convert the chart to a "Group" type (instead of cross-tab).  It will then ignore the null-values.  Still thinking about cross-tab displaying zero for a summary value when it is working with no data.
    Suggestions?

  • PeopleSoft XMLP : Conditional Formatting for Cross tab report

    I have developed a XMLP cross tab report using ps query. Report runs good for (.htm,pdf,rtf) extension . But I am unable to format the data based on condition.
    Code which get displayed at the data field : <?sum ($G1[(./DESCR=current()/DESCR)]/JOB_REQ_NBR)?>
    any help ot suggestion ?
    Report layout(table) in .rtf format
    H GDESCR*E* Total (Header Row)
    GXLATLONGNAME G999*E* 999*E*
    CTotal G999*E* 999

    <?xml version="1.0" ?>
    - <query numrows="10" queryname="HF_EREC_BU_JOBREQCOUNT" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="">
    - <row rownumber="1">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="2">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="3">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="4">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="5">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="6">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="7">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="8">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="9">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    - <row rownumber="10">
    <XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
    <DESCR>DESCR sample data</DESCR>
    <JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
    </row>
    </query>

  • 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

  • Crystal Reports 10 Cross Tab Report Issue

    I created a Cross Tab Report with multiple rows of data.  It has two columns to return data for Year 2008 and Year 2009.  When reading the database the report does not return data for rows that have a result of 0 in both columns even though Suppress Empty Rows is NOT checked in the Cross Tab Expert Customize Style Tab.  Any suggestions as to how to get all of the rows to display including those with results of 0?

    I'm guessing that your issue is that "results of 0" is really a lack of data, not that something is there and is summing to zero.
    In that case, you need to base your report on an SQL Command.  Take the SQL that the report is currently using, and UNION it with another select statement that returns all of the rows that you are looking for with zero values; something like this:
    UNION
    select category, 0 as PY_Value, 0 as CY_Value
    from categories
    This will cause the data to be there, which will cause the rows to display on the cross tab.
    HTH,
    Carl
    (Resolution for 2010:  Count the number of times this question is asked!  :->)

  • Regarding subtotal of cross tab report

    Post Author: bhaski
    CA Forum: Formula
    hi 
    i am fetching data in my back end in this way --->
    header                             heder
    col1,col2,col3                   col1,col2,col3
    now header has three value header1,header2,header3.
    means i have two data setwith same column.
    now in crystal in crosstab i palced this      header in column.
    therefore three subtotal for each header is created with corresponding col1,col2,col3 values.
    Now my problem is i want only one subtotal column .How i can suppress the other two subtotal column.
    Hope i make u understand to this forum's gurus.
    thanx in advance.
    my crystal version is 9.2 and me using oracle 10g r2

    Hi,
    What exactly do you mean by "cross tab report"...do you mean a web report with different tabs?

Maybe you are looking for

  • Error 1402: Could not open key ..... IMAIL

    I am trying to install Adobe Reader 9 on a friend's computer.  He desperately needs it to print pdf documents. I have tried everything I know, including removing all traces of Adobe from the registry and from the files.  I don't seem to be able to re

  • Need correct color profile settings in windows....????

    Help!  Just replaced the motherboard and now all the color profiles in photoshop are wrong....  Does anyone know the correct settings to choose in windows or to choose for the graphics card... it's an AMD Phenom II.  I open Adobe Bridge and immediate

  • Nokia Lumia 710 photo sync issues

    I'm trying to sync the photos on my Lumia 710 to my computer. I've done it before using Zune but it doesn't seem to be working this time. Any ideas? Thanks

  • Needed help in SQL

    Hi All, I Have data in below format col1 col2 abc 12 aaa 10 aaa 12 xyz 10 aaa 05 now I need output in either like abc 12 aaa 22 xyz 10 aaa 05 or abc 12 aaa 12 10 xyz 10 aaa 05 Please suggest Thanks, Harry Edited by: user10641364 on Oct 11, 2009 9:14

  • Why is there no tab support on adobe reader 9.1 in Windows 7 variant

    Please provide this feature. I have used it in my Linux machine. Can the same not be just propagated to Win 7?