Need horizontal pages of my cross tab in a sub report

How can I avoid Crystal from cutting the horizontal pages of
my cross tab in a subreport.
I tried the suggestion in
Cross Tab Question
but the length of the columns is not fix.
So I tried a division with 170 to 200, but if there are
20 values in the first column and only 4 in the next 30 columns,
my cross tab expandes to much.
I have only enough space for 10 columns.
Thanks.

I also encountered this problem and I have no idea how to create a cross tab manually. Could you please give me some idea on how to create one. The cross tab in my report has a variable number of columns(e.g. the report could produce two crosstabs, the first cross tab has 16 columns and the second one has 4 columns.)

Similar Messages

  • Cross-tabs in Multiple Sub-reports

    Post Author: Kiwi Jan
    CA Forum: Crystal Reports
    I have created a crystal report which contains multiple detail sections (Da-Di). Each detail section contains a subreport, which contains a cross-tab.
    I have done this because I need to create one excel spreadsheet which contains data from different types of cross tabs.
    For example, one cross tab lists accounts and totals, the second lists accounts and totals by cost centre (17 of these), and a third lists accounts and totals by product group (11 of these).
    I have lined up all the columns perfectly, and when I export to Excel (Data only), it works perfectly, and I get all the rows and columns of all the cross-tabs in one excel worksheet. Brilliant.
    However, when I print, preview or export to pdf, I only see the "real" page and do not see any virtual pages that are shown in each of the sub-reports.
    How can I print or view this from the main report and get the virtual pages as well, without stuffing up my export to excel?
    Any suggestions would be greatly appreciated.

    Hi Kim,
    What version on Crystal Reports are you using? If its CR 2008 then you can take advantage of the various gridvalue functions and the calculated member feature available.
    Here's what you need to do:
    1) In 'Preview' mode, right click the 1st col and select Calculated Member > Insert Column
    2) This will insert a col after the 1st col. To make the newly added col appear 1st, right click on the top left corner of the crosstab and go to Advanced Calculations > Calculated Member
    3) In the Properties area, set the Insert Evaluation to 'Before'
    4) Now the new col would be the 1st col in the crosstab and it's values would be 0
    5) You said you calculate the Billed Amount on some logic; you can apply the summarization logic by editing the calculation formula
    6) Right click one of the 0 values in the new col and select Calculated Member > Edit Calculation Formula. Use the formula in this manner:
    select Gridlabelat("Row",currentrowindex)
    case "Job1" : 50
    case "Job2" : 20
    Default : 0
    The function GridLabelAt() accepts 2 parameters: 1st is the name of the row. In this case it would be your database field name. Suppose your database field used as a row is called Customer.Country then the formula would be:
    Gridlabelat("Customer.Country",currentrowindex)
    You can use if-else instead of the select -case if you like, but this is where you need to apply the logic for billed amount.
    At last, you'd notice that the Header for this col is blank. Just Right click the blank header and select Calculated Member > Edit Header formula and type in "Billed".
    That's it! The grand totals for the row won't add the values from the calculated member.
    Hope you get this working.
    -Abhilash

  • 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

  • Page headers in cross tab report

    Hi,
    I have created addon in SAP B1 2007A PL 46. This includes crystal reports that use .net crystal runtimes.
    One of the reports is crosstab report.
    It is required that each result page of report display a header. When I set it in page header section, it comes up only on the last page.
    Text in Report header comes up on the first page.
    This cross tab report spans multiple pages horizontally.
    Can anybody help me in this.
    Regards
    Trupti Mahurkar

    The page header in this multi page report would be acrossing all pages.  You may edit it to across the whole range to duplicate the first page header manually.  You may set up Preview Start Pages Start with - Fit Page under report option to set them up.
    Thanks,
    Gordon

  • Page Footer on Cross Tab Reports

    How do I get the page footer to show up on all the pages of the Cross-Tab.  I have a report where the columns spill over to the second page, but nothing from the footer prints on the second page.  It is only printing on the first page.

    I also have a similar problem on cross-tab reports when the rows result in additional pages. 
    If I place the page numbers in the page footer, it only appears on the last page of the report.  If I place the page numbers anywhere else on the report, it doesn't show up at all, on any pages.   Where can I place it so it will print all the pages, regardless of the number of pages that result because of the growing columns or rows?
    Thanks.

  • How to put report title and page no to appear in multiple pages,when using cross tab reports

    Post Author: shaminranaweera
    CA Forum: General
    I am using crystal reports 9.0 with odbc foxpro database conectivity
    I have designed a cross tab report and it is on the report header part and all the report details  are fine,except that the report title and  and page no's only show on the first page of my report.Pls tell me how can i put my report title and page no on all the pages in my crosstab.

    Post Author: foghat
    CA Forum: General
    You need to put your title in the page header if you want it to appear on every page.  The report header only displays once per report.

  • Page numbering in Cross tab

    Hi,
    I have generated a cross tab report. The entire data is in 9 pages. On the top I can see 1/1,2/2 etc and not 1/9,2/9 etc
    If i click on the last page and then start from page one I get 1/9 but I want to get the numbering as 1/9 as soon as the user clicks to view the report.
    Pls suggest me something.
    Thanks

    I have placed the pagenofm in both the report header and the page header with the crosstab in both the report header and group header.
    What else is in the report?
    If you create a new report with just the crosstab and the pagenofm do you see the same behaviour?

  • Need Help Trying to Populate Cross Tab in SAP BO WEBI

    Hi,
    I know in MS Excel I can  Drop Data into the Row and Column Label and get the following Cross Tab:
                                          HouseA     HouseB     HouseC
    Elevator Bank One     1     
    Elevator Bank Two                                      1
    Elevator Bank Three                               1
    I truly how this makes sense and if it doesn't, I understand and will keep looking.
    I need in SAP WEBI to be able to do the same thing.
    I have the Cross Tab created in Webi, but can't see how to populate the Rows of Elevator Banks to display which houses have Elevator banks.
    I want to show Elevator Bank 1 is in House A, Elevator Bank Two is in House B     as well as Eleveaotr Bank Three begin in House B
    This is just an example.
    Trying to Populate the Webi Cross Tab is driving me crazy.
    I have the Lay out but can't populate the data.
    The data contact is Alpha Characters, but I want just the Numeric Values
    When I go to MS Excel 2007 and Pivot this, I drop down the Eleveators into the Rows and Drop the Houses into the Column as well as the Value and the numerical values populate for me.
    Can't for the life of me figure out how it works in SAP WEBI
    Again, I hope this makes sense and if not, I'll keep looking.

    Issue resolved.
    I needed to created a message for HouseA, B and C which provided the item count needed
    Something like the following:
    Measure One
    Occupied: =Count([Elevator Bank One]) Where ([House A]="Occupied")
    Measure Two
    Vacant: =Count([Elevator Bank Two]) Where ([HOUSE B]="Vacant")
    Measure Three
    Unknown: =Count([Elevator Bank Three]) Where ([HOUSE C)]="UNKNOWN")

  • Count from Cross TAB1 should add to Line Number in Cross TAB 2 in 1 report

    Hello Friends I have 2 cross Tab1 based on 2 query data providers. I need to feed calculate the Count of Items in Cross Tab1 and add that to line Number in Cross TAB2 which sit below cross tab1
    So if there are 21 items in Cross TAB1 then Line Number in Cross TAB 2 shall be 22
    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 junk value 179
    so How do I fix this Line number Count in Cross Tab 2
    Please help with code to say Count([Item ID]) In Report from cross tab1 and add Line Number to it = 22
    thanks
    soniya

    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

  • Cross tab column headers display on all pages

    I made a Crystal Report with a cross tab which displays all details. In the cross tab I have 6 columns with details about the data displayed in the last 2 columns. The headers of these columns are only displayed on the first page but not on other pages. How can I add column headers to all pages? Thank you.

    Column headings should be repeated automatically, row headings can be repeated by
    1.right-clicking on the row header
    2. select Row options
    3. .select Repeat Labels on Page break
    or, when I just reviewed it in the help section it says:
    "When you create a Cross-Tab that is wider or longer than the specified page size, the program automatically spans the printing across enough pages to accommodate the size of the Cross-Tab. In the Preview tab, a line will appear at each page break. For ease in reading, column headings will be repeated on subsequent pages. Row headings can also be repeated using the Keep Columns Together option.
    To repeat row labels
    Right-click the blank top-left area of the Cross-Tab and select Cross-Tab Expert from the shortcut menu.
    The Cross-Tab Expert appears.
    Click the Customize Style tab.
    Select the Repeat Row Labels check box, if desired.
    Crystal Reports lets you designate report objects that don't expand horizontally, such as text objects, field objects, OLE objects, charts, maps, lines, boxes, and so on, to be repeated on each additional horizontal page that a Cross-Tab creates. For more information, see Repeating report objects on horizontal pages."

  • How to insert page number on each page for Cross-Tab report?

    Hi,
    I have created a Cross-Tab in the section Report Header via Crystal Reports 11.
    Now, I want to created more Cross-Tabs, and each page has one Cross-Tab.
    So, I insert Report Headers to contain Cross-Tabs. But, the report only shows the page number at the last page.
    How to insert page number on each page?
    Thanks in advance.

    Hi,
    Well, the easiest solution is to place the Cross-tab in the Report Footer, Of course, ONLY if the report contains this single object which I'm assuming is not the case.
    If you do not wish to place the cros-tab in the Report Footer, here's what you need to do:
    1) Create a formula;
    whilereadingrecords;
    2) Create a group on this formula. If the report already contains groups, move this formula to the top of the grouping list. It won't affect the other groups or records in any way.
    3) Move the Cross-tab from the Report Header to the Group Header1 and suppress Group Footer1
    4) Add the Page Number field to the Page Footer
    Let me know how this goes!
    -Abhilash

  • Cross tab sub report with vertical page breaks

    Hi have a report which contains 3 sub reports - different views of similar data. The sub report is wide enough to cover two landscape pages across and they run down over two pages
    The first subreport on page one does expand across into the secon landscape page, but does not repeat the row labels, although the settings in both main & subreport cross tab are to repeat
    The secon & third sub reports which print on the escon vertical page do not expand across to display any data, so I get no page four.
    They all have exactly the same settings.
    Is there any easy way to resolve this?

    hi Julie,
    this is i believe the nature of cross-tabs inside of subreports...horizontal expansion within the subreports is not a supported feature.
    you mentioned that the data is similar but just different views...is the query that each subreport runs off of bringing in the same record set? if so, is it possible to move the cross-tabs into the main report?
    are you using crystal reports 2008? if so, does changing the page setup for the entire report to a huge size and then the pagination for each section to landscape help?
    jamie

  • Displaying Alternate row as colored in Cross tab

    Hi,
    I have a report where I need to display alternate rows as colored.
    There is some data in detail section followed by a cross tab in the report header section.
    While I am able to display alternate rows as colored in Detail secction for displaying alternate colored rows in Cross tab data I need some help.
    Data in cross tab is like this
                  history geography
    Tammy   90          60
    Sid         80          50
    Julia       70        40
    In cross tab for displaying alternate colored rows ie for alternate student names  I am using two formulas
    - for displaying row values I am using this one
    whileprintingrecords;
    numbervar d;
    d := iif(d=100,255,100);
    color(255,255,d);
    For displaying alternate colored inner cells ie marks  I am using this formula
    whileprintingrecords;
    numbervar c;
    c := iif(c =255,100,255);
    color(255,255,c)
    I got these formulas after doing Googling
    My cross tab is present in report footer and in the generated report it comes separeated in two pages.
    In the first page data for Tammy and Sid is displayed while Julia is displayed on next page.
    Now the Tammy is coming as yellow colored and as expected Sid is coming as white colored. However Julia which is on next page is coming as white , but logically it should have come as yellow. On the other hand my column data ie marks column is coming fine. Data for tammy and sid is coming as alternately colored and data is Julia on the next page is coming as yellow(as data for Sid is in white)
    I am not able to understand why this is happening and what is the correct way to do alternate row coloring in cross tabs
    Edited by: thunderball10 on Aug 26, 2010 11:57 AM
    Edited by: thunderball10 on Aug 26, 2010 12:00 PM

    Where is your variable c being reset.
    If in page header or group header and you have repaet group header on new page then c will be reset on each page.
    If In groupheader try adding this to reset formula
    if not inrepeatedgroupheader then
    Ian

  • Shared Var in Cross-Tab Design

    Post Author: bkormoski
    CA Forum: General
    I have a cross-tab design that requires me to used shared var from a subreport.  The SV formulas are not in my available fields in cross-tab wizard.  What other choices are there?
    I am creating a summary financial statement that requires information from multi tables - because they are not directly related I am creating SV's to get the info I need.  Any ideas welcome.  THANKs

    Post Author: RichardN
    CA Forum: General
    I'm having a similar problem.  I've created two variables in the main report
    PLACE: 
    WhilePrintingRecords;Shared StringVar VPNum;VPNum
    VENDPROD:
    WhilePrintingRecords;{@Place}
    I can insert VENDPROD into my cross-tab but the field is blank.  On the details line, boty PLACE and VENDPROD display the correct (string) values.  I've placed the Cross-Tab in both the Report Header and Report Footer sections and the VENDPROD field is always blank in the cross-tab.  What am I doing wrong?
    Thank you,
    RN

  • 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

Maybe you are looking for