Cross -tabs Percentage of Count Truncating Issue

Hi-  I'd appreciate any insight into how I can get the percentage of a count in a cross-tab to display a decimal point.  The system is currently truncating the percent values-- 12.9% is showing as 12%.   I've tried to usual formatting options.  It works with a percentage of a sum just fine.  Thanks!

You are correct.  It can be done using SUM as opposed to COUNT.  I created a formula assigning a number to the counting field. example: IF FIELD_CODE = 'A'  THEN 1  ELSE IF  FIELD_CODE = 'B'  THEN 1    By assigning a number you can now SUM the formula.Â

Similar Messages

  • How to display a row in Cross Tab when the count summary is zero

    My customer wants a row for all possible data, even when the count is zero.  How can I get a row to display when there is no data?  Using an example:  Display status for incidents - possible five statuses, but selection only results in four statuses because no incident were cancelled.  Customer wants all five statuses to display in cross tab with cancelled showing '0' (zero))
    Open
    WIP
    Cancelled
    Pending
    Closed

    This worked for the last guy who had a similar issue.
    Take a look at what it's doing. You should be able to use the same principal to meet your needs...
    I'm assuming that you'll only need to show 4 weeks at a time on your report.
    The easiest way to do it is by creating 8 separate formula fields:
    W1A
    W1RT
    W2A
    W2RT
    ... and so on
    I don't know how your data is coming across but the formula should go something loke this:
    W1A... IF datepart(ww,currentdate) - datepart(ww,) =0 THEN
    W1RT... IF datepart(ww,currentdate) - datepart(ww,) =0 THEN
    W2A... IF datepart(ww,currentdate) - datepart(ww,) =1 THEN
    W2RT... IF datepart(ww,currentdate) - datepart(ww,) =1 THEN
    ... and so on
    If I got you weekly criteria wrong, sorry. It's just a best guess.
    Anyway you should be able get the idea. It gives you the effect of a crosstab without the headaches of a crosstab.
    Hope this works for you,
    Jason
    Edited by: Jason Long on Jun 28, 2008 3:19 AM

  • Cross tab & Line Graph – Data Sorting issue

    Hi,
    Want to display data in specific order in cross tab row & in graph as shown below
    Account Name
    Average
    Median
    In the same order data has been retrieved from the database but when it comes to Crystal report, its reordering the data in alphabetical order as shown below due to the order set in Group option
    Example: 1
    ABC
    Average
    Median
    Example: 2
    Average
    Median
    XYZ
    Please note u201CAverageu201D & Medianu201D are constant but Account name will vary based on selection.
    How this can be achieved? How Specific Order can be used in this case?
    Please help... Itu2019s urgentu2026
    Thanks,
    ThakurS

    Hi
    Under "chart expert" in "data" tab where you add the fields in chart you see "on change of" and "show" values..
    After adding the required on "change of fields" if you would highlight that field "group option"  tab will get enabled where you will find the "sort order" drop down. There is an option "In Original Order" which will sort the fields as fetched from Database
    Same option is available in Cross-Tab
    Regards,
    Shantanu

  • Cross tab: Getting the count based on three consecutive dates

    Hi All,
    I have a crosstab which as Ticket_no and Date columns. here is the sample  report data.
            Ticket_no          Date
                  1                1-Jan-2013
                  1                2-Jan-2013
                  1                3-Jan-2013
                  2                1-Jan-2013
                  1                1-Jan-2013
    count of tickets which are raised for consecutive 3 days in a month. Here ticket_No 1 is raised for the first 3 days..so count will be 1. 
    Can any one help me in this case.
    Thanks in advance.
    Regards,
    Krishna

    Krishna, Bring Ticket_No as Dimension from universe,
    In web I, create a variable
    = Count([Ticket_No])

  • How can I avoid the null values in cross tab?

    How can I avoid the null values in cross tab?

    Hello Anindita,
    Let me explain you the problem in detail.
    I have selected User and Program as rows in the cross tab. In Summarized Field I am counting the Programs.
    In DB I can have both User and Program null.
    Letu2019s take these scenarios...
    1) For a User, Program can be null
    2) For a Program, User can be null
    3) And both can be null.
    A null Program does not give problem since Cross tab does not count the null values and in my case too, it remove the Program which are null from the Cross tab because of the counting its doing on Program. Hence scenario 1 and 3 is not a Problem.
    Problem comes in scenario 2 (For a Program, User can be null).
    In this case since Program is not null it will get counted and will be grouped under null user but I donu2019t want to show the null user Grouping in my cross tab.
    "Suppress empty rows" and "suppress empty colums" does not help.
    Thanks & Regards,
    Amrita

  • Crystal Reports 10 Cross Tab Report Issue

    I created a Cross Tab Report with multiple rows of data.  It has two columns to return data for Year 2008 and Year 2009.  When reading the database the report does not return data for rows that have a result of 0 in both columns even though Suppress Empty Rows is NOT checked in the Cross Tab Expert Customize Style Tab.  Any suggestions as to how to get all of the rows to display including those with results of 0?

    I'm guessing that your issue is that "results of 0" is really a lack of data, not that something is there and is summing to zero.
    In that case, you need to base your report on an SQL Command.  Take the SQL that the report is currently using, and UNION it with another select statement that returns all of the rows that you are looking for with zero values; something like this:
    UNION
    select category, 0 as PY_Value, 0 as CY_Value
    from categories
    This will cause the data to be there, which will cause the rows to display on the cross tab.
    HTH,
    Carl
    (Resolution for 2010:  Count the number of times this question is asked!  :->)

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

  • 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                                                                                                                                                                                                                                                                                                       

  • Percentage in cross tab report

    Hi
    My report look lkes
                  id                total              percentage
    desc
              1     2   3    total   per
    d1       0     1   0      0      33%
    d2       1      1   0      2     66%
    d3       1       0   0     1     33%
    I insert cross tab, descrption as row and id as column and value as summarized field.
    but how to caluclate percentage?

    Hi
    i am using .net 1.1, crystal report version is 9.
    i don't found  Show as percentage of.
    for ex
    d1  1  0 0
    total   is 1 ( i want to calculate number of 1's)
    percentage - 33% (total/3) .
    i am getting total , but i don't know how to calculate percentage.
    Thanks in advance

  • Issue with passing parameters through Java-JSP in a report with cross tab

    Can anyone tell me, if there's a bug in Java SDK in passing the parameters to a report (rpt file) that has a cross tab in it ?
    I hava report that works perfectly fine
       with ODBC through IDE and also through browser (JSP page)
    (ii)    with JDBC in CR 2011 IDE
    the rpt file has a cross tab and accpts two parameters.
    When I run the JDBC report through JSP the parameters are never considered. The same report works fine when I remove the cross tab and make it a simple report.
    I have posted this to CR SDK forum and have not received any reply. This have become a blocker and because of this our delivery has been postponed. We are left with two choices,
       Re-Write the rpt files not to have cross-tabs - This would take significant effort
    OR
    (ii)  Abandon the crystal solution and try out any other java based solutions available.
    I have given the code here in this forum posting..
    CR 2011 - JDBC Report Issue in passing parameters
    TIA
    DRG
    TIA
    DRG

    Mr.James,
    Thank you for the reply.
    As I stated earlier, we have been using the latest service pack (12) when I generated the log file that is uploaded earlier.
    To confirm this further, I downloaded the complete eclipse bundle from sdn site and reran the rpt files. No change in the behaviour and the bug is reproducible.
    You are right about the parameters, we are using  {?@Direction} is: n(1.0)
    {?@BDate} is: dt(d(1973-01-01),t(00:00:00.453000000)) as parameters in JSP and we get 146 records when we directly execute the stored procedure. The date and the direction parameter values stored in design time are different. '1965-01-01' and Direction 1.
    When we run the JSP page, The parameter that is passed through the JSP page, is displayed correctly on the right top of the report view. But the data that is displayed in cross tab is not corresponding to the date and direction parameter. It corresponds to 1965-01-01 and direction 1 which are saved at design time.
    You can test this by modifying the parameter values in the JSP page that I sent earlier. You will see the displayed data will remain same irrespective of the parameter.
    Further to note, Before each trial run, I modify the parameters in JSP page, build them and redeploy so that caching does not affect the end result.
    This behaviour, we observe on all the reports that have cross-tabs. These reports work perfectly fine when rendered through ODBC-ActiveX viewer and the bug is observable only when ran through Java runtime library. We get this bug on view, export and print functionalities as well.
    Additionally we tested the same in
        With CR version 2008 instead of CR 2011.
    (ii)   Different browsers ranging from IE 7 through 9 and FF 7.
    The complete environment and various softwares that we used for this testing are,
    OS      : XP Latest updates as on Oct 2011.
    App Server: GlassFish Version 3 with Java version 1.6 and build 21
    Database server ; SQL Server 2005. SP 3 - Dev Ed.
    JTds JDBC type 4 driver version - 1.2.5  from source forge.
    Eclipse : Helios along with crystal libraries directly downloaded from SDN site.
    I am uploading the log file that is generated when rendering the rpt for view in IE 8
    Regards
    DRG

  • Count Function Specific with Cross Tab Name for Multiple Cross Tabs

    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

    Hi,
    Have you tried for the solution given in the previous thread by converting it to the dimension or detail?
    What result did you get?
    If you use "Report" operator/keyword then the formula will give you result for whole report. So if you have sections in the report then you can replace it with Section keyword.
    Also measure are dynamic and gives result according to the dimesion you associate with them. so you have to convert it to STRING dimension or detail. before using it in the next block.
    Regards,
    Rohit

  • 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

  • Cross Tab issue , Need a Help

    HI Expery
    In BO Webi report  need to show dynamic columns in Report after transposing rows to columns.
    Data in Table is  like below:
    Col1     Col2     Col3
    101     Abc     801
    101     Abc     802
    101     Abc     803
    101     Abc     804
    101     Abc     805
    102     RNM     2009
    102     RNM     2010
    102     RNM     2011
    103     RYZ     3465
    In Report It should be as
    Col1     Col2     Col3     Col3     Col3     Col3     Col3
    101     Abc     801     802     803     804     805
    102     RNM     2009     2010     2011           
    103     RYZ     3465                       
    We have tried implementing the same using cross tab , but issue is in Cross  col3  grows with all values present for all records. Here, if we use cross tab  we are getting result as below:
    Col1     Col2     Col3     Col3     Col3     Col3     Col3     Col3     Col3     Col3     Col3
    101     Abc     801     802     803     804     805     2009     2010     2011     3465
    102     RNM     801     802     803     804     805     2009     2010     2011     3465
    103     RYZ     801     802     803     804     805     2009     2010     2011     3465

    Hi Ahmed
    You can use the below logic.
    col1 & col2 u can keep it as columns in a cross tab. Now keep col3 as row but here you need to do one thing . Click on the formula button for col3 field and then write the following syntax in it.
    = col3 IN ([Col1];[col2])
    By using this calculation context it will fetch only the data which is related to the first two columns. so the extra data which u were mentioning about will got to the next row.
    Regards
    Shyam
    Edited by: Shyam Rapeti on Jan 25, 2012 3:20 PM

  • 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

  • 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

Maybe you are looking for