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

Similar Messages

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

  • Creating a header for a .CSV file

    Hi,
    I have looked through the forums and cannot find a solution for creating a header for a csv file.  I am using Labview 8.2.  I want a label for each column at the top of the file and then I will append new rows to the file as the data is collected.  An example of what I am looking for is attached.
    It would also be nice to have the labels descending in the first column, pretty much a transposed version of what was described above. 
    Thanks,
    Gary 
    Solved!
    Go to Solution.
    Attachments:
    exampleLOG.csv ‏1 KB

    Thank you very much.  That worked well. 
    If i wanted to transpose the data how would I do that?  I can get the header to be vertical, but I cant get the data to append to the 2nd column , and then the third and so on with the data descending from top to bottom.  I attached an example of what I might want the file to look like. Each column would be added one at a time.
    Attachments:
    data3.csv ‏1 KB

  • JTable - One Column Heading for Two Columns

    Can you adjust the default JTable to have one column heading for two columns of data? Is there a simple span command? I've looked at the api for JTable and JTableHeader and didn't see anything, is there something I'm missing? Any help would be appreciated.

    What i am trying to accomplish is have column 'E' span 2 columns.
    This is my code thus far, however it give the error from my pryor message. I am pretty sure it is because I'm using and Object[][] and a String[] instead of Vectors. What corrections do I need to make in order for my goal of:
    [ A ][ B ][ C ][ D ][ E  ][ F ][ G ]
    [ 1 ][ 2 ][ 3 ][ 4 ][5][6][ 7 ][ 8 ]
    Object[][] data = new Object[ROWS][COLUMNS];
    String[] columnNames = {"A","B","C","D","E","E","F","G"};
    table = new JTable(data, columnNames);
    table.setBackground(Color.white);
    table.addKeyListener(this);
    DefaultTableCellRenderer d = new DefaultTableCellRenderer();
    d.setHorizontalAlignment(JLabel.CENTER);
    table.setDefaultRenderer(table.getColumnClass(0),d);
    for (int i = 0; i < table.getColumnCount(); i++){
    TableColumn aColumn = header.getColumnModel().getColumn(i);
    TableCellRenderer renderer = aColumn.getHeaderRenderer();
    if (renderer == null) {
    renderer = new DefaultTableCellRenderer(){
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column){
    JTableHeader header = table.getTableHeader();
    if (header != null) {
    setForeground(header.getForeground());
    setBackground(header.getBackground());
    setFont(header.getFont());
    setHorizontalAlignment(JLabel.CENTER);
    setText((value == null) ? "" : value.toString());
    setBorder(UIManager.getBorder("TableHeader.cellBorder"));
    return this;
    aColumn.setHeaderRenderer(renderer);

  • How to boldface the header for ONE column

    hi,
    I want to know how to boldface the header for ONE column. The following will boldface the header for all the columns in the table
    table.getTableHeader().setFont(new java.awt.Font("Dialog", 1, 12));
    Thanks.
    Jrabi

    jtable.getColumnModel().getColumn( indexOfBoldColumn ).setHeaderRenderer( TableCellRenderer aRenderer )

  • Header for each column of data

    I am struggling to get header for each column in attached code. I would like to see this data in excel with header at the top. Also I wonder how to know which column belongs to which plot and which axis.
    Solved!
    Go to Solution.
    Attachments:
    saving for excel.vi ‏130 KB

    I would keep this in the original thread.

  • Single heading for Multiple columns in ALV

    Hi Experts,
          I need to display a common column heading for multiple columns in my ALV Grid Display output. I am giving the sample output here.
    MATNR...WERKS..| Unrestricted Stock|....|Stock in transfer        |....|Stock in Quality|.
    ............................| CAT | SAP  | Differe| .. |  CAT   |  SAP  | Diff   | .. | CAT   |  SAP  | Diff  |
    As I shown above, for 3 columns CAT, SAP, and for Difference, I need to get "Unrestricted Stock" as column heading... and so on...
    Pl. suggest me on this.
    Thanks in Advance
    Ramakrishna

    Hello Ramki,
    NOT POSSIBLE IN ALV AT ALL :-((
    You have to use classical report using WRITE stmts for this.
    If your client does not want to lose ALV functionalities, then you can try something like.
    Unrestricted Stock-SAP | Unrestricted Stock-CRM | Unrestricted Stock-Diff. Stock ... and so on !!!
    BR,
    Suhas
    Edited by: Suhas Saha on Jan 21, 2009 3:00 PM

  • Add ratio column in Cross Tab

    Hi Expert!
    I am young of Crystal Report. I have some problems with using cross tab report.
    Rows: hour/Floor, Columns: Floor,  Summarized Field: Sales
    I want to show the result as below:
    hour/Floor_____________ Floor1___________Floor2__________Total________Ratio
    7h-10h     _____________ $500 ___________ $1000 __________$ 1500______75%
    10h-13h_______________$200 ___________$300___________$500________ 25%
    Total__________________$700___________$1300__________ $2000________100%
    I want to add  Ratio to show on the right after Total Column.
    Can I do like this or not? Or Is there another way to do that with the same result?
    Regards,

    This post looks remarkedly like [Add Column to Cross-tab in Crystal Report|Add Column to Cross-tab in Crystal Report;
    Please see it for my replies.
    Debi

  • Limiting Columns in Cross Tab reports

    Plz tell me how to limit columns in Cross Tab.I have many columns which go on and even are not visible for Scroll and neither in another page
    Plz help.

    Check if http://winrichman.blogspot.com/2009/05/cross-tab-by-limiting-number-of-colums.html is helpful

  • Column dissappeared in Cross tab with specific order

    Hi experts,
    I have a cross tab, with 2 columns from YEAR (2009, and 2010). Then I created a other column with the differences of both columns before, I changed the SPECIFIC ORDER and the 3th column is DISAPPEARED!!!
    I dont understand why!!
    thank you very much

    At the beggining i have the following columns:
    2009 2010 Desviation
    I created this with specifciar order.
    Then, I want to change the order and I put :
    2008 2009
    but the desviation is disappearing.
    thank u

  • How to Display Gap between Column in cross tab

    Hi,
    I have a requirement. I have a cross tab with 4 measures M1, M2, M3, M4. I need to have space between M1 and M2 and M3 and M4.
    My layout should be like this
    M1 M2 M3 M4
    Is this possible in OBIEE ?
    Thanks and Regards,
    Krishna Prasad

    krishna_36 wrote:
    Hi,
    I have a requirement. I have a cross tab with 4 measures M1, M2, M3, M4. I need to have space between M1 and M2 and M3 and M4.
    My layout should be like this
    M1 M2 M3 M4
    Is this possible in OBIEE ?
    Thanks and Regards,
    Krishna PrasadIf you want a column padding (i.e., actual blank columns that separate your measures), then create dummy columns between the measures.
    1) Click any column and in the fx enter CASE WHEN 1=0 THEN tablename.column_name END
    This will create a blank column.
    2) Put this in your pivot table, make 3 duplicate layers, and place them in between the 4 measure columns.
    In effect, you will have the spaces which you can format to highlight the buffer columns.

  • SAP Web Intelligence -Comparing subsequent columns in cross tab

    Hello,
    I am new in SAP web intelligence , I need formula (Not a SQL Query) to find difference of values between subsequent columns in cross tab. Please find attached excel for more details
    Thanks & Regards

    Try something like in below screenshot-
    Craete variable
    Diff Amount2=Previous([Amount2])-[Amount2]
    ~Anuj

  • 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

  • Cross Tab with Calculated Member Fails in BO Enterprise

    Hello,
    I have a report (Crystal Reports 2008)  that I created using a cross tab, with a calculated member field. This report runs fine on my desktop, but fails when published to Crystal Enterprise (Server 2008).
    When scheduled, the instance history states Crystal Reports: Print Engine Error
    When I remove the calculated member from the cross tab, it runs fine.
    Has anyone come across this and if so, how did you resolve it? I believe this is a brand new feature in Crystal Reports 2008 - is it not supposed within Enterprise?
    Thank you for your assistance.

    Root Cause: I had built my report in Crystal Reports 2008 on the latest Service Pack/Fix Packs (which addressed the issue of calculated member). My Crystal Reports SERVER 2008 was on a lower version.
    I opened a message with SAP support and they were unable to tell me how to apply service packs to my Server. They then pretty much abandoned my question, so below is what I came up with on my own to fix the issue.
    There are no specific service packs/ hot fixes for Crystal Reports SERVER 2008, so I had to:
    1) install Crystal Reports V0 on my CRS 2008 machine
    2)Install all Service Pack/Fix Packs available for Crystal Reports 2008 (even SP1, even though all SAP documentation tells you not to do this, it is required before you can install SP2)
    3) Reboot Server
    If you do the same thing as me, just a warning that installing the Crystal Reports SPs will break InfoView/CMC until you apply them all and re-boot.

  • Convert cross tab with 2 summarized fields to a chart

    Greetings,
    I have a simple cross tab containing a date row and 2 summarized fields. It looks like this (see Figure 1)
    When I convert (insert) my cross tab into a stacked bar chart, I only get one of the summarized fields to show up on the chart. It looks like this (Figure 2)
    Is there a way for me convert this cross tab into a stacked chart so that both of my summary fields appear?
    Many Thanks!

    OK... Thank you.
    I was using the cross tab  in hopes of controlling graph labels for months (Customize Group Name field) . What I was doing was converting dates to month verbiage (Sep, Oct, Nov, etc) so that the month verbiage would appear on my graphs instead of the numbers while still maintaining proper calendar order . (thanks for showing me this technique by the way as it works great). Too bad it does not work when there is more than one summary field (thanks for explaining its limitations... I had not told you that I was adding a second summary field).
    Given that I have 1 row ( Date_discharge) that I need to display as months (verbiage) in calendar order
    and
    Given that there are 2 summary fields: Vaccine Indicator (a sum) and Birth_date_Baby (a count) ...
    (I am contrasting # of vaccine's given against total babies per month in a monthly stacked bar chart)
    Is there a way to display 2 summary fields on a stacked bar graph grouped by month (where the month is listed in alpha format, (Sep, Oct, Nov, etc.) but still sorted by its calendar value? My initial attempts to do this in a graph (without a cross-tab) would display the month verbiage just fine, but it would order my months alphabetically.
    Thanks again for your suggestions!

Maybe you are looking for

  • ECC 6.0  Mogration monitor

    Hi, i am installing ECC 6.0 SR2, i am getting the following error, as i have updated java from 14 to 20 version and after rebooting im getting the following error. ERROR 2009-04-07 21:06:18 CJS-00030  Assertion failed: in function AbapSystemCopy_runI

  • Air Play on Windows XP Media Center 5.1

    I installed AirExpress on a PC with Win XP Media Center 5.1 and use it receive sound waves on the Airexpress connected to my home WiFi. At this time I can only send sound from Itunes by selecting the Airport Speakers option in the lower right corner

  • BB z10 won't start up after updating to bb link

    I accidentally dropped my phone on the floor, and it won't start up. here are the following steps that i already did: 1. I already tried to update it on the bb link, after successfully updating i remove the usb cable, however  it didn't start up. eve

  • Suppress Output for Closed PO

    Hi, actuallly the requirement suppress out put for closed po. when delivery completed and final invoice indicator is  checked the output shouldnt take place. po out put should be suppress. The following fields needs to be cleared to suppress PO outpu

  • What can I safely remove from main Library

    Hi there, My MacBook Pro has a SSD drive which is almost full. I use it for music (Logic Pro) images (Aperture) and movies (FCP) I want to know what items I can safely delete from the main Libraries to free up disc space Thanks Sam