Removing spaces in cross tab

Hello...
              I created one cross tab with 10 rows and 2 columns.(In Crosstab Expert) Based on grouping  i got 5 set of cross tab reports,Each cross tab contains 4 records .But in between these crosstabs blank spaces are there ,How can i avoid such blank spaces...
                                        Expecting Answers.....Thanks...

Hello  Jebin
I recommend to post this query to the [Crystal Reports Design|SAP Crystal Reports; forum.
This forum is dedicated to topics related to the creation and design of Crystal Report documents. This includes topics such as database connectivity, parameters and parameter prompting, report formulas, record selection formulas, charting, sorting, grouping, totaling, printing, and exporting but also installation and registering.
It is monitored by qualified technicians and you will get a faster response there.
Also, all Crystal Reports Design queries remain in one place and thus can be easily searched in one place.
Best regards,
Falk

Similar Messages

  • Removing spaces between cross tabs

    Hello...
    I created one cross tab with 10 rows and 2 columns(In Crosstab Expert). Based on grouping i got 5 set of cross tab reports,Each cross tab contains 4 records .But in between these crosstabs blank spaces are there ,How can i avoid such blank spaces...
                                             Thanks...

    Hello, (To view perfectly copy all and paste in editor window)
    No changes..,Actualy the space is between crosstabs.
    i will tell u the layout,
    ______________________________________    //Group Header section starts here
    headding1headding2headding3headding4*
    1st row
    2nd row
    3rd row
    |_4th row______________________________ |     //This is the border of CrossTab
    |                                                                  |     //remove this space
    |                                                                  |     //remove this space
    |                                                                  |     //remove this space
    |+++++++++++++++++++++++++++++++++|     //this is the Group headder Height
    headding1headding2headding3headding4*
    1st row
    2nd row
    3rd row
    |_4th row______________________________ |     //This is the border of CrossTab
    |                                                                  |     //remove this space
    |                                                                  |     //remove this space
    |                                                                  |     //remove this space
    |+++++++++++++++++++++++++++++++++|     //this is the Group headder Height
    I need the layout should be
    headding1headding2headding3headding4*
    1st row
    2nd row
    3rd row
    |_4th row______________________________ |    
    headding1headding2headding3headding4*
    1st row
    2nd row
    3rd row
    |_4th row______________________________ |    
    i had give fit section also...NO CHANGES!!!!
    Edited by: Jebin Manalil on Apr 7, 2009 3:16 PM

  • Hide Cross Tab Header

    Post Author: lbassil
    CA Forum: Crystal Reports
    All,
    I want to know if it's possible to hide the header of a cross tab? The suppress option did supress the header, but leaves space equal to the height of the header. So I tried to set the height = 0, i could not do it because the minimum height is 70 (as I concluded). Any clue?
    Anyone can help in this issue? Either tell me how to make the height of the cross tab header = 0, or how to stop repeating the column header of the cross tab on each new page?
    Regards.

    Hi!
    if i've correctly understood your question:
    click on your left into the section "document structure and filters) (incon paper with a pencil)
    right click on your cross table block and select "format table"
    on the option page that come up there is on the right a flag "show top header".
    remove it a click ok!
    i hope this help!
    b.r.
    Adrians

  • Empty regions in Cross Tab report

    How to remove the blank spaces, empty spaces in a cross tab report? Basically ,I created a cross tab report and in my report I have multiple fields in the left section of the cross tab. And because of this a huge empty region comes up directly above the left section of the cross tab. Is there a way to remove or format the report so that I can avoid the empty regions ?
    Any pointers on this front will be helpful. Please e-mail directly to me for any suggestions or questions.
    E-mail ID : [email protected]
    Ph No: 51082510
    Thanks
    Venkatesh

    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.

  • Minimise Cross Tab Row spacing

    Hi,
    I have created a Cross Tab table using Crystal Report 2008.
    On the rows are list of warehouses eg: Warehouse A, Warehouse B etc.
    I know I can minimise / change the font size and the Row label size by right click on the field, Size and Position eg: Warehouse A.
    However, is there a way to adjustment  the space between each row?  Ie, the white space between the row box that show Warehouse A, Warehouse B etc.
    What I am trying to achieve here is to fit 3 cross tab table into one page, while still keeping font size of the row at Arial 8.
    Hope I have explained myself well and thank for your help in advance.

    Hi,
    Thanks for responding.
    Is there a way to specify the width of the cell margin instead of totally remove it?

  • Hide the cross-tab headers

    Hi -
    I am trying to figure out how to hide the cross-tab headers on even number pages.  I know that I can suppress the text in the header columns but I would also like to hide the cells as well.  Is there a way to do this?
    Thanks
    Akash

    hi Akash,
    unfortunately there is no ability to hide the cells / space for column headers that are suppressed. the grid lines cannot be conditionally hidden either.
    if you really need this look and feel you may wish to insert a 2nd section below your existing cross-tab. copy and paste the cross-tab into the new section and have that 2nd cross-tab's column header suppressed as well as shrink up this header with the Size and Position > Height property. you can then remove the grid lines (if applicable) on the column header for this 2nd cross-tab.
    now you need to conditionally suppress the new section based on the page number and the original section based on the page number. to suppress the new section should be 
    remainder(pagenumber, 2) <> 0
    and for the original section
    remainder(pagenumber,2) = 0
    -jamie
    Message was edited by: Jamie Wiseman

  • 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.

  • 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

  • How to allocate a text value to a null field in a cross tab

    Hi there,
    I'm using Crystal 2008 and have created a report that retrieves support tickets assigned by team within a specific date field. I've added a cross tab that is retrieving the data correctly. However, if the team field is blank, the cross tab comes up with a blank field - something similar to :
    Team name       # Tickets Assigned
    Team 1  -
    >  10
    Team 2  -
    >  20
    >  15
    Team 3  -
    >  12
    Team 4   -
    > 18
    I would like to be able to have it returned <Unassigned> instead of just white space. Any suggestions on where to begin? I am a beginner at this and would appreciate any help at all.

    instead of using just the value create a formula that will deal with nulls.
    something along the lines of:
    if isnull()
    then "<Unassigned>"
    else ()
    hope that helps
    Dom Horton

  • Hide Column in Cross Tab Report

    Hi guys,
    I have an issue with the Cross Tab in CR2008.
    I'm using 2 columns to calculate an other column, but these 2 columns should not be displayed in the report.
    I tried to suppress the column but it still shows a white space.
    I tried to change the column width, but it cant get it smaller then 0,113.
    Can anyone tell me how to set the column width smaller using a formula or how to suppress the whole column.
    Thanks in advance.
    William

    Hi William, 
    Instead of using all 3 columns in the crosstab, just drop your main columnn on. 
    In the Design window, not the Crosstab Experrt, right-click the summary field and select Format Field. 
    In the Common Tab, open the formula for Display String. 
    Now you can take the value of your summary using the CurrentFieldValue and make your total.  You may need to summarize the supporting numbers to calculate properly but it should work here properly. 
    I've used this for things like running totals and repeating values between rows. 
    NOTE: This formula only returns a string so make sure you format your final value as a string. 
    Good luck,
    Brian

  • 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

  • Bug – CR 2011 cross tab number decimal formula not executing

    I have a formula to format the number of decimal points in both the column and row header values in a cross tab subreport. The formula does not appear to execute.  If I display the data in a simple table format and use the same decimal formula the format is correct.
    cross tab header, decimals not displayed correctly
    Data when displayed in a simple table using the same formula, decimals are displayed correctly

    Hi Paul,
    Here's another way:
    Remove the formula you've used under 'Decimal' for the cells in the crosstab.
    Right-click one of the cells > Format Field > Common tab > Click the formula button beside 'Display String' and use this code:
    numbervar x := CurrentFieldValue;
    numbervar ipart; 
    numbervar decpart; 
    ipart := int(x) ; 
    decpart := x - ipart;
    if ipart > 0 then
    totext(ipart,0)
    else if decpart > 0 then
    Replace(totext(decpart),"0","")
    -Abhilash

  • Creating a Cross tab that contains fields with shared variables

    I am trying to create a cross tab in CR2008. I can get the field in the details but cannot choose it when trying to create a cross tab. Please help.
    Thanks.
    Shared numbervar MonHrs;
    Shared numbervar TueHrs;
    Shared numbervar WedHrs;
    Shared numbervar ThuHrs;
    Shared numbervar FriHrs;
    Shared numbervar SatHrs;
    Shared numbervar SunHrs;
    If dayofweek(today) = 1
        then {@CapacityTeamCount} * SunHrs else
    if dayofweek(today) = 2
        then {@CapacityTeamCount} * MonHrs  else
    if dayofweek(today) = 3
        then {@CapacityTeamCount} * TueHrs else
    if dayofweek(today) = 4 
        then {@CapacityTeamCount} * WedHrs else
    if dayofweek(today) = 5
        then {@CapacityTeamCount} * ThuHrs else
    If dayofweek(today) = 6
        then {@CapacityTeamCount} * FriHrs else
    if dayofweek(today) = 7
        then {@CapacityTeamCount} * SatHrs

    I don't use CR cross tabs as a matter of preference so I can't tell you if the shared variables are having an impact on their availability in the cross tab dialog or how to make the necessary adjustments...
    I can, however, tell you that you don't need a cross tab for what you are trying to do. All you need to do is split all of the IF formulas in to their own formulas.
    This will place each day in it's own column.
    Now... you'll notice that there's a lot white space and nothing's aggregated... Not to worry, it's easy to fix.
    Just create a grouping on which ever field you were going to use as "rows" in the cross tab... insert SUM totals in the group header... and hide the details.
    Now you have created your own manual cross tab, without using CR's cross tab object.
    HTH,
    Jason

  • Cross-Tab Starting in Second Page

    Crystal 11
    I created a cross tab report that results in a single grid that is sometimes longer than one page. When it is less than one page, the cross-tab grid begins on page one. But when it is greater than one page, it leaves the first page blank and starts on the second page. How do I make it start on the First page regardless?
    I removed the "keep together" in the section expert and I was told about a "Keep Object Together" in the Cross tab expert but I did not find it in there but I did find a "keep columns together". But none of that fix it.
    Help?
    Thanks.

    Did you check whether the New Page Before check box is selected? If this is selected it adds an extra page.
    Well, 'Keep Objects Together' can be found by righ clicking on the CrossTab and selecting Format CrossTab from the context menu.You can also select an object inside the CrossTab i.e Row/Column and right click and select 'Format Object' --> Common tab -->Somewhere down the screen you will see 'Keep Objects Together'
    Hope this helps!

  • How to arrange columns in cross tab

    Hi,
    I have 4 formulae that i need to put in as the columns in a cross tab.
    I have added 4 of them in the column section of cross tab expert but when i preview ....it gives me total again and again and repeatetive columns, All i want to view is just 4 columns(for which i have created formula) and grand total column.
    Is it possible.
    Thanks,
    Robinn

    Wow Vinay,
    That is so coooooooooool:)
    This way i got rid of all the extra columns and extra labels that were appearing on the top.
    With this another qs has come.
    Now I am getting the column headers as  1094, 0.00,0.00,0.00 and the last one as total.
    Is it possible to remove 1094,0.00,0.00,0.00 and get actula column  headers ??
    Thank you so much,
    Robinn.

Maybe you are looking for