Crosstab formatting.

I have cross tabs on several GF's that have a count{of field)and then a percent of the count{field}. The percent are listed in whole numbers with out in decimals - like 45% or 85% or 100%......The user would like them to be out to wo decimals - like 45.25% or 56.78% or 100.00%. When I go into the field and format it to two decimals it doesn't do it. It just doesn't accept the reformatting.....Is this something I am doing wrong or is this crystal? Does it not allow formatting % with in crosstab?

Hi Todd,
    You need to write a formula in Format Field >> suppress of the percentage value.
numbervar x:= CurrentFieldValue;
false
Write a formula in Format Field >> Display String to show decimals of the percentage value.
numbervar x;
Totext(x,2) & '%'
Hope this helps,
Regards,
Vinay

Similar Messages

  • How to display Employee Attendance Data in Crosstab Format?

    Hi all,
    I have the data in sql server 2005 like below, which saves the employee in date and in time and entry type 
    How can i create a cross tab query for the above records in sql server 2005. and i need the record in the below format:
    where 1, 2, 3 are indate days, and below is intime, out time and the difference of hours per employee...
    How can i achieve it as i have to make report for it... need sql query or stored procedure for the format required.
    Thanks in adv.

    One could argue that the crosstab is best produced in the presentation layer and that SQL Server should only return the raw data. But if you like to hurt yourself...
    First you need an unpivoting query to put starttime, endtime and length in a single row. Since all columns in a row needs to have the same data type, this requires some care.
    We take this CTE:
    WITH CTE AS (
      SELECT t.EmpID, u.n, datepart(day, t.starttime) AS day
             substring(convert(char(23),
                CASE u.n WHEN 1 THEN t.starttime
                         WHEN 2 THEN t.endtime
                         WHEN 3 THEN dateadd(ss, datediff(ss, t.starttime, t.endtime), '19000101')
                END, 108), 11, 5)
      FROM   tbl
      CROSS  JOIN (SELECT n = 1 UNION ALL SELECT 2 UNION ALL SELECT 3)
      WHERE  t.starttime >= @month + '01'
        AND  t.starttime <  dateadd(month, 1, @month + '01')
    I assume here that @month is on the form YYYYMM.
    Before I go on, I like to point out that something you need to consider is what output you want if there are multiple entries the same day. And even worse, what output do you want if the intervals are overlapping? To keep this post down in complexity, I
    will ignore this situation, but I like to stress that unless you have the appropriate triggers and constraints in place, you will have that sort of data in a real production scenarion. Bad data knows how to creep in.
    With the CTE above, we can now pivot the data per day. It is kind of boring to write:
    SELECT EmpID,
           MIN (CASE day WHEN 1 THEN data END) AS [1],
           MIN (CASE day WHEN 2 THEN data END) AS [2],
           MIN (CASE day WHEN 31 THEN data END) AS [31]
    FROM   CTE
    GROUP  BY EmpID, n
    ORDER  BY EmpID, n
    Note: all code here is untested. If you want a tested solution, you need to supply the CREATE TABLE statements for your table and sample data as INSERT statements.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Crosstab Formatting Crystal 8.5

    I have a crosstab that I am trying to format.  I have done most of the work but this (hopefully) last two parts are annoying.
    First Issue:
    Layout:
    Rows are Names
    Columns are Categories
    Summarized Field is sum of amount (for each name for each category)
    Columns Categories has a main group of categories that total about a dozen columns.  The client wants a couple of columns that would normally be in that range of categories, moved to the right.  So I have created a Specified group that does not include the two that need to be moved.  The main group needs to have a row total for only that group.
    The final two columns are to be presented at the right side after the original group's total but not have a row total of it's own.  Column totals are to be included.
    I have setup one group that does not include the two columns and then put those two in Others.
    The issue is that I wish to suppress the printing of the second (Others) group row totals and can't figure out how to do it.  I think everything else is working fine but I can't get my head around this one.  Conditional suppression on the totals does not allow me to access the Group Name Report field as it would on a normal Standard report.
    Second issue:
    When I export the report to Excel the column headers, except the word Total are completely garbled.  Row labels are fine.  Any ideas on this one?
    Any help is appreciated. TIA rasinc

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly

  • Crosstab formatting question -- not sure if possible

    I'm trying to copy an existing report from Crystal to Discoverer on student data at a college.
    Because a student can have multiple addresses(local, permanent, parents) I need to have a report that is something like:
    <with any luck the formatting will stay intact>
    (student ID) (Name) (Type) (Address) (grade Level)
    1234 Mary Smith Local 123 main st Freshman
    perm 567 wild ave
    parent 987654 willy wonka lane
    5678 John Doe Local 5411 silly drive Senior
    parent 99 redhat way
    In essence, I'm needing each student to only display things like ID, name, grade, etc, once, but each address needs to be displayed in an address column, but without duplicating the ID, name, etc
    I suspect that this can't be done in Discoverer, but thought I'd ask before I venture a different route. Makes my job easier if I can keep the formatting the same for those that use the report.
    I hope this made sense, I can get a jpg posted if it would help to understand.
    matt

    Let me try formatting again:
    (student ID) (Name) (Type) (Address) (grade Level)
    1234 Mary Smithiewe Local 123 main st Freshman
    <-----------BLANK------------>perm 567 wild ave <-- no_level-->
    <----------------BLANK-------->parent 987654 willy wonka lane <-- no_level-->
    5678 John Doenagleongler Local 5411 silly drive Senior
    <------------BLANK------------>perm 99 redhat way <-- no_level-->
    <------------BLANK------------>parent 99 redhat way <-- no_level-->
    Matt

  • Error while processing conditional formatting formula in crosstab

    This conditional formatting formula must return one of the following Color Constants: ' A number, currency amount, boolean, date, time, date-time, or string is expected here. Details: errorKind
    The above error is displayed on the the Business Objects Report Server when running my report.
    The XI server version information is as follows:
    BusinessObjects Enterprise XI Release 2
    Business Objects
    11.5.0.3135
    20060628
    Crystal Reports XI Release 2
    Business Objects
    11.5.0.31327
    20060628
    My IDE is Crystal Reports 2008.
    The error is being generated for the following conditional formatting formula which is in my crosstab:
    evaluateafter ({@concatAppTypeAppMethod});
    if CurrentRowIndex = 1 then
        color(0,153,153)   
    else if CurrentRowIndex = 2 then
        color(168,146,101)
    else if CurrentRowIndex = 3  then
        color(0,51,153)
    else if CurrentRowIndex = 4  then
        color(204,51,51)
    else
        color(153,153,153)
    This formula is applied via the Crosstab "Format Field>Font" tab.  In the report developer (Crystal 2008) the report runs without error.  When deployed to the server it fails with the above error.
    Heres the details of {@concatAppTypeAppMethod}:
    whileprintingrecords;
    "Designs filed " + {Command.APPLICATION_METHOD}
    The crosstab is structured as:
    Row = {@concatAppTypeAppMethod}
    Column = {@getMonth}
    Summary = Count of {@concatAppTypeAppMethod}
    Details for  {@getMonth}:
    right(totext(year({Command.ACN_COMPLETED_DATE}),"#"),2) + totext(month({Command.ACN_COMPLETED_DATE}),"0#")
    The above functions Row i.e. {@concatAppTypeAppMethod} and {@getMonth} use fields from the SQL command. 
    {@getMonth} parses the ACN_COMPLETED_DATE field, obtains the record month and year and concatenates these as a string which can be displayed as follows in the crosstab:
    May-08, Jun-08 etc.
    {@concatAppTypeAppMethod} parses the APPLICATION_METHOD field and obtains the application filing method i.e. Online or Internally and concatenates the pretext "Designs filed " to the filing method (also a string).
    I have tried various combinations of whilereadingrecords, whileprintingrecords and evaluateafter() with no success.  The problem occurs because the conditional formatting formula is being executed before the records being formatted are ready. 
    I believe this is a problem with the crystal reports software and/or XI server. 
    Please prove me wrong.

    Hi Raghavendra,
    Thanks for your prompt answer!  Can you confirm?  Is it because I'm using calculated members in the report and these are not support by the XI server specified in my error report above?
    If so, do you have any suggestions with regard to how I might be able to create a graph with the following attributes:
    Show summary (count) of records per month per application method (i.e. online or internal. this is a database field retruned by the SQL command).  In addition I need to add a series to the graph that shows the totals number of records per month irrespective of the relative application method (i.e. sum of online and internal) and finally I need to show the total number of online applications (i.e. application method = online) as a percentage of the total number of applications for the month.

  • Pivot / Crosstab XML Data....

    Hi,
    Does anyone know how to present an XML datasource into a Crosstab format?
    I've read one document suggesting the use of the SUMIF function - which is novel, but I reckon that's a pretty poor way to have to do it.
    Does anyone have a better method?
    Regards
    Mick

    bump

  • Drill Down Functionality in Crosstab in CRE

    Hello Experts,
    I have a requirement in which the  data arrangement by itself is in a crosstab format. Along with this crosstab, Drill down functionality is needed. In CRE, is this possible, if yes, how?
    Sample data shown below. Need to further drill down on Accounts(for e.g.).
    Accounts     Levels      Description     Product     Currency Code   KF1
    100     5     Cash     Pt 1     INR           789
    101     7      Cash1     Pt 2     INR           654
    102     7     Cash2     Pt 3     INR           935
    103     8     Cash3     Pt 4     INR           32
    Any help would be greatly appreciated.
    Regards,
    arjun

    Hi Arjun,
    Unlike a Group, Cross-tabs do not have drill-down functionality.
    The only workarounds are to either create a Manual Cross-tab using Groups or on the existing Cross-tab use openDoc URLs to hyperlink to another 'Detail' report which acts as the report that is drilled-down into.
    -Abhilash

  • Help in Pivot Query- To change the column data to rows data!

    Hello Gurus -
    I have to change the row to Column -
    When i use the query -
    select NVL (T2.NAME, ' Grand Total') AS State,count(T2.NAME) as Total
    from Defect T1,statedef T2,repoproject T3
    WHERE T1.STATE=T2.ID AND T1.repoproject = T3.dbid AND T3.name like '%Compass Juice' GROUP BY ROLLUP (T2.NAME)
    Then i have got the following data -
    STATE          TOTAL
    Analysis     17
    Closed          1302
    Development     9
    Duplicate     24
    Failed          2
    OnHold          4
    Opened          146
    QA          1
    ReadyForQA     1
    Withdrawn      335
    Grand Total     1841
    But i want the data in following format -
    State Analysis     Closed     Development      Duplicate     Failed     OnHold     Opened     QA     ReadyForQA     Withdrawn     GrandTotal
    Total 17     1302     9          24          2     4     146     1     1          335          1841
    Kindly help me with this. I searched the forum and saw the usage of Max and NVL, Decode but i am unable to understand it to use in my query. kindly help me with this.

    Hi,
    In 11g you can use pivot.
    [http://www.oracle.com/technology/pub/articles/oracle-database-11g-top-features/11g-pivot.html]
    example
    SQL> desc customers
    Name                                      Null?    Type
    CUST_ID                                            NUMBER(10)
    CUST_NAME                                          VARCHAR2(20)
    STATE_CODE                                         VARCHAR2(2)
    TIMES_PURCHASED                                    NUMBER(3)
    When this table is selected:
    select cust_id, state_code, times_purchased
    from customers
    order by cust_id;
    The output is:
    CUST_ID STATE_CODE TIMES_PURCHASED
          1 CT                       1
          2 NY                      10
          3 NJ                       2
          4 NY                       4
    ... and so on ...
    Note how the data is represented as rows of values: For each customer, the record shows the customer's home state and how many times the customer purchased something from the store. As the customer purchases more items from the store, the column times_purchased is updated.
    Now consider a case where you want to have a report of the purchase frequency each state�that is, how many customers bought something only once, twice, thrice and so on, from each state. In regular SQL, you can issue the following statement:
    select state_code, times_purchased, count(1) cnt
    from customers
    group by state_code, times_purchased;
    Here is the output:
    ST TIMES_PURCHASED        CNT
    CT               0         90
    CT               1        165
    CT               2        179
    CT               3        173
    CT               4        173
    CT               5        152
    ... and so on ...
    This is the information you want but it's a little hard to read. A better way to represent the same data may be through the use of crosstab reports, in which you can organized the data vertically and states horizontally, just like a spreadsheet:
    Times_purchased
                 CT           NY         NJ      ... and so on ...
    1             0            1          0      ...
    2            23          119         37      ...
    3            17           45          1      ...
    ... and so on ...
    Prior to Oracle Database 11g, you would do that via some sort of a decode function for each value and write each distinct value as a separate column. The technique is quite nonintuitive however.
    Fortunately, you now have a great new feature called PIVOT for presenting any query in the crosstab format using a new operator, appropriately named pivot. Here is how you write the query:
    select * from (
       select times_purchased, state_code
       from customers t
    pivot
       count(state_code)
       for state_code in ('NY','CT','NJ','FL','MO')
    order by times_purchased
    Here is the output:
    . TIMES_PURCHASED       'NY'       'CT'       'NJ'       'FL'       'MO'
                  0      16601         90          0          0          0
                  1      33048        165          0          0          0
                  2      33151        179          0          0          0
                  3      32978        173          0          0          0
                  4      33109        173          0          1          0
    ... and so on ...

  • How to create a running total formula for different calendar years

    Hello everyone,
    I am looking for some help in creating a running total formula for different calendar years in Oracle. This is what I currently have organized in the crosstab report: vertically I have the cities from our database organized, then horizontially have the following information for each city:
    2006 /2007 /2008
    Amount /Amount Spent /Unspent Amount Amount Recieved/Amount Spent /Unspent Amount Amount Recieved/Amount Spent/Unspent Amount
    Recieved
    I am trying to create a formula that will specify each calendar year. For example, I'd like to have a formula in 2007 which would total the: 2007= {2006 unspent amount + the unspent amount in 2007} and same for 2008= {2007 unspent amount + the unspent amount in 2008}. I hope this is clear, I have simplified the report into a basic interpretation of what i've been trying to accomplish.
    Would anybody know if this is possible and how to approach this?
    Really appreciate it! Thanks.
    Alex

    Hi,
    you can try and define a running total as a calculation in the crosstab as:
    sum(Unspent Amount) over (partition by city order by year)
    i find the crosstab format comfusing sometime since the aggregation is auto applied.
    I would start with a flat table and then "duplicate is as a cross tab"
    for your running total you can sort the data by the city,year and get it to 3 lines for each city, for example:
    city year Unspent Amount all other amount...
    X 2007 10
    X 2008 20
    X 2009 30
    Y 2007 5
    Y 2008 15
    Y 2009 25
    then you can use a funtion to calculate the amount :
    sum(Unspent Amount) over (partition by city order by year)
    this is the sql i used just to check it:
    SELECT city,year,"Unspent Amount"
    ,SUM("Unspent Amount") over (PARTITION BY city ORDER BY YEAR)
    FROM (
    SELECT 'X' city, 2007 YEAR, 10 "Unspent Amount" FROM dual UNION ALL
    SELECT 'X', 2008 ,20 FROM dual UNION ALL
    SELECT 'X', 2009 , 30 FROM dual UNION ALL
    SELECT 'Y', 2007 , 5 FROM dual UNION ALL
    SELECT 'Y', 2008 , 15 FROM dual UNION ALL
    SELECT 'Y', 2009 , 25 FROM dual
    Tamir

  • Calculation to get latest completion Date

    hi.. thanks guys for all the info.. it really helped me a lot as a newbie..
    i am doing a report as an end-user of discoverer desktop 4. how can i get the highest completion date (table and crosstab format) in my data as follows:
    BudgetRef ProjectNo TaskNo CompletionDate
    2010-01 PN2600 A1000 Mar-2011
    2010-01 PN2600 B1000 Sep-2012
    2010-01 PN2600 C1000 Jun-2011
    2010-01 PN2665 A1000 Jun-2012
    2010-01 PN2665 B1000 Dec-2011
    2010-02 PN3005 A1000 Mar-2012
    2010-02 PN3005 B1000 Dec-2013
    2010-02 PN3005 C1000 Dec-2012
    Result should be:_
    BudgetRef          ProjectNo    CompletionDate
    2010-01 PN2600 Sep-2012
    2010-01 PN2665 Jun-2012
    2010-02 PN3005 Dec-2013
    thanks again for the usual assistance.

    thanks Michael.. it works fine..
    another thing :-).. i tried to run the same report but adding some fields.. comparing the original completion from amended completion but it seems it is giving me a null value if one of the ProjectNo completion date is empty or if the completion date is a text (ie "hold"), and in some cases it is not showing as a line item therefore affecting the ProjectCost
    if the comparative completion dates in the original and amended are either empty or is a text.. it should still show the field either an empty field or the text "Hold" (text has the priority when being compared to an empty field) so as to retain the total Project cost.
    my sample data are as follows:
    BudgetRef ProjectNo     TaskNo     ProjectCost     OrigCompletionDate     AmendedCompletionDate
    2010-01 PN2600     A1000     1,000      Mar-11     Mar-12
    2010-01     PN2600     B1000     5,000      Jul-10     Oct-13
    2010-01     PN2600     C1000     6,000      Hold     May-14
    2010-01     PN2665     A1000     3,000      Jun-12     Apr-13
    2010-01     PN2665     B1000     2,000      "Null"     Dec-11
    2010-02     PN3005     A1000     4,000      Mar-12     May-15
    2010-02     PN3005     B1000     9,000      Hold     May-15
    2010-02     PN3005     C1000     7,000      Dec-12     Jun-13
    2010-03     PN3007     A1000     8,000      "Null"     "Null"
    2010-03     PN3007     B1000     2,000      Hold     "Null"
    2010-04 PN3008 A1000 _5,000_ "Null" "Null"
              Total     *52,000*           
    The result should show as follows:                         
    BudgetRef     ProjectNo     ProjectCost     OrigCompletionDate     AmendedCompletionDate
    2010-01     PN2600          12,000      Mar-11     May-14
    2010-01     PN2665          5,000      Jun-12     Apr-13
    2010-02     PN3005          20,000      Dec-12     May-15
    2010-03     PN3007          10,000      Hold     "Null"
    2010-04 PN3008 _5,000_ "Null" "Null"
              Total     *52,000*           
    thanks again for the never ending assistance.

  • Cross Tab Report...Calculated Column shows NULL

    Hi there
    I have one calculated field which is based on some calculation when I run my report in Discoverer Desktop I can see the 0 in NULL values in all rows.
    But when I run this report in Discoverer Plus/Discoverer Viewer it shows me Null for some values or some values I can see the zeros.
    I have checked the WorkBooks options its all set to 0.0.
    1)
    Edit---> WorkSheet Properties ---CrossTab Format ---Show Null values as 0.0
    2)
    Tools---> Options---> Sheet--->Show Null values as 0.0
    3)
    I have settings in Pref.txt which means Some reports I want to see the NULL values...
    Pref.txt
    NullValue = "NULL"
    Do you have any idea..
    Thanks
    ASIM

    Well, I don't really have an idea what is happening, but i have a solution to hide nulls.
    You can create an exception on the columns.
    when column_name = Null then change the forecolor to match with the backcolor.
    This will make the text and box of same color and will hide nulls.
    Cheers :)

  • OLAP JAVA API - JDev

    hi all!
    i want to develop an olap application with JDeveloper and i´ve followed the steps of the tutorials on bibeans tech site (create and format bi objects). Now i´ve got a graph and a crosstab formatted etc. which i can show in JDeveloper.
    My question: is it possible to produce the crosstab and graph with the java graph api on my own or to get the java-code behind the produced crosstab/graph? First of all is there a java code behind?
    I´ve recognized the oracle.dss.* package but i can´t find a api guide or sth. like that on the oracle site...
    Can anyone help me?
    greetz pm

    As far as I know there isn't any detailed guid or help doc. The best you can get is the help doc inside JDeveloper.
    To answer your question, yes its possible to create presentations using java api.
    There are some code fragments inside of the help doc - but its very minimal - you have to find your way through it!!
    For a web app - you could use a combination of bi bean tags (for std. features ) & java API ( for any customaization if neded) .
    EG: Use the presentation tag to build the presentation in a JSP
    And then add some custom java code inside if needed for any customization...
    <%
    Presentation crossTab = (Presentation)pageContext.findAttribute("MyWorkspace_pres1");
    ThinCrosstab thinCrosstab = (ThinCrosstab)crossTab.getView();
    DataDirector dd = thinCrosstab.getModel().getDataDirector();
    DataAccess da = thinCrosstab.getModel().getDataAccess();
    %>
    Good Luck!

  • Viewer is not suited for lengthy reports?

    Dear all,
    I have serious issue with discoverer viewer 9.0.2.53 version.
    I am in need of displaying lengthy worksheet in discoverer viewer,i am using crosstab format.
    my client wants to compare the datapoint value of worksheet with leftside drillup/down and top drill up/down values.
    I want the assumption of "display similar to desktop display of worksheet"..is it possible to have same type of format or alternative one by customizing viewer?
    Plz help me out of this..if viewer does not support this issue i think..its not best suited for report making..
    plz somebody confirm about this issue..its very urgent to proceed further...
    regards
    chandra

    Well you can increase the length of results on a page from 25 (default value I think) to 999 records per page. I havent tried this with crosstab reports, but I would think that would still hold true.
    CC

  • Cannot see data on  totals for a cross tab report

    Hi All,
    I create calculation with Count_Distinct function in crosstab format
    when insert Total in the bottom, the data is not appear in total.
    What is wrong about my report?
    Thank you,
    Mcka

    Is the same problem happening in a 'table' as well as the xtab?
    If so, then have you more than 1 folder being joined in this report?
    Russ

  • Serious issue in discoverer viewer

    Dear all,
    I have serious issue with discoverer viewer 9.0.2.53 version.
    I am in need of displaying lengthy worksheet in discoverer viewer,i am using crosstab format.
    my client wants to compare the datapoint value of worksheet with leftside drillup/down and top drill up/down values.
    I want the assumption of "display similar to desktop display of worksheet"..is it possible to have same type of format or alternative one by customizing viewer?
    Plz help me out of this..if viewer does not support this issue i think..its not best suited for report making..
    plz somebody confirm about this issue..its very urgent to proceed further...
    regards
    chandra

    Already checked that. I don't think the problem is color profile related.
    Besides, when I reset the viewer as described above the colors look perfectly fine.

Maybe you are looking for

  • Reader 9.3 Install fails due to Old, Unused IE version

    I just tried to install Adobe Reader 9.3 (after removing 7.0.1) on Win2K Pro SP4Upd1. I have not used IE for years, but V 5.5 SP2 is still on the machine. Installation unpacked, immediately posted the following message, and terminated: This version o

  • Actions for Sales Order in IC Role

    Hello, We have a requirement for users to be able to create sales orders and e-mail the order confirmation through scheduled actions from the IC Manager role. The action has been configured and is working fine in other roles. However, in the IC role,

  • How to change an ASM single-instance  into a clustered ASM ?

    Hi, I have a node#1 with Oracle10gR2 installed (standard installation, not RAC). Everything is in the ORACLE_HOME. A unique single-instance database DB1 uses ASM#1 to access a diskgroup on a SAN. I'd like to install Clusterware in a separate CRS_HOME

  • EBS 12.0.6 Sale Order Performance Issue.

    We are using EBS 12.0.6 and Database is 10g (10.2.3). We are facing performance issue with "Order management Sale Order Form", When user click on "Line Items" Tab of "Sale Order Form" and In "Main" Tab entring the "Ordered Item" then press tab and en

  • Java.exe return codes - windows

    I have a java application being run from a batch file on WindowsNT4sp6a using Sun's j2se 1.3.0 (build 1.3.0-C) with Java Hotspot (TM) Client VM (build 1.3.0-C, mixed mode) and during the course of running the app (confirmed that it happens at differe