Crystal Report XI - Mulitple Columns Grouping

Hi,
I created a report in crystal report XI having the following structure:
Main Report Structure
Page Header (Report Title, Date and displayed Columns Title)
Group Header (Group header will be displayed)
Details - a (Records List will be populated)
Group Footer (Sub Report which displays the Notes in tabular format)
Page Footer (Page number will be displayed)
    I kept 'keep together' for 'Group Footer' section.
Sub Report Structure
Group Header (No contents will be displayed here)
Details - a (Header)
Details - b (Content)
Group Footer (blank section)
    In the sub report, the Details section was set for multi columns with across and then down property. The Details section width was set such that at max 3 columns will fit. Also 'keep together' property was set for the details sections so that both header and its content will always stay together. (Assume that the sub report data will be displayed like rows of data with each row having 3 cells.)
Both main and sub reports picks the required data from database stored procedure.
My Problem
As 'Group Footer' section in main report was kept 'keep together' some times more empty space was leaving at the bottom of the pages in the main report.
So i tried to remove 'keep together' option for 'Group Footer' section in the main report. By doing this the empty space was now reducing by splitting the subreport rows in multiple pages.
So far fine but the problem arises when the first row second cell or first row third cell data is large enough so that it can't fit at the bottom of the page in the available space. So because of this, the cells in a row are splitting between the pages.
Either i want to display the entire row with all the 3 cells at a time or blank in the pages' available space for 'Group Footer' section in main report.
(I don't want to split the cells in the rows. I want entire row with all the 3 cells to be displayed at once.)
Can any one suggest me how can i fix this?
I hope i clearly presented my problem. If not, let me know where you want more clear.
Thanks in advance.
Edited by: Syarnus2 on Jul 15, 2009 11:48 AM

Hi Sanjay,
Thanks for your advice.
But the thing you mentioned won't solves my problem.
If i choose your option then suppose there are 3 rows and 3 cells in each row in the sub report.
For all the 3 rows, beside the title(for each cell) contents may also present(which i already mentioned).
Now assume that content in each cell varies from 0 to 25 lines within in the row cell.
So by keeping all the rows in the group together, the page is leaving with much empty space whenever the entire section (even the last line in the last row of the group) can't fit in the remaining space in the page. Which i want to avoid by splitting the rows (rows only not the cells in the rows) between the pages.
Hope i make the point much clear...

Similar Messages

  • Crystal Reports XI: Invalid column name error

    Hello!
    I have a crystal report using a SQL command that is getting the following error (occasionally):
    Failed to retrieve data from the database.
    Details: ADO Error Code: 0x80040e14
    Source: Microsoft OLE DB Provider for SQL Server
    Description: Invalid column name 'IPCSKUGroup'.
    SQL State: 42S22
    Native Error: 207 [Database Vendor Code: 207]
    I say occasionally because if i go to Database>> Log on or Log off server and log off the target server and then rerun the report, it will work.  If i refresh the report with different parameters, i get the error.
    I'm running Crystal Reports XI version 11.0.0.1282 on Windows XP SP2 32-bit.  The data is in a SQL Server 2000 database.
    This is the portion of the query causing the problem:
    (drop/clear temp tables and initiallize a few variables with parameters)
    (...other queries putting together the temp table #WorkingTotals) - This part works fine because the report runs if i remove the following portion.
    select wtt.QtrMax,QuarterName,Year,wtt.IPCSKUGroup as IPCSKUNum,ServicePriceSuggested,PcsBilled,BilledRevenue,PriceIndex,StdRevenue,
    (select sum(TT.BilledRevenue) from
    (select Top 4 wt2.BilledRevenue
    from #WorkingTotals2 wt2
    where wt2.IPCSKUGroup = wtt.IPCSKUGroup and wt2.QtrMax <= wtt.QtrMax order by wt2.QtrMax desc)as TT)
    as M12Revenue
    from #WorkingTotals wtt
    The entire query works fine when I run it in SQL Query Analyzer.  But Crystal has an issue with the way i'm figuring the M12Revenue field.  The M12Revenue is a moving 12 month revenue which is the sum of the revenue for the past 4 quarters for each quarter.
    This is what i've tried thus far:
    Putting the entire query into a stored procedure
    Storing what gets stored in #WorkingTotals into a database table rather than a temp one
    Renaming columns to various different things.
    Each of those still resulted in the error.
    Thanks for the help!!!
    Wes

    Hi Wes,
    What does SQL Profiler show you when the error happens?
    Try using ODBC to see if it also errors, may be an issue in MS's MDAC and the OLE DB driver. MS usually updates MDAC with all Patches but you may want to verify you are using the latest version.
    Thank you
    Don

  • Crystal Reports 2013 Bug - Cannot group on composite columns?

    Hi,
    I am testing a trial version of CR 2013 and cannot have my report run using the following command:
    SELECT a.col_1, COUNT (*)
    FROM   a_table a
    GROUP  BY a.col_1, CUBE (a.col_2, (a.col_3, a.col_4));
    The error message is like this:
    It seems to be a bug in CR 2013 because the query runs in the database and CR 2011 and CR2008 have no problem dealing with it.
    If I seperate the columns, CR 2013 can run this:
    SELECT a.col_1, COUNT (*)
    FROM   a_table a
    GROUP  BY a.col_1, CUBE (a.col_2, a.col_3, a.col_4);
    Is it really a bug? Are there fix or work-arounds?
    Thank you for sharing any opinions!

    Make sure CR 2013 is also connected to the database using the same drivers and connectivity method.
    If you still have issues, then this should be reported to SAP.
    -Abhilash

  • Breaking report layout by column grouping in sql report

    Hello All,
    I have a strange requirement where I have a query which needs to o/p data in the following manner:
    Status Exp. Type Class Entered By Expenditure Group Control Total Running Total
    Submitted Miscellaneous XXXX, Mrs. YYYYY DESAF130501-001 0 .00
    Transaction
    AAAA, Mrs. BBBBBB DEAMK070509-07 77.05 77.05
    CCCCC, Mr. DDDDDDDD B9MM080509-06 0 .00
    B9MM070509-04 0 .00
    B9MM110509-01 0 .00
    B9MM080509-03 0 .00
    B9MM070509-05 0 .00
    B9MM080509-07 0 .00
    B9MM080509-04 0 .00
    B9MM080509-01 0 .00
    B9MM130509-01 0 .00
    B9MM070509-03 0 .00
    B9MM080509-02 0 .00
    B9MM110509-02 0 .00
    B9MM070509-07 0 .00
    B9MM110509-04 0 .00
    B9MM070509-02 0 .00
    B9MM070509-01 0 .00
    B9MM120509-01 0 .00
    B9MM110509-03 0 .00
    FFFFF, Miss WWWW DEARM110509-01 0 142.78
    GGGGG, Mr. HHH ALPM080509-1 0 .00
    LLLLL, Mrs. KKKKKKK JKDTest070709-1 20 20.00
    Total for Expenditure Type Class: 23 97.05 239.83
    So basically the sql query groups by status,exp type class,enteredby,expenditure group.My problem is the user does not want the column values to be repeated for every record inside the group.For Eg: if you see under the group by the entered by : CCCCC, Mr. DDDDDDDD
    The value CCCCC, Mr. DDDDDDDD is displayed only once for the group even though there are more than several records under the group(due to unique records in expenditure group).
    It is pretty straight forward to do in Oracle Reports or in SQL* Plus using Columns BREAK,but iam struggling to do the same thing in plain sql...Any suggestions?

    Oh .Got you..thanks..This is the o/p i require...
         Status             Exp. Type Class      Entered By                Expenditure Group            Control Total     Running Total
         Submitted          Miscellaneous        XXXX, Mrs. YYYYY          DESAF130501-001                          0               .00
                            Transaction
                                                 AAAA, Mrs. BBBBBB         DEAMK070509-07                       77.05             77.05
                                                 CCCCC, Mr. DDDDDDDD       B9MM080509-06                            0               .00
                                                                           B9MM070509-04                            0               .00
                                                                           B9MM110509-01                            0               .00
                                                                           B9MM080509-03                            0               .00
                                                                           B9MM070509-05                            0               .00
                                                                           B9MM080509-07                            0               .00
                                                                           B9MM080509-04                            0               .00
                                                                           B9MM080509-01                            0               .00
                                                                           B9MM130509-01                            0               .00
                                                                           B9MM070509-03                            0               .00
                                                                           B9MM080509-02                            0               .00
                                                                           B9MM110509-02                            0               .00
                                                                           B9MM070509-07                            0               .00
                                                                           B9MM110509-04                            0               .00
                                                                           B9MM070509-02                            0               .00
                                                                           B9MM070509-01                            0               .00
                                                                           B9MM120509-01                            0               .00
                                                                           B9MM110509-03                            0               .00
                                                 FFFFF, Miss WWWW          DEARM110509-01                           0            142.78
                                                 GGGGG, Mr. HHH            ALPM080509-1                             0               .00
                                                 LLLLL, Mrs. KKKKKKK       JKDTest070709-1                         20             20.00
                            Total for Expenditure Type Class:              23                                   97.05            239.83

  • Crystal Report multiple columns

    I'm having trouble with Crystal Report's multiple columns in the detail section.
    The details section, the multiple columns is checked then the printing direction is across - down. Since the form I am using is a pre-printed form, by estimation it can only allow at best 30 records in one page, that is 15 in the 1st half of the column and another 15 records on the next. For visual:
    Invoice No    Invoice Date        invoice total                                               Invoice No    Invoice Date        invoice total
    1                                                                                16
    2                                                                                17
    3                                                                                .
    .                                                                                28
    14                                                                                29
    15                                                                                30
    For some reason there is this giant space after the last set of rows before it prints out the page footer. This giant blank section disrupts the layout of the page footer section.
    Here are some info on the details section as configuration is involved:
    Format with  Multiple Columns - checked
    In Paging: New Page after 30 visible Records
    In Layout: Width: 3.5 in       Height: 0.0 in
                     Horizontal: 0.0 in      Vertical: 0.0 in     
    Printing Direction: Across-Down
    Anyone knows how to suppress it or have the page footer move upwards?
    P.S To see actual pre-printed form, please download this [http://www.mediafire.com/i/?csu0q75mjynys2k]
    Edited by: Khristine Angelei  Basilla on Mar 1, 2012 8:34 AM

    Now why didn't I try that out. Actually, initial plan was 2 subreports.
    So when I added the second subreport in the group footer section, it only prints the details on the last page, which should not be the case as I need to be printed on all pages.
    I'll test it out. I'll post an update soon.
    Thanks.

  • Problem with column groups on Interactive Report

    Hi
    I am hoping that someone can help with this problem.
    I am attempting to control both the grouping and ordering within each group of fields in the single row view of an interactive report. Creating column groups appears to be OK at first (sequence, name and description) but if I then attempt to edit the group, the sequence box appears to be empty even though it was filled with a unique number at the time of creating the group.
    In addition, any changes to the order of the fields within the group made using the shuttle box at the bottom of the screen don't seem to be saved even to the Apply Changes button is pressed.
    Anybody know what is happening here and can anyone suggest how to control both the order of the groups and ordering within each group?
    Thanks in anticipation
    Martin

    Moun wrote:
    I am dealing with many interactive projects in my application. Sometimes I have to add a column to the interactive report. When I do so, the column doesn't appear in the interactive report...On the page I have to click on "Actions" then go to "Selected columns" and then display it ! the problem is when I logout and login again
    the column desappear again and I have to do samething again and again...Is there a way to set it appear by defaul always ???After adding new columns to an existing IR, you need to select them for display as a developer, and save the new report as the Primary Default.

  • Crystal Report Calculation

    Hello,
    I am trying to a custom P&L report. The year end part is in a loop as it should add the previous balance to the current balance and display the total just as it looks in the SAP  business one P&L report.
    I have this formula below but it does not add up the totals row by row, but adds the same row total together hence not giving the cumulative total.
    Local NumberVar result := Count ({JDT1.Debit});
    Local NumberVar i := 1;
    While i <= result  Do
       Local NumberVar debit := {JDT1.Debit};
       result := i;
       i := i + 1;
    {JDT1.Debit} + debit
    Help me tweak this.
    Edited by: Marco on Dec 16, 2009 12:42 PM

    How is they year to end column of the Profit and Loss statement calculated. I am creating a custom Profit and Loss Report using Crystal reports and this column has me buffled.

  • Free Charecterstics of Bex not replicating into Crystal Report

    Hi Experts,
    I am having a strange problem....or may b i am missing some basic here,
    We are trying to build a Crystal Report on a Bex Query which consists of some Free Characteristics and a single object in the rows, where as in the columns we are having 2 structure on which consists of Selection Key Figures restricted based on Characteristic Variables with Processing type SAP Exit.
    Now wen i am trying to build a Crystal Report on this Query directly from Blank Report Wizard, i am not getting the free characteristics and Row object into the report but i am able to get the Structure values as measures.
    Wen i am trying to build the report directly from the SAP tab of Crystal Reports, i am able to c the Free Characteristics and Row Object but getting all the selection Based Key Figures in a single entity on the name of the structure. Due to this wen i am using this in Crystal Report all the Column values are embedded into a single column, which is not desirable.
    Please help,
    Thanks & Regards,
    R

    Moved to BEX forum

  • Dynamic columns with grouping.... in crystal report...using java /c# api ??

    I need to create a report with dynamic columns
    for e.g/
                                           Pre   Scen 1   Scen 2   Scen 3   Scen 4   Scen 5   Scen 6      .....
    *Total                          4.5118   4.5118    4.5118   4.5118   4.5118        4.5118   4.5118     *
    *Canada                    1.7180    1.7180    1.7180   1.7180  1.4103     8.4103      8.4103     *
       BG                           1.6224    0.9641    1.0473   1.0473  6.4635     6.4635  1.6224     
       BI                              0.044     0.0827     0.3578   0.3578 0.0560     0.0560   0.0744     
      DIN                    0.0056     -0.0655     -0.0215     -0.0215     -0.0210     -0.0210     0.0056     
    *Czech Republic     1.7180     1.7180     1.7180     1.7180     18.4103     18.4103     18.4103     *
      CEE               0.0275     1.0000     0.7359     100.0000     0.0858     0.0858     0.0275     
    *Israel               1.7180     1.7180     1.7180     1.7180     18.4103     18.4103     18.4103     *
      F                    0.0077     1.0000     0.7359     100.0000     -0.0035     -0.0035     0.0077     
    *United States          1.7180     1.7180     1.7180     1.7180     18.4103     18.4103     18.4103     *
      A                    0.0144     0.1871     91.0473     0.0679     0.0544     0.0544     0.0144     
      AA                    0.0428     0.0626     0.3578     0.0675     0.1175     0.1175     0.0428     
      AB                    0.0431     0.1553     -0.0215     0.1685     0.1199     0.1199     0.0431     
    in this report....grouping will be parameterized ....and total also required at every stage...
    so how can i add the columns dynamically ?
    number of columns are not fixed...they may be 20...30....etc

    Requirement is...
    I have a table scn ... where i can make entries any time....assume they are some rules...
    I have another table called t1 ... where i need to calculate values of t1 again some specific rules are table scn.
    So for each t1 there will be one row with columns as scn entries which I select on interface.
             Original Value  --  Sc1 ......  Sc2  ...... Sc3  ......  Sc4 ......  Sc5 . . . . . .. .
    t1...................xx...... xx..........xx..........xx........ xx........ xx
    t3...... .............xx...... xx..........xx..........xx........ xx........ xx
    t4....................xx...... xx..........xx..........xx........ xx........ xx
    selection of these scn columns will be dynamic....so i cant create n number of columns in the report template and hide them as per requirement....it will not work.
    Wat is a feasible solution to create such kind of report ?
    Can we create template in C# or .net ?
    IF yes...do we have to save every time in order to render report ?
    e.g.   one report may contain 4 columns and other 10 ... so do i have to create new rpt file each in order to render the report ?
    Please if any1 have approach to create this kind of report then it will very helpful....
    Edited by: pchawan on Jul 19, 2011 11:28 PM

  • How do add column to a Crystal report 8.5

    Post Author: Jsantos
    CA Forum: Data Connectivity and SQL
    Hi guys, I would like some help.
    I have  a VB Form in VB 6 that call a report made in Crystal report 8.5 and I want add a column of a SQL Server 2000's table
    inside this report called reportSales
    I already Add a table inside  this report clicking in Main report,......."aDD database to report..." etc.
    and drag  this  column called col_1 to report in group Footer
    my Vb 6 code is below :
    When I make a Debug the variable ls_Location received the new table that I added to link 1 field.
    but  tha happened when I load the report is that just appear 2 columns an not 16.
      With reportSales
            ' Conect to SQL        Call .Database.LogOnServer(DLL_CRYSTAL, ls_Dsn, ls_Database, ls_Username, ls_Password)                '''' manage  tables
            For Indice = 1 To .Database.Tables.Count            Call .Database.Tables(Indice).SetLogOnInfo(ls_Dsn, ls_Database, ls_Username, ls_Password)                        ls_Location = "dbo." & .Database.Tables(Indice).Name            Call .Database.Tables(Indice).SetTableLocation(ls_Location, Empty, Empty)        Next Indice                   Call .ParameterFields.Item(1).ClearCurrentValueAndRange        Call .ParameterFields.Item(1).AddCurrentValue(m_cod_picking)
        End With
        CR.ReportSource = reportSales    Call CR.ViewReport    Screen.MousePointer = vbDefault
    thanks!!!

    If you still have a working install you can use regedit to get the keycode from the Local Machine key. Other than that you'll have to find the original CD packaging where you'll find the keycode on the packaging. Or check with your accounting department, they may have received an invoice with the keycode on it, I don't think we did that but worth trying.

  • How to implement the Oracle Group by function in Crystal reports?

    Hi all,
    In SQL, for example we have a group function like:
    select  district,state, country, continent, sum(no.of people) from world.
    Now, How to implement this group function in crystal reports? Please advise.
    Thanks in advance..
    Regards,
    sriram

    Hi Vinay,
    Thanks for the prompt reply.
    In one of our report, we are supposed to perform group by for 14 columns to get sum of 3 columns and there by displaying 17 columns in the report.
    When we tried in crystal reports to implement this oracle group by functionality:
    1. We created 14 groups from the Insert->Group option.
    2. By performing this, we got 14 group sections vertically(one inside the other).
    3. Then we created the sum(15th column),sum(16th column), sum(17th column)  by Insert->Summary option.
    4. We suppresed all the group sections except for the last group.
    5. Then, dragged all the groups to the last group section along with the summary fields.
    This is how, we tried to acheive the oracle group by function in Crystal reports.
    Please advise, whether our approach is right. If not, please suggest the appropriate approach with a bit detailed explanation.
    Thanks,
    Sriram.

  • Custom structure grouping in crystal report 2008

    I have a Product Line revenue report, where it is reporting revenue and cost for various oilfield divisions such as oilfield us, oilfield egypt, oilfield oman etc.... and total at the end.
    say if iam developing a custom structure for each division in a BEx query and the results of the queries have to be shown in one report.
    now the custom structure is coming down as a flat structure in crystal report 2008, so I added conditional formatting in X-position to indent, that shows as a hierarchy.
    I will do the same for all the divisions in the report.
    Can I make this each division as groups so I can add the drill-down to see a particular division by selecting that group, instead of scrolling thru pages. Please help!!
    Any suggestion with all that Iam doing to generate the P&L report is greatly appreciated.
    Thanks.

    Hi Ingo,
    This is not hierarchy actually. It is actually BEx structure created in row section which replicating hierarchy levels. In BEx web application it provides the hierarchy look.
    But while using it in either WebI, crystal report or Voyager it gives us a flat column instead of hierachy. I have understood this.
    Using this flat column I am trying to create groups to replicate the hierachy structure. Please let me know if you want more explanation.
    Thanks
    Raghu

  • Crystal Report Grouping Formula

    Experts,
    In Crystal repot how can we have Grouping formula basis, i.e
    there are two coulmns
    1. GRPO Doc No
    2. GRPO Doc No (Has GRNA)
    now if column 2 has value it should do grouping with this or
    if column 1 has value then grouping should be done on col1.
    Now i have put one field on other in one single Column, so if GRPO Doc No is present it shows value or vice versa

    Hi,
    Insert Group in crystal reports for
    1.  GRPO Doc No
    2. GRPO Doc No (Has GRNA)
    Then supress the groups1 when GRPO Doc No is blank and silarly for other.
    it will resolve the issue.
    Thanks,
    Neetu

  • Crystal Reports sort by group headers

    Hi Experts
    I have created a crystal report with 16 groups. Instead of sorted each group, i need to sort the list of groups by the 16 fields. is this possible? If so, how?

    Hi,
    I may be wrong by how the report may be reviewed if there are 16 columns to be sorted. It is seldom that a report have more than 10 columns to sort so that the report is still readable.
    Thanks,
    Gordon

  • Crystal reports show rows of a field in detail section in number of columns while exporting in ms excel

    Hi,
    I have a crystal report and a field called source.
    The source field can contain more than one records.
    When I export it to ms excel then source field is shown in three rows in excel.
    Name
    Source
    Batch No
    ABC
    A0001
    K1
    K2
    K3
    But now I want to export to excel in the following format
    Name
    Source
    Batch No
    ABC
    A0001
    K1
    K2
    K3
    The Name and Batch No field are in Group Header and Source in detail section.
    Also the Source field can vary in number i.e. there can be any number of Source.
    And I only want this type of output when exporting to MS Excel.
    Is there any way to do this?
    Please reply.
    Thanks.

    Try this:
    1) Create a formula with this code and place it on the Details Section:
    whileprintingrecords;
    numbervar x := x + 1;
    stringvar col1;
    stringvar col2;
    stringvar col3;
    if x = 1 then col1 = {Source}
    else if x = 2 then col2 = {Source}
    else if x = 3 then col3 = {Source};
    2) Create another formula and place this on the Group Header:
    whileprintingrecords;
    numbervar x := 0;
    stringvar col1 := "";
    stringvar col2 := "";
    stringvar col3 := "";
    3) Create three separate formulae - one each for the three Source columns and place these on the Group Footer:
    E.g. for first Source column:
    whileprintingrecords;
    stringvar col1;
    E.g. for second Source column:
    whileprintingrecords;
    stringvar col2;
    Drag and drop these formulae beside each other on the GF.
    4) Move the 'Name' and 'Batch No.' fields from the Group Header to the Group Footer
    5) Suppress Group Header and the Details Section.
    -Abhilash

Maybe you are looking for

  • Help!  iPhone no longer recognized after update/sync

    Help. After months of delaying doing the update for my iPhone 3gs, I finally hooked it up tonight.  Well half way through the update an "unexpected error" occured.  Now my phone only has the 'connect to itunes' screen.  I've tried rebooting my pc and

  • About web service

    hi, all   i call the web service in abap report.   there is a runtime error that is "Method 'nr1:put-messagesRequest' not implemented: method name or namespace not recognized".

  • Desktop mail message quick look

    I have seen on a colleague's mac that when she receives a new mail message, the message itself is visible on her desktop (not as part of the mail program per se). She can see a "quick look" type preview of it in the upper corner of her desktop. It's

  • ITunes Match not playing.

    Since Feb 12, I have not been able to play "stream" my songs on my iMac. They just keep skipping over to the next song with nothing playing. When I try and click on the download button, I am given the error code 5556. the only songs that play are the

  • Mail hangs when I try to open emails with certain attachments

    When I try to open emails with certain attachments, rather PS files (if I recall correctly) it hangs. It seems that Mail is trying to load the PS file for me, and maybe convert it to PDF, which take awful lot of time. So at the moment I cannot do any