Record Number In Cross Tab

Hello...
How can i add Serial Number for each records in crosstab reports.
Thanks ......

Hello.....
                  CR 2008 licensed version.
We are direct customer of Business Objects
             Thanks.

Similar Messages

  • 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

  • Serial No in cross tab

    i need to give serial no in cross tab....
    i had given in group header...
    i have 5 different groups..
    so i need to refresh the serial no for each cross tab...
    Please help me...
    Thanks in Advance.......................

    Hi MR. HAFEEZ MR.
    The requirement is not clear but you can print serial number in cross tab.
    Go in Cross tab and right click on a field where you want to insert serial number and go in Format Field -- common Tab--Disply String then write the following formula :
    WhilePrintingRecords;
    Global Numbervar x;
    x:=x+1;
    totext(x,"##")"  "CurrentFieldValue;
    It will print serial number along with your field value.
    Thanks,
    Sastry

  • Record selection issue in cross tab.

    Hello!
    I have a record  filtering problem. I tried many scenarios, and searched this forum but I cannot find an solution.
    I have a sub-report that contains a cross tab that provides a few summarized fields.
    I have two tables: a table with category of events : (field catID and Catname) and an event table with a CatID, a date field and others number field I use in the cross tab.
    I want my cross tab to show one row per category. The Catname and the summaries.
    Now all is working fine but for one issue. I need to select my event according to a time bracket.
    So I created two time parameters (start and end) and select the event dates between these two dates.
    Now, when selected, any category that does not have an event between these dates are not displayed. I would like them to be shown with "o" values.
    There must be a way of doing this. I just cannot find it.
    Esther

    In order for Crystal to show data, it must be given data to show!
    You will need to base your subreport on an SQL Command.  In that command, put the current SQL used by the report.  To this, do a UNION to a select that selects the category name, and a zero for each field that you are summing in the crosstab.
    As a simplified example, suppose the original SQL was (MS SQL):
    select c.catname, sum(e.quantity) as Quantity
    from categories c, events e
    where c.catid = {?catid parm}
    and c.catid = e.catid
    and e.date between {?start} and {?end}
    This would be changed to
    select c.catname, sum(e.quantity) as Quantity
    from categories c, events e
    where c.catid = {?catid parm}
    and c.catid = e.catid
    and e.date between {?start} and {?end}
    UNION
    select c.catname, 0 as Quantity
    from categories c
    where c.catid = {?catid parm}
    This will return an additional zero record, regardless of what data the original query returns, thus giving Crystal the data needed to display.  Note that the zero value will not affect the results in any way, except causing a zero to be displayed if no data is returned from the original query.
    Just remember that the second SELECT in the UNION has to have the same number of fields, of the same data type, as the first SELECT.
    HTH,
    Carl

  • 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

  • Can't limit cross tab records

    I am using cross tabs in my report to list students and their scores. I would like to list three students per page. Ex. if there are nine students then I should have a three page report containing three students per page.
    What I am currently getting with the cross tabs is as many students on a page that can fit and the rest will run off of the page. Is there a way I can limit the number of records a cross tab will display on a page??

    Aminah,
    You will need to break the students into groups of 3 and then place the crosstab in the Group Header (or Footer).
    To break the students into groupings of 3 you will need 2 formulas,
    1) The first formula is in the report header and initializes the counter;
    BeforeReadingRecords;
    numbervar y:=1;
    2) The second formula increments for every third student;
    WhileReadingRecords;
    stringvar array b;
    numbervar y;
    numbervar z;
    numbervar a;
    numbervar c:= c + 1;
    If not ( {student field} in b) then
    if y = 3 then redim b[3] else redim preserve b[3];
    b[y]:={student field};
    if c=1 then a:= 0 else a:= a + 1;
    y:= y + 1;
    if remainder(a,3) = 0 then z:= z + 1;);
    if y = 3 then y:= 1;
    z;
    3) Group on the second formula and place the crosstab in the group header

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

  • 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

  • Record no/Serial no in cross tab based on grouping

    Hi Experts,
    How to get Record no/Serial no in cross tab based on grouping

    CR 2013 support pack 2 version 14.1.2.1121.
    Kindly check the screen shot

  • Cross tab design : x position based on number of columns

    Hello everybody,
    In my report, I have a group section for the country.
    For each country and in the group header, I have 2 cross tab.
    They have always the same number of columns (columns is period).
    But 2 country could have different number of periods.
    I need to have the 2d cross tab just near the 1st (right side) so I want to change x position of the 2d cross tab depending of the number of period.
    I have try to use GetNumColumns but it doesn't work (always not supported), this is the same for other grid value function.
    I'm not sure to understand why ...
    So I have tried to calculate the number of row , using another group (period), but I can't summarize in a header.
    I'm a little bit lost and need some new idea...
    For information, my reports are based on a simple mysql DB.
    Thanks

    hello, i see that no one has responded to your forum post...is this still an issue?
    in the Section Expert for the section where the cross-tabs are sitting, there is a Relative Positions checkbox wherein the cross-tabs will stay in a relative x postion to each other.
    e.g. if you are in design mode and the cross-tabs are 1/2 inch from each other, when previewed, the 2nd cross-tab will start 1/2 inch after the 1st one stops.
    cheers,
    jamie

  • Calculating a Number in a Cross-Tab

    Not sure the best way to explain this one, but I was helped to create a cross-tab that used an array to calculate the number of incentives and summarize the result in a cross-tab.  Now I'm looking to take this number and multiple it by another column in a table {UnitCost} to calculate the total value of the incentives used for the report.
    The previous issue was here:
    Problems with running totals
    For instance, if the units costs are as follows:
    Double Fandango = 10
    Fandango = 5
    Gift Card $10 = 10
    Movie Ticket = 5
    I would like to cross tab to look like the attached picture.  Would this be possible?
    The array formula is:
    whileprintingrecords;
    stringvar d:= {OBI_EquipmentMaster.Description};
    numbervar p:= {DriveProjectionAndCollectedTotals.ProcedureProjection};
    numbervar pe:= {DriveProjectionAndCollectedTotals.ProceduresPerformed};
    stringvar array ad;
    numbervar array ap;
    numbervar array ape;
    numbervar c2:= 1;
    numbervar n:=0;
    // check to see if the description has been added to the string array
    // if not, add it plus add the initial projection value to the number arrays
    if not (d in ad) then
            numbervar c:= c + 1;
            redim preserve ad[c]; ad[c]:= d;
            redim preserve ap[c]; ap[c]:= p;
            redim preserve ape[c]; ape[c]:= pe;
    else
    // if the description is already in the array, find its position
    // then add the new projection as a running total to the appropriate number array values
        while c2 <= count(ad) do
                if d = ad[c2] then (n := c2; exit while);
                c2 := c2 + 1
        ap[n]:= ap[n] + p;
        ape[n]:= ape[n] + pe;
    // grand running totals
    numbervar gp:= gp + p;
    numbervar gpe:= gpe + pe;
    I thought it would be a start creating a new number variable:
    numbervar i:= {OBI_EquipmentMaster.UnitCost}
    But I'm not sure I understand the rest of the formula nor how to insert a new column in the cross-tab.  Any suggestions on how to proceed?
    Thanks,

    hi Trey,
    since you're using the Display String in your first summary you need to assign the displayed value to a variable. i.e. change the Display String formula to
    whileprintingrecords;
    stringvar t:= GridRowColumnValue ("rpt_EquipmentMaster.Description");
    stringvar array ad;
    numbervar array ap;
    numbervar c3:= 1;
    numbervar n2;
    while c3 <= count(ad) do
            if t = ad[c3] then (n2 := c3; exit while);
            c3 := c3 + 1
    numbervar apn:= ap[n2];
    totext(apn,0)
    once that is done, you now have a variable (apn) that is available on the row level for your summaries.
    once you've added the unit cost field as a Maximum type summary to your cross-tab as the second summary, right click on that summary and go to the display string for unit cost maximum. enter in this syntax:
    whileprintingrecords;
    numbervar apn;
    numbervar apnrt:= apnrt + apn*currentfieldvalue;
    totext(currentfieldvalue * apn,0)
    note that you're referencing the variable apn which is used in the output of the previous summary. also note that you're creating another running total named apnrt which runs in the background of the cross-tab. you'll need this running total for the grand total in the cross-tab.
    now right click on the grand total for the maximum unit cost summary and go to the display string for this value. enter in this syntax.
    whileprintingrecords;
    numbervar apnrt;
    totext(apnrt, 0)

  • How to include both percentages and number values in a cross-tab chart?

    Hi,
    I created a cross-tab and a multiple pie chart using Crystal XI. I would like to include percentages as well as numbers in my pie charts' slices. Seems I can either show % or numbers but not both!
    The multiple pie chart compares different charges for different Departments. It has an On Change Of by "DifferentDepartments" and "ItemCharges" (e.g. Normal, Double Time, Time & half, Shift, Meal... )  and the Summary value is sum of "Labour".
    Is there any workaround available? Please advice.
    Thanks,
    Nazee
    Edited by: Nazee TVK on Feb 23, 2012 1:52 AM

    hi Nazee,
    this is possible sometimes, using a workaround, and depending on the values you're showing.
    instead of using your department field as the On Change Of field, create a new formula which is something like
    {departmentfield} + chr(10) + totext({your group level summary})
    as an example using the xtreme sample databae
    {Customer.Customer Name} + chr(10) +
    totext(Sum ({Customer.Last Year's Sales}, {Customer.Customer Name}))
    now in your Pie Chart switch the department field for the new formula you just created.
    i have attached a sample report...however, please note that the forums sometimes don't work with these attachments. so you can try different browsers or right clicking on the attachment and doing a save first etc.
    jamie

  • Increase Number of Decimal Points on % summarized field in Cross Tab?

    Hi,
    I have a cross tab that I have added a "% of COUNT " summarized field to, but I want to show the percentage to 2 decimal places (DP) and make the rounding more accurate. Currently the rounding means the % values do not actually total to 100%.
    I assumed this would be as simple as changing the formatting of the field to increase the 'Decimals' property to 1.00 and the rounding to 0.01.
    However when I save the changes are not reflected in my cross tab? It still shows them with 0dp? e.g. 60%
    Is it possible to get % values in a cross tab showing to 2dp? e.g. 59.82%
    Thanks

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with your directly
    Formatting is for viewing only. Using formulae to manually round the values.

  • Cross tab - to summarize number of rows

    Hi Everyone,
    a) I notice that if I use the count of Final Grade field, some students have more than one row for that class.
    So the count = 2.
    b) I created a calc: If Final Grade Count > 1, then set calc to 1.
    c) then I duplicated query as cross tab
    there are 2 datapoint fields: final grade count and Calc_RevisedCount
    d) delete final grade count and left Calc_RevisedCount
    e) dragged Course name to left,
    Final_Grade on top
    Calc_RevisedCount is the datapoint
    f) problem is that the calc_REvisedCount is NOT tabulating/summarizing
    the boxes are being populated with 1's
    Is there a better approach, or do you have any advice? thx in advance, sandra

    Hi Rod,
    tx for writing...
    a) Do you mean I should create a calc?
    b) Do I use plain Count_distinct (or the version with partition)
    c) I can use a calc as a data point in a cross tab query?
    i'm going home for the day.... tx soooo much for writing back..... sandra

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

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

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

Maybe you are looking for

  • I lost all my bookmarks when I upgraded to 3.6.8 and Firefox was not at all helpful. How can I get my bookmarks back?

    I tried the torbutton suggestion from firefox, but there was no torbutton or explanation of how to get one. I installed a torbutton and that did nothing. I am at a loss.

  • WebAS access via Portal: Web Dispatcher required for load balancing ABAP

    Hi Folks - We have EP 6.0 SP18 (Java only, WebAS 6.40, Unix/Solaris).  The portal has a CI/SCS and one DI so we have a Web Dispatcher to load balance the portal servers. This works fine (and provides port 80 access). This portal will provide access t

  • Bridge keeps crashing on me.

    It's very disconcerting. Bridge is continually crashing on me. I open up a folder with a lot of images in it in Bridge and it just crashes. This can go on 5 or 6 times until I just give up. Any ideas? If I reinstall it, using Creative Cloud, I guess

  • Best Practice for mail connectors

    I am setting up connectors for exchange and groupwise and am testing auto-provisioning. I am running into an issue with groupwise where the GroupWise connector attempts to provision before the E-Directory account is established. Is there a best pract

  • Get current SQL instance name with PowerShell

    Hi all, I'm preparing SQL agent job that will backup all jobs on SQL server. Main step is PoswerShell script. I want that job to be universal for all servers. The first parameter that I need to send to script is instancename. I want to use variable a