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

Similar Messages

  • Cross tab in Crystal report

    Hi There
    I need to create 3 cross tabs in one crystal report with different condition, how i can do that?
    for example, in one cross tab, i  only want to show last year's information, in another one, i want to show this year's information
    is there a way i can add some condition with the cross tab?
    thanks

    I think what Ian means is....
    Right now you have you cross tab set this way..
                           2008         2009
    Location1         
    Location2
    Location3
    He wants you to switch rows to cloumns and make the Year your first Group.
    Then you'll have
                     Location1       Location2          Location3
    2008
    2009
    This way all your locations show up in your cross-tab.
    Hope this makes sense....

  • How to arrange month in order in cross tab in crystal report

    Hi all,
          we are using cross tab to arranging the data (month wise)  in crystal report. we have month in string format like jan2008. this field is in column of the cross tab. now we need to arrange the month in sorted order. At Present , the month is displayed as april2007, arpil2008, april2009,may 2007, may 2008, may 2009.
      now i want in this order. april 2007, may 2007, april 2008, may 2008, april 2009, may 2009. how to achieve this in crystal report.
    Regards,
    Shanthakumar.

    Try this,
    Create a new formula
    For example, "April 2009" is stored as string in {TABLENAME.FIELDNAME}
    datevalue("1 "&{TABLENAME.FIELDNAME});
    Now you have a date, composed of your year, your Month and 1.
    you can use it to order your data by date.
    If sometimes there is no blank between month and year ("April2009") try this
    local stringvar x;
    x:={TABLENAME.FIELDNAME} ;
    x:=left(x,length(x)-4)&" "&right(x,4);
    x:=replace(x,"  "," ");
    datevalue("1 " & x);
    regards,
    zettels.

  • Inserting a calculated column after every column in cross tab, in crystal report 2011

    HI,
    I want to insert a calculated column after every column i a cross tab . The cross tab shows , sales by region for a number of years , for example from 2007 to 2013. The year can be changed based on the user parameter. How can I do that ?
    Thanks

    Hi Feroz,
    To calculate the Percentage Change and also to show the Percentage sign, here's what you need to do:
    1) Right-click the Calculated Column Header > Calculated Member > Edit ColumnValue Formula and use this code:
    cdate(1890,01,01)
    If the field used as the column is a datetime field, use this:
    cdatetime(1890,01,01,0,0,0)
    2) Right-click one of the zero values in the Percentage Column and select Calculated Member > Edit Calculation formula and use this code:
    if CurrentColumnIndex  = 2 then 
        If GridValueAt(CurrentRowIndex, CurrentColumnIndex-2, CurrentSummaryIndex) = 0 then 
        0 
        else 
         (GridValueAt(CurrentRowIndex, CurrentColumnIndex-1, CurrentSummaryIndex) - GridValueAt(CurrentRowIndex, CurrentColumnIndex-2, CurrentSummaryIndex))/ 
         GridValueAt(CurrentRowIndex, CurrentColumnIndex-2, CurrentSummaryIndex)
         ) * 100 
    else 
        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 
    3) Right-click one of the Values in the summary cells > Format Field > Number tab > Customize > Currency Symbol tab > Click the formula button beside 'Currency Symbol' and use this code:
    If Year(GridRowColumnValue("Date_field")) = 1890 then
    "%" else "$"
    Note: Replace Date_field with the field name you've used as the Column in the Crosstab. The double-quotes ARE required and you should remove any curly braces that CR adds automatically.
    4) You might want to use a similar code in the 'Position' formula too.
    Let me know how this goes.
    -Abhilash

  • Freeze header row panes in cross tab WEB Intelligence report

    how do i freeze the crosstab header row in the WEB INTELLIGENCE report so that the header remains stationary /freezes at the top and the data can be independently scrolled.(similar to freeze panes in MS Excel).
    please provide me with a Quick Solution since i am stuck on this task for quiet some time.

    Hi,
    Prepare to be stuck no longer!
    Sorry, this functionality is not available in webi..
    This suggestion has been made multiple times in the Ideas Place : https://cw.sdn.sap.com/cw/community/ideas/businessanalytics/sbowebi
    for example: https://cw.sdn.sap.com/cw/ideas/1664
    please Vote it up.  actually, i see it is in status "under review" so that is positive. No commitments to timeline for inclusion, so don't hold your breath!
    Regards,
    H

  • Row labels in cross tab

    hi all,
    i have the following cross tab rpt to preparehow can i put row labels like area office,
    area_off     code     name     Sum of sanc      Sum of disb                                                                                                                                                                               
    BANGALORE BO                  BAA0002     C TRIBHUVAN     6840000     6130000     8280000     7270000     19865000     10860699     34985000     24260699                                                                               
    BAA0003     S.LAKSHMI     30105000     20010000     39665000     29460000     35015000     33291688     104785000     82761688                                                                               
    BAC5502     E C DAYANANDA     7484000     9560646     18407000     14143517     25136000     16729159     51027000     40433322                                                                               
    BAC7100     K.M.JAYAKUMAR     6400000     21052688     17725000     9975000     18280000     15459790     42405000     46487478                                                                               
    BAH0002     VASANTH H GUDI     600000     250000     6520000     3866773     3435000     3335000     10555000     7451773                                                                               
    BAH0005     SURENDRAN     0     2635000     1890000     3180000     0     2590000     1890000     8405000                                                                               
    BAH0007     JOHN D J     4350000     3383343     1870000     4390000     7200000     3567160     13420000     11340503                                                                               
    BAH0021     SELVAM HART               844000     0     0     850000     844000     850000                                                                               
    BAH0028     Z R SRINIVAS     16552000     8804106     10014000     18172965     22642000     18291925     49208000     45268996                                                                               
    BAH0042     UDAYA KUMAR HEGDE M.     -1500000     9295000     1170000     2746502     -3500000     4350267     -3830000     16391769                                                                               
    BAH0073     N NAGENDRA KUMAR     17220000     1840817     13880000     11282416     2700000     6806787     33800000     19930020                                                                               
    BAH0078     PUSHPA.V.GUDI     2388000     9343226     2040500     7377020     16300000     6924515     20728500     23644761                                                                               
    BAH0237     USHA K S                         15670000     2275000     15670000     2275000                                                                               
    BAH5003     SHARANAPPA MADINOOR     -205000     2093000     5215000     7310742     -600000     3300000     4410000     12703742                                                                               
    BAH5006     SHIVAREDDY D M     5400000     1854628     100000     6105000     4450000     1810000     9950000     9769628

    Hi
    You can change the display string by right click on the row ->Format field->Common ->Display string.
    Here you can define conditions as per your requirement to display the values you require.
    Also you can write a formula field with all the specifications and use that in row in your cross tab.
    Hope this helps!!
    Regards
    Sourashree

  • Page headers in cross tab report

    Hi,
    I have created addon in SAP B1 2007A PL 46. This includes crystal reports that use .net crystal runtimes.
    One of the reports is crosstab report.
    It is required that each result page of report display a header. When I set it in page header section, it comes up only on the last page.
    Text in Report header comes up on the first page.
    This cross tab report spans multiple pages horizontally.
    Can anybody help me in this.
    Regards
    Trupti Mahurkar

    The page header in this multi page report would be acrossing all pages.  You may edit it to across the whole range to duplicate the first page header manually.  You may set up Preview Start Pages Start with - Fit Page under report option to set them up.
    Thanks,
    Gordon

  • SAP tab in Crystal Reports 2013 issue

    We are using SAP Crystal Reports 2013 SP3 to build reports on BEX queries (BW 7.2). Creating a report via 'File' --> New connection --> BW MDX driver works fine, I can select bex queries & cubes and see the data. However SAP provided tab 'SAP' does not work as expected. When adding a new bex query using SAP--> Create new report from a query, I can see the list of queries and select one but it does not open and throws the following error -
    "An error occurred while generating a new report templete.
    No error"
    Using the "File" option any change to the .rpt file forces BO admin to update "DB logon" information in CMC (currently i cannot save .rpt file directly on enterprise from Crystal client due to some issue)  and we want to avoid this kind of maintainence using SAP authentication provided by using SAP tab, also the Crysal report prompts when run from BI launch pad request for prompt values twice (once for the report and once to pull list of values for each prompt) which can be avoided using SAP tab. I thought access to dev BW server is fine since the "File" tab works fine. Our BASIS team confirmed BOBJ dev servers have access to BW gateway. Am I missing something here, please help me with your experience and ideas to troubleshoot this as the only solution i could google was from a 2012 SAP recommended article to fix reginfo configuration files on SAP server
    I reinstalled Crystal Reports client twice to make sure intallation was not the issue.
    Thanks
    GORO.

    Hi Abhilash,
    Thanks for your response.
    Yes reports are working in CR 2013 designer.
    Getting Alignment and long spaces between the paragraphs issues even though report has properly designed on designer.
    After exporting to pdf getting above errors...
    -Srinivas

  • Need help adding data to Preview Tab of Crystal Report

    Hi!  I'm hoping someone can help me with an issue I'm having with a crystal report I use daily.  I work in accounting and the crystal report i use pulls data for a ton of different general ledger accounts on our system.  However, somehow the crystal report only shows a handful of accounts in the 'preview tab' of my report, which happen to be the accounts I reconcile.  I need to add a few accounts to my report, but no one seems to know how to add new accounts to show up on my preview tab.  I'm thinking there must be some sort of filter in the crystal, version 9.0 or 11.0.  The filter must have been put in place to either only include certain accounts or excluse certain accounts.  Help!  Thanks for your time.

    hi Jeff,
    first we need to determine if you have a full version of crystal reports designer (i.e. crw32.exe) or if you're using a version which is embedded into an accounting application.
    if you're using the latter then you need to contact the company that manufactures the accounting software.
    if you do have a full version of crystal reports then you can go to the Report menu > Selection Formulas > Record and check to see how the record filter is determined. my guess though is that you're using an embedded version.
    -jamie

  • Dashboard for InfoView. Remove "Main Report" Tab from Crystal Report

    When defining a Dashboard for InfoView I would like to be able to display a chart contained in a report without it being in any container. I can remove everything except the Tab Control showing "Main Report". If this cannot be removed then I would like to change "Main Report" to the title of my chart.
    Any suggestions would be appreciated.

    When adding a report onto a Dashboard, there should be the option to display it in Full mode, Compact mode, or Report Part mode.
    Try right-clicking on the Report Part in your report and and see if it gives you the option to select just the chart. I know this option is available in Web Intelligence, but am not certain is Crystal Reports offer the same functionality.
    If you've already selected the Report Part and just have formatting issues, then it should be done on the Crystal Report itself. Make sure that only the chart is included in the part, like Jacquez says.

  • Creating a header for rows/columns in cross-tab with syntax

    Hi,
    The issue is creating strings for rows or columns' headers. How can I create a formula field which contains more than one seperate string. Such as "aaa", "bbb" and "ccc" are headers and they should be in seperate columns. In short, they will behave like characteristics of one of my query's field but they are just headers of the columns.
    ..............aaa...bbb...ccc....
    row1.......x.......x........x.....
    row2.......y.......y........y.....
    Also there is another issue about the formulation again. Is there any operator that does the same job as " \n" which is used in C languages to break the line?
    before:
    aaabbb
    after:
    aaa
    bbb

    Hi Carl;
    Firstly, thanks for answering my question. To explain my problem there are two options ahead(for my first question); first one is writing down the actions step by step, the second one is posting an image file(jpeg etc) to visualize it. I think the first one will be enough. If not tell me
    Step 1- Create a cross-tab and right click and select cross-tab expert.
    Step 2- Click the button "New Formula" and write down any word(such as "Sales") between two -"- sign to make it string.Then save and close.
    Step 3- Drag and drop the created formula to "columns" section and fill the other necessary sections with your database's(such as xtreme.mdb which is famous for crystal users) fields.Don't forget to add another column value to "columns" section, since our formula has no link to database.
    Step 4- Then click OK to save the changes and lets preview the cross-tab.The result will have one top column and his child or children(that depends on your data). And this top column is behaving like a header not a field.
    Now turn the second step but write down a formula for 2 columns or more.For exmple "Sales" and "Profit".So the result will have 2 top columns and their child/children.
    My question is "what is the formula for 2 or more columns?"
    Also I couldn't get the answer for my second question. What is the meaning of expressions "\c" and ChrW(13)?
    Edited by: diabolus on Oct 30, 2009 9:39 AM

  • How to design customize Cross tab in Crystal 9

    hi guys,
                i'm having a big problem in designing this format in cross tab, coz it causes a lot of space that i wouldnt need in displaying the report in my application here's i want to show on my report,
    this is just a sample data, but this is supposed the designed, or the output in crystal cross tab
                                        SM                           gl orieta                        buyer            and soon.....   
                             sales     TX    PX      sales      TX     PX          sales   TX    PX
    Mar-1 Mon        1000      1        1       200        2         3            400     4      5
    Mar-2 Tue           200      10      11     300        4         8             220    5      8
    Mar-31 Sun
    Running Total     1200                           500                               620
    Discount              200                            300                               400
    Net sales            2000                           3000                             5000
    Quota                 100000                        1200000                      250000
    TX                        11                                   6                                9   
    PX                         12                                   11                            13
    the upper is the name of the stores which supposed to be dynamic, each store have 3 column which are the sales,TX and PX, on the left side is date which is my parameter is filtering sales by date, under the last date of the month is the running total followed by discount, net sales and soon.. Now my problem is how i'm going to design it in cross tab format in crystal report 9..any suggestion or other way to do it...

    Please re-post if this is still an issue

  • Data binding cross tab in Crystal 2008 with Xcelsius swf file

    I've created a visualisation in Xcelsius and want to bind it to a cross tab in CR2008.   The labels appear correctly in the swf visualisation but I get no data.   The format of the table in Xcelsius and the cross tab I believe to be the same, covering data formats.   I have placed the Xcelsius visualisation in page header "a" with the cross tab in page header "b".   The Xcelsius table has been defined in terms of column and row headers as well as data area, so I've done everything that I understand to be correct.   In CR2008 I have specified that I use the existing named cross tab.
    Does anyone have any idea what I may have missed.
    tia
    Neil

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

  • Performance in the Server with the created report - Crystal Report 2008

    Hi
          We have developed a complex report and deployed in the server. It takes more time to process and once if the report created and we are trying to expand a group/navigate different pages, the same time delay is happeneing. Sometimes it takes more than a minute which really kills the performance. My client has accepted the delay while the report is being genrated but  they raise question like why it takes too much time just to display the created report.
      I tried keeping the created report in Session and rebind on page_load as well stored a copy on the server and rebind whenver postback happens. Both methods working simliar and no improvement the in the performance. Is there any way to kill the time delay in this.( we have an idea like , if we store the created report  at client machine and whenever postback happens just bind from client machine instead to hit the server back, Is this achievable)
    Any Help would helpful to me
    Thanks

    Hi
    What version of CR are you using?
         Crystal report 2008, I think its in subject of this thread itself. (Version 12.0.0.683)
    What if any CR SP have you applied?
        No
    What version of .NET are you using?
      .Net 3.5 using C# technology (.Net framework 3.5)
    What database are you using?
        SQL Server2008
    What connection type are you using?
       We have created a Stored Procedure and connected the SP to the crystal report.
    What are you comparing the performance to? E.g.; is it faster somewhere else? How much faster?
        No, we didnt compare anywhere. but my question is to avoid the delay in navigation of pages or selecting an item in the group tree. The report contains 100+ pages and client is accepting delay while creating the report but not during navigation or selection( why do the already created report takes more time(even in minutes) to render on navigation or selection and how to avoid the delay))
    Define "complex report ".
    Nothing complexity in the report even we have used oly less formulas(less than 5) but chats are included and used for each group( we have 6 groups in the report)
    Thanks

  • Problem in Printing and Reporting Crystal Report

    Hai,
    I'm Using VS2010 and SQL Server.
    The below code is I have used in my page for Crystal report
    protected void Page_Load(object sender, EventArgs e)
    //Here I retrieve User Name from another page using session
            lblUserName.Text = Session["empName"].ToString();
        protected void btnReport_Click(object sender, EventArgs e)
            ReportDocument rdoc = new ReportDocument();
            SqlConnection con = new SqlConnection("Data Source=SERVICETEAM-PC;Initial Catalog=salaryReg;User ID=sa;Password=kavi");
            con.Open();
            SqlCommand cmd = new SqlCommand("SalaryEarnings1", con);
            cmd.CommandType = CommandType.StoredProcedure;
            SqlDataAdapter da = new SqlDataAdapter(cmd);
            DataTable dt = new DataTable();
            da.Fill(dt);
            rdoc.Load(Server.MapPath("CrystalReport.rpt"));
            rdoc.SetDataSource(dt);
            rdoc.SetParameterValue("empName", lblUserName.Text);
            CrystalReportViewer1.ReportSource = rdoc;
            CrystalReportViewer1.DataBind();
            con.Close();
    this is the code I've used to generate crystal report in one of my asp.net web site under button click event. This create report without any errors but after that when
    i click print button on crystal report tool bar print function is not working and when try to do Exporting the report it asks for further details by giving a window like this
    The report you requested requires further information.
    DataSet
    Server name: ...........
    Database name: .........
    User name: ..........
    Password: ...........
    (checkbox) Use Integrated Security 

    Please post questions related to using Crystal Reports on their
    forums.

Maybe you are looking for

  • What's wrong with my feed - episode 2 !

    Hi, I thought it was fixed but it still persists ... I don't understand what's wrong with my feed : http://www.dailyfrenchpod.com/wordpress/feed With iTunes 7 : - my page on iTunes shows all my episodes (and you can download each episode, one by one)

  • What is feed.xml and why does it open as PBEM Game File in iweb?

    When going through files in my web site I came across a .xml file, being not very computer savvy I don't know where this came from, if it's necessary, can I delete it or is it opening in a wrong program? Why is a game file attached to my web site?

  • Exports From Audition CC Give "Header Error" in Premiere Pro CS6

    Hello, I have finished the audio mixing on a 15 track project in Audition CC. It is very heavy so I had to export all the tracks separately to import them back into the Premiere Pro CS6 movie project. That way I could also do further adjustments in i

  • Want to add Custom text after Product Branding Image for application

    Hi Can we add any text after Product Branding Image for application By default it will show the responsibility function name My requirement is after company logo I want to add Text at the top of application with center align Need suggestions Regards

  • PDF printer securty options?

    Is there a pdf printer that can create a pdf with reader rights already extended? this way i dont have to open all the pdf's that i print in acrobat after i make them.