Using Embedded Summary in Cross-tab Report in Crystal

Hi,
I am trying to use embedded summary to calculate % Increment by fiscal period (in column) for specific sales areas (in rows). I need some help in identifying the formula which I can use to do so. If someone has experience of using embedded summary or any other method to achieve this please let me know or site me an example on how i can achieve it.
Thanks in Advance.
Regards
Varun

Good job!  Thanks for posting the solution.
But, I'm wondering why you are using a FOR loop.  Crystal Syntax is not my strength (I use Basic Syntax), so I could be reading this wrong, but your formula seems equivalent to
GridValueAt (CurrentRowIndex,CurrentColumnIndex , 0 ) - GridValueAt (CurrentRowIndex, 1, 0);
HTH,
Carl

Similar Messages

  • Cross tab reporting in Crystal 8.5

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

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

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

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

  • More than one summary column in cross tab reports

    Hi,
    I have a cross tab report.  The summary column is SUM. I want to add another summary column next to SUM which will be AVG(Average) column.
    Any ideas?
    Please see the attached image.
    Thanks,

    hi Anurag,
    my fault...i should have looked closer at your data.
    here's the easy way of showing two sets of summaries at the end of a crosstab, without having duplicate columns.
    1) copy your existing cross-tab and paste it to the right of your current cross-tab.
    2) now go to the cross-tab expert of the new cross-tab and remove the fields from the Column dialogue
    3) change the summary to an Average
    4) exit the cross-tab expert and go to the Section Expert for the section where both cross-tabs are...ensure that you check Relative Positions
    preview the report. now you'll have to move the 2nd cross-tab a bit so that it aligns properly with the first one.
    as a sample, see the attached report. extract the contents and change the .txt extension to .rpt.
    -jamie

  • Total is not matching in Cross Tab Report

    Hi Every one,
    I am using Crystal Report Basice 2008 for sap business one.
    I added a One cross tab report .But the Row level totals are not matching in the report.Please suggest.
    Thanks and Regards
    DEV

    Hi Dev,
    What is the 'Summary' type you've chosen for the Summarized fields?
    If it's Min or Max, the Row totals would also show Min/Max of all the columns for that row.
    -Abhilash

  • Cross Tab Report Summaries

    I have a cross tab report with a row for loan type and another row for Investor Name.  The columns are for loan disbursements by month.  The summaries are for the loan count for loan type, loan count as a % of loan type, sum of loan amount for loan type and sum of loan amount as a % of loan type.  The monthly numbers and % are correct, as well as the final column for the totals.
    The total number of loans and total sum of the loan amounts in the total row at the end of each loan type are also correct, but I want the % of loan count and % of loan amount in this row to be based on the total count of all loans on the report, not just the % of the loans in that particular loan type.
    Can someone tell me how to modify the % count summary and % sum summary just on the total row printing for the loan type?

    Hi Diann,
    Try to use the display string by right clicking on total field>format Field>Common tab-->Display string
    and write the formula like
    currentfieldvalue/count(field)
    Regards,
    Raghavendra

  • Totals in a cross tab report

    I'm working with Crystal Reports XI.  We have an existing report that was created using the Cross-tab report type.
    There are 3 summary fields in the report:
    - direct cost
    - indirect cost
    - Total ( direct cost + indirect cost)
    Everything worked fine until now because both the direct cost and the indirect cost were being rounded to 2 decimal places.  However, I have a new requirement to round the indirect cost total to a whole dollar ( no decimal places) before adding it to the direct cost total.  This creates a problem for the third summary field because I'm only able to do:
    - create a formula field of (direct cost + indirect cost rounded to a whole dollar)
    - use that amount in the summary field
    The problem is that then the indirect cost is being rounded for EACH record separately.  But what I need to to calculate the Total indirect cost first and only after I have that total rounded to a whole dollar, add it to the direct cost total.
    So basically, I would like for the third row to simply show the sum of the first row and the second row.
    I can't take the current total ( direct cost + indirect cost) and then round this total because the rounding for the total direct cost needs to be done in a different way than the rounding for the indirect cost total.
    Is that possible with the cross-tab report type?  Is it possible to have 2 running totals in a cross tab report and then have a custom field in the report that rounds each using the appropriate rounding algorithm and then adds the two up.
    thanks

    Thank you for your suggestions.  I kind of suspected that I wouldn't be able to use the current cross tab report to achieve this but since I've never worked with a cross tab report before I wanted to make sure this is the case before investing the time to do it some other way.
    I will try using the manual cross tab report as you suggested.
    Thanks again.

  • Energy Cross Tab Report

    I have a client who wants to monitor thier energy usage. In particular he wants to know the peak demand, energy usage among other energy parameters. He also wants to display the time when the value was read by the meter
    All of this information is stored in a csv file which I can connect to Crystal Reports. My problem is I want to do Cross Tab report which gives me the "Maximum Demand" and the time it occured. In Cross Tab Report I can have it report the "Maximum Demand" but how do I display the time that it occured.
    Regards
    Phasor

    I Grouped using this formula.   {@GROUPIT}
    if {Sheet1_.Two} in 0 to 200 then 1 else
    if {Sheet1_.Two} in 201 to 500 then 2 else
    if {Sheet1_.Two} in 501 to 999 then 3 else 4
    So all values from 0 to 200 are in group 1, and 201 to 500 are in group 2 etc.
    I then created a summary, of  maximum value for each of the groups.
    Created a formula
    Maximum ({Sheet1_.One}, {@GROUPIT})
    I placed the formula in the cross tab, and put the cross tab, in the group,
    Not sure if that is what you really want, but It should give you some ideas to try.

  • How to count number of columns in cross-tab report

    I have created a cross-tab report and have managed to get the data out as below:
                 Jan     Feb     Mar....(display of months will auto expand) Avg/Mo  Total
    UserA     4          3        4                                                                         11
    UserB     6          1        1                                                                          8
    UserC     5          5        5                                                                         15
    Total       15        9        10                                                                        33 
    I want to insert a calculated column (Avg/Mo) into the cross-tab report based on the formula: Total/Number of Months. I used this calculation formula  for Avg.Mo column:
    (GridValueAt(CurrentRowIndex, CurrentColumnIndex+1, CurrentSummaryIndex)/GetNumColumns)
    However, I get the wrong average since GetNumColumns count the total number of columns including the column of Avg/Mo and Total.
    How do i get the number of columns, excluding the Avg/Mo calculated column and Total column?
    PS: I can't use hardcode since the number of months/columns will auto expand the months progress...
    Edited by: jutamind on May 26, 2010 9:27 AM

    ok managed to solve this by slightly changing the formula:
    GridValueAt(CurrentRowIndex, CurrentColumnIndex+1, CurrentSummaryIndex)/(GetNumColumns-2)

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

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

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

  • Dynamically color to each column in Cross-tab report

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

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

  • Issue in developing cross tab report with wizard in 10.1.3.2.1

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

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

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

  • Variance formual in Cross tab report

    Hi,
    I am new to crystal and don't have formal training. I am trying to create a report that shows Actuals and Budget and I want to the variance.  Format is 1 row is for actuals, 1 row is for budget and the other is for forecast.
    I would like to have a variance that is actual - budget and another actual - forecast for each measure.
    I am using cross-tab report for formatting, any assitance for how to over write totals coloumn with Variance calculation, assistance for creating variance formula in formula workshop is required. I happend to see the logic in other forums but not in cross-tab scenario.
    Thanks in advance.
    Bhanu

    Use a manual Crosstab report so you have full control

Maybe you are looking for

  • Frustration: Airport connected yet not *connecting*

    My airport recognizes its apple network and registers four full bars in the airport icon, and yet, try as it might, it still can't/won't connect to the internet. I'm not sure what to do. It's happened before and fixed itself--or perhaps I did somethi

  • Typographic & Font Problem on Pdf's

    Hello Im a amateur writer and am kinda writing stuff of fiction. Im very much in to this stuff and i collect lots of medias. Recently i learned that my favorite publisher - white wolf - does provide books online. So i went and bought couple of them a

  • How can I open shared files from laptop?

    I have connected my external hard disk to Airport extreme and configured through my laptop (Windows). Now I want to see files existing in hard disk through wireless. How can I open files and photoes? Regards, Balaji.

  • Case sensitive data in workflow

    I am working with some case sensitive data in a work flow. To set and get the values from the container, I am using the macros swc_set_element and swc_get_element. I realized that these macros automatically convert the case of the data I am passing t

  • Need to make cool rollover buttons

    Hello all, This is for a commercial website I'm working on and I hit a snag with. Here's what I'm trying to do: On the site header, there are topics such as, "Apartments" and the like. What the client wants is to be able to have the viewer rollover t