SAP Crystal Report - Formula in Cross Tab Report

I have a below requirement in a cross tab report,
Category          Name          Valu1          Value2    %ge
A                       Car               40                  50        80
A                        Bike             30                  60        50
Total                                       70               110     63.6
%ge is a formula field and is calculated as value1/value2 * 100
Consider the Total section as a group footer.
In the cross tab report how do I put the formula field for %ge in Total section.

Vishujain
Crosstabs are very structured and you are limited in what you can do with them. You can do a percentage summary in Crosstabs, but only as a percentage of the row total or the percentage of the column total. You cannot put a formula in the crosstab to do a percentage of a values in seperate rows. Any time I need to perform a function not available in a crosstab, I do a manual cross tab. Look at: [Manual Crosstab Explaination|Re: Formulas : Help for coding]
Debi
Edited by: Debi Herbert on Nov 3, 2011 11:51 AM

Similar Messages

  • User-Defined Alphanumeric field not showing in Crystal Cross-Tab Reports

    Hi  All,
    We are facing the given below issue in crystal reports :
    In Crystal Cross-tab reports User defined fields with alphanumeric datatype are not displaying where as User defined Fields created with Numeric datatype are displayed and SAP fields for eg; Item name which are AlphaNumeric datatype are showing up.Can any body help us on this?
    Regards
      Uma

    Hi Uma,
    You may check these first:
    Re: Problem after upgrding to SAP B1 8,81 PL07
    Re: Crystal not displaying  UDF
    Re: UDF not visible in crystal report
    Thanks,
    Gordon

  • Crystal Report Cross Tab Report

    In crystal report 2008, i created a cross tab report. Column shows sales order number and rows show item number.
    For columns that shows sales order #, I also wanted to show sales person name field right beside it. In cross tab expert, I added the field salesperson name.
    However, crystal cross tab shows the sales person at a separate column with duplicate information. I only want to show sales order no. with sales person name under one column. Is there a way to achieve this? Thanks.

    This would be a hard job.
    Have you tried Pivot Table function in Excel? You can play with it and get some ideas.
    Thanks,
    Gordon

  • Row Headers in Cross Tab Report -Crystal Report XI

    I am trying to create a cross tab report. The report has 4 rows and the columns get generated based on the value of a database field.
    I have 2 questions
    Question 1 : I want the rows to have headers. I insert text objects in the report and when I run the report in crystal, the headers are displaying as required. But when I export to excel, the headers are displayed after the data. How can I create row headers and get them exported to excel as row headers.
    Question 2: I am creating the column based on a database field. The field is of text data type. The sorting for this filed is 1. abc ,10. abc , 11.abc , 2.abc , 3.abc ; etc where abc is a text string. How can I sort the columns so that the columns appear as 1.abc, 2.abc, 3.abc etc.
    I tried using the specified order sorting, but when I check the list of values that it creates to select the values, it is truncating the values. I can only see part of the values from the database.
    Please Help!!!

    I don't have Crystal in front of me so I will try to do this from memory.  If you right click on a report object, there is option on one of the tabs (I think it is General) that says Display String with a corresponding X button.  If you click on that, then you can enter a text expression that overrides the actual value of the report object.
    In your case, if you want to add a static header text to the row data, you could try something like the following:
    if Gender = "M"
         then "Mr. " + CurrentFieldValue
         else "Ms. " + CurrentFieldValue
    where Gender is a field object in the report and CurrentFieldValue is the data object specified for rows in the cross-tab.
    If you wanted to put header on the previous line, you could try something like this:
    "Account ID" + chr(13) + CurrentFieldValue
    where CurrentFieldValue is the account ID string.
    Fuskie
    Who expects this looks nothing like your actual report but hopefully it works as an example...

  • 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 make cross Tab report for SAP B1

    Hello and Hi
    i trying to make cross tab report for SAP B1 but test column not appera in
    File >>New >>Cross Tab Report  start cross tab report creation wizard select database name and table
    but only numeric columns appear in available column fields , how will appearall fields including test fields..

    i got solution
    thanks google
    memo type field will not apper in list .use bellow  statment to convert in interger or char type
    convert(int,U_Dist_Sr_No) AS Dist_Sr,            CAST(U_Dist_Name AS varchar(250)) AS Dist_Name,

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

  • Help with formatting for Cross Tab Report Crystal 2008

    This is probably a simple question.  I have a cross tab report that displays sales by month for a period of 6 months.  These sales columns are formatted to be numbers with no decimals.  In addition to these columns, I have inserted columns that display the percentage up/down in sales over the previous month.  If I try to format the percentage columns, it changes every column to then display "##,##.##%" when I need to keep the sales columns at "##,###" with no decimal or percentage sign.
    1.  Is there a way to change the formatting of some of the columns but not all in a cross tab report?
    2.  If not, can I add a function that would change these in the calculation formula of the calculated member? 
    I tried to add "%" but it wants it to return a number.
    Here is the current code:
    //The calculation formula is used in place of the summaries in Calculated Members.
    // This calculation formula must return a/an Number value.
    If GridValueAt (CurrentRowIndex,CurrentColumnIndex-3,CurrentSummaryIndex) = 0 then 0 else
    ((GridValueAt (CurrentRowIndex,CurrentColumnIndex-1,CurrentSummaryIndex) -
    GridValueAt (CurrentRowIndex,CurrentColumnIndex-3,CurrentSummaryIndex)) /
    GridValueAt (CurrentRowIndex,CurrentColumnIndex-3,CurrentSummaryIndex)) * 100
    Any help is appreciated. 
    Thank you,
    Tobi

    Carl,
    Thank you for your help.  I did try your method but still couldn't get it to ignore the fact that it wanted a number.  I changed my approach a litte and managed to solve the problem.  Here is the method that I chose which managed to solve the problem.  If this is a poor way to solve it, please let me know as I am always open for new ways.
    Format Field > Number Tab > Customize > Currency  Symbol Tab
    Checked Enable Currency Symbol Fixed, changed  currency symbol to %.  This is the same thing that I did before which changes it for all columns. 
    Beside Enable Currency checkbox, I added this formula:
    // This conditional formatting formula must return one of the following Currency Symbol Constants:
    // crNoCurrencySymbol
    // crFixedCurrencySymbol
    // crFloatingCurrencySymbol
    If GridRowColumnValue("InvoiceLine.TxnDate") = Date(0,0,0) then
        crFixedCurrencySymbol  
    else
        crNoCurrencySymbol
    My added columns have a null date field so they take the currency format.  My other columns do not so they do not take the formatting.
    Thanks again for the help.
    Tobi
    Edited by: Tobi@TABeverage on Dec 2, 2009 3:58 PM

  • How to create cross tab reports in SAP-MII

    how to create cross tab reports in SAP-MII

    Hi,
    What do you mean by cross-tab reports? Pls elaborate.
    MII Transaction has an action block named 'crosstab' that is used to calculate subtotals of data columns.
    http://wbhelp.sap.com/manufacturing/xmii_120/en/44/749ea81627053ce10000000a1553f6/content.htm
    Is this what, you are looking for?
    Best Regards,
    Kedar
    Edited by: Kedar Shewalkar on Jan 11, 2011 10:40 AM

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

  • Crystal Reports Cross-Tab Report not showing all available fields

    I am running CR2008 against MS SQL Express.  I have several tables with fields and data in them and can create standard reports to show all the data in all the fields.  However, when I try to create a cross-tab report, only some of the fields appear for me to choose from.
    I created a standard report with all the fields I needed in my cross-tab report and ran a preview.  Everything was there.  I then added a cross-tab object, selected the tables only to find that fields that are in the main report are not showing up for selection in the cross-tab.

    UPDATE:  I exported the entire database from MS SQLExpress to MS Access and I am having the same issues, so it does not appear to be a problem with the database engine and, since the standard tabular reports show the fields, I am at a loss as to why they don't show up in the cross-tab or the Parameter fields.
    I am creating the cross-tab through the Cross-Tab wizard.  Is there maybe a bug in that?  Is there a way to create it otherwise?

  • 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

  • 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

  • Percent in Cross-Tab report

    Post Author: merv
    CA Forum: General
      I created a cross-tab report with 2 column (col1 & col 2).  Is it possible for crystal to calculate the percent of  (col2/col1) in a new col.
    col 1
    col 2
    col 3 (col 2/col 1)
    A
    500
    450
    90%
    B
    60
    20
    33%
    C
    75
    70
    93%
    D
    66
    63
    95%
    E
    99
    21
    21%
    F
    25
    15
    60%

    Post Author: V361
    CA Forum: General
    Open Cross Tab Expert, near the bottom left you can select new formula, in there You can create a formula and add it to the cross-tab summarized fields.
    ( /)*100

  • Cross Tab Report

    Hi,
    I'm creating a report in Crystal 2008 for SAP Business One. This report is a sales report and i want to pull the data  from three tables namely Invoice Rows, Credit Memo Rows and Down Payment Invoice Rows. Other selections in the report include the Posting Periods table, Items Group Table and the Items Master Data table.
    I'm considering a cross tab report displaying the Items Group on the Row level and the Posting Periods on the columns with Sum of row totals for item groups per items on invoice,credit memo or down payment.
    I need help regarding the kind of joining is needed to ensure that i get a correct and good report showing total sales made for item groups per period. Thus, total sales = Invoice+Downpayment - Credit Memo
    Thanks.
    John

    You can also user OJDT as the base and left join it to the Invoice, Credit note and Downpayment tables by linking DocEntry and the object tpye.
    With this option, you need to use IF statement to read information based on object type.
    Using command as suggested is simpler.  However, my preference is to use command alone. 
    Linking Command with Tables seems to have slower performance.

Maybe you are looking for

  • IMac G4 Booting Problem

    After 6 years of trouble-free service, my iMac (17" G4, 1.25 Ghz) won't boot past the gray screen with the apple and the spinning ball. It was running on 10.5.8. I've tried everything I could find in the Apple troubleshooting articles, including rese

  • Where can I hire Office developers for projects?

    Hi all, Apologies if this is not a technical question, but I could not find other forums that would fit better. I'm looking for a Words 2013 developer who could implement, against payment, a proof of concept version of an app. Where can I find potent

  • Apple support application is not found so can't access Itunes

    Apple support application is not found so can't access Itunes

  • Trash, Sent mail, and Junk mail folders do not work

    I just switched from my entourage email to mac's mail, and I noticed some problems that I cannot seem to figure out. I amm using IMAP based email, and had none of these problems on entourage, but I like the format of mail better, so i hope to get thi

  • ISight and FaceTime camera resolutions

    I have a black MacBook and I use the built in iSight camera (because I can not get the PartyBoothApp.com software to recognize any other webcam) and I have gotten fairly low quality photos. Is the FaceTime camera on the new Air any higher resolution?