Cross Tab Column Header and Embedded or Calculated Member

Hello All
I am needing some help with a Cross Tab in CR2008.
My Cross Tab look as follows:
Rows______________Columns
......................................Fiscal Year
Account Number...........Summarized Field (Value Field)
The report spans three Fiscal Years but not all accounts have three Fiscal Years worth of data so some Cross tabs start 2009, 2008, 2007, Some report 2008 and 2007, Some just 2007 (and other variations). To get my cross tab working correctly I need to create a formula that get the CurrentColumnIndex based upon the Fiscal Year. e.g. If columnd header = 2009 column index = 0.
Can anyone advise how I would go about this?
Thanks
Phillip

Phillip, go to your data source, and see if you can add a new connection,
one of those options should be (Command)
if you can add a Command, then you can put the SQL in the command section.
You will need to add the Command as a data source, and remove the old
data source once the command is added, you will be able to edit it if needed.

Similar Messages

  • Cross-tab row header

    i use the display string conditional formula on cross-tab row header. but it ends up every row has the same value.
    how can i solve this? is that possible to do it in crystal report?
    thanks,

    Hi,
    could you please make it more clear what exactly u want to display and what is the problem that u r facing in doing the same.
    Regards,
    Misra p.

  • Download internal table data into excel sheet with column heading and data

    Hi,
      I am having one internal table with column headings and other table with data.
    i want to download the data with these tables into an excel sheet.
    It should ask the user for file name to save it on their own name. They should give the file name in runtime and it should be downloaded into an excel sheet.
    Can anyone tell what is the right function module for downloading these two internal table data with column heading and data.
    what we have to do for storing the file name in runtime.
    Can anyone help me on this.
    Thanks,
    Rose.

    Hi Camila,
        Try this
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME                        = PATH2
       FILETYPE                        = 'XLS'
      TABLES
        DATA_TAB                        = IT_DATA
       FIELDNAMES                      = IT_HEADINGS
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22

  • Changing the Column Header and Hiding the Column dynamically???

    Hi friends..
    I'm new to OBIEE field. I'm working in a OBIEE project that requires to dynamically change the column header, and dynamically hide the column depending on the prompt value.
    I know we can dynamically change the table header using the presentation variable but I couldn't do that same thing with column header.
    I searched some forums that suggest to use java script for this purpose but I'm not able to do the same also. If anyone had same issue before please help.

    toony, I'm not sure it's possible to do all that you want exactly the way you want, but here are some ideas you can pursue.
    To dynamically change column headers without javascript, check this blog out...
    http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
    As far as dynamically hiding a column, I don't think you can do this, but since you don't provide any details on how the PV is supposed to hide a column based on the value, are you talking about hiding a column for one PV value and another (different) column for a different PV value? Or are you talking about hiding one column when a PV has certain values and displaying it when the PV has a different set of values?
    I have managed to create both scenarios via a work-around, but the procedures require some writing so I don't want to put both. Please detail how you want your PV to "hide" a column or columns.
    P.S. I don't think column selectors will do the trick for you. Basically column selectors work like this: Say you have a report using Sales Region ID, Region Name, and Sales. Now let's say you want the user to choose if he/she wants to see annual sales, or quarter sales or weekly sales, etc. The column selector view would allow you to put the various columns (Year Sales, Quarter Sales, Weekly Sales) as an option the user can select. Once selected, the sales figure will change for the time period selected. For an example of how this is done, check out the section in this "Oracle by Example" link.
    Waited too long to publish this... Madan beat me to it, so there is some overlap here...
    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/saw/saw.html
    Edited by: LC143 on Oct 27, 2008 9:21 AM

  • Disabling partner data tab at header and item.

    25.11.2008
    Hi friends,
    Is there any user exit to disable 4 out of the 5 partners in the partner functions tab at header and item level as my requirement is not to allow the user to change the partner functions SP, SH,BP,PY. I cant use SHD0 or  use the not-changeable  function in VOPA hence the need for user exit.  
    Please suggest.
    Regards,
    Udaynath

    Dear Udaynath,
    try with:
    Path: SPRO --> IMG --> Sales and Distribution --> Basic Functions --> Partner Determination --> Set up Partner Determination
    Choose Activity: Set Up Partner Determination for Sales Document Header
    Select Partner: TA, and click: Partner Function in Procedure
    Give Work Area as, say TA and WE (or SH).
    Now, in next screen, click Box: N, to avoid changes in Sales Doc. i.e. Sales Order.
    Similary, maintain for Bill-to-Party and Payer.
    User won't be able to make changes in Partner Fucton in Sales Doc.
    Best Regards,
    Amit

  • How to avoid/hide column header and ---- in sql command output

    Dear Friends,
    I have a script to get the list and delete datafiles
    script is : (del.sql)
    spool d:\del.bat
    select 'rm -r '||name from v$datafile;
    spool off;
    script output (del.bat)
    'RM-R'||NAME
    rm -r C:\ORACLE10GDB\ORADATA\TEST\SYSTEM01.DBF
    rm -r C:\ORACLE10GDB\ORADATA\TEST\UNDOTBS01.DBF
    rm -r C:\ORACLE10GDB\ORADATA\TEST\SYSAUX01.DBF
    rm -r C:\ORACLE10GDB\ORADATA\TEST\USERS01.DBF
    I don't want to have the column header and ---- which is present before the rm -r commands in my output spool file (del.bat)
    how can i do it?Please suggest
    Regards,
    DB

    I have a script to get the list and delete datafiles Yikes, what are you doing here?
    Can you use rm on Windows?

  • Cross-Tab - conditional suppression and formatting

    I have a cross-tab report of "widgets" sold. There are $10 widgets, $20 widgets, and $50 widgets. All widgets will always cost some round dollar amount, never anything like $10.99. My report shows weekly, month-to-date, and year-to-date sales for each widget denomination by both count and total amount by state. For example:
                                   $10                          $20                              $50
         count     amount       count       amount         count       amount
    New York
           Week        5             $50           4                 $80             1               $50
            MTD
            YTD
    Delaware         1              $10
    etc.
    I also have totals by row, along with mark-up amounts (11% of gross sales amounts) and net sales (gross - mark-up). These last 3 columns are included in my dataset, not calculated in the cross-tab.
    My problem is that I can't figure out how to do 2 things:
    1.  the count columns for mark-up and net will always be blank, so I want to suppress the "count" column header
    2. I want to display the dollar amounts for those 2 columns with 2 decimal places, but the other amounts with no decimals.
    Can this be done, and if so, how?
    Thanks!
    Phil

    Hi Phil,
    I also found the following information under Cross-tab Help for suppressing rows or columns.  I hope this is what you're looking for.  Sylvie
    To suppress empty rows and columns
    Right-click the blank top-left area of the Cross-Tab and select Cross-Tab Expert from the shortcut menu.
    The Cross-Tab Expert appears.
    Click the Customize Style tab.
    Select either the Suppress Empty Rows or Suppress Empty Columns check box.
    Click OK.
    Now, when you print the report, empty rows and/or columns will not appear.
    To suppress row and column grand totals
    Right-click the blank top-left area of the Cross-Tab and select Cross-Tab Expert from the shortcut menu.
    The Cross-Tab Expert appears.
    Click the Customize Style tab.
    Select either the Suppress Row Grand Totals or Suppress Column Grand Totals check boxes.
    Click OK.
    To suppress subtotals and their labels
    If you have more than two groups in your Cross-Tab you can suppress the subtotal and label for one of them.
    Right-click the blank top-left area of the Cross-Tab and select Cross-Tab Expert from the shortcut menu.
    The Cross-Tab Expert appears.
    Click the Customize Style tab.
    Click the field whose subtotal you want to suppress.
    The Suppress Subtotal and the Suppress Label check boxes become active.
    In the Group Options area, select the Suppress Subtotal check box.
    Click the Suppress Label check box to suppress the label associated with subtotal.
    Click OK.

  • Cross tab column headers display on all pages

    I made a Crystal Report with a cross tab which displays all details. In the cross tab I have 6 columns with details about the data displayed in the last 2 columns. The headers of these columns are only displayed on the first page but not on other pages. How can I add column headers to all pages? Thank you.

    Column headings should be repeated automatically, row headings can be repeated by
    1.right-clicking on the row header
    2. select Row options
    3. .select Repeat Labels on Page break
    or, when I just reviewed it in the help section it says:
    "When you create a Cross-Tab that is wider or longer than the specified page size, the program automatically spans the printing across enough pages to accommodate the size of the Cross-Tab. In the Preview tab, a line will appear at each page break. For ease in reading, column headings will be repeated on subsequent pages. Row headings can also be repeated using the Keep Columns Together option.
    To repeat row labels
    Right-click the blank top-left area of the Cross-Tab and select Cross-Tab Expert from the shortcut menu.
    The Cross-Tab Expert appears.
    Click the Customize Style tab.
    Select the Repeat Row Labels check box, if desired.
    Crystal Reports lets you designate report objects that don't expand horizontally, such as text objects, field objects, OLE objects, charts, maps, lines, boxes, and so on, to be repeated on each additional horizontal page that a Cross-Tab creates. For more information, see Repeating report objects on horizontal pages."

  • Cross-tab column name sorting

    Hi
    I created a cross-tab report in Bi Publisher, the sorting in the column names is sorted in alphabetical order. How do I customize this in the order I expected?
    Thank you in advance,
    Jean

    Thank you Jorge!
    I used the pivot table to create the template in word. I check the link and it is what I need. But the template I created is so different. I am very new to BI Publisher. the following is the what I have in the field browser:
    crosstab:c547;"//ROW";"ETHNIC{,o=a,t=t}";"S_TYPE{,o=a,t=t}";"EMP_ID";"count"?>
    <?horizontal-break-table:1?>
    <?for-each@column:$c547//C1?>
    <?./H?>
    <?end for-each?>
    <?for-each:$c547//R1?>
    <?./H?>
    <?for-each@cell:.//R1C1?>
    <?./M1?>
    <?end for-each?>
    <?./T1?>
    <?end for-each?>
    <?for-each@cell:$c547//C1?>
    <?./T1?>
    <?end for-each?>
    <?$c547//M0/M1/T?>
    How do I make the S_TYPE in my order, like the sample you gave me (Wednesday before Thursday)?
    Thanks,
    Jean

  • Cross-tab Columns

    I'm trying to design a cross-tab report the following columns:
    Rows : MONTHS       Columns : 2009 Sales; 2010 Sales; 2011 Projections; 2011 Sales; Sales vs Proj; % diff; 2010 vs 2011 diff
    I have a grouping on location.  Then I created a formula that will define what goes in each column. The Sales columns are in  the database.  The projections will be hard coded (an amount for each month and each location).
    MY PROBLEM IS, I'M HAVING A HARD TIME GETTING THE PROJECTIONS TO GO INTO THE CORRECT COLUMN.
    Here is a formula I have for each location.  ( I was having trouble getting all the locations in one formula)
    IF {@SERVICE TYPE NAMES}="DALLAS" THEN (IF{@MONTH NUMBER}= "01 - JANUARY" THEN 989006.66
                ELSE
                    IF{@MONTH NUMBER}= "02 - FEBRUARY" THEN 1006933.40
                ELSE
                    IF{@MONTH NUMBER}= "03 - MARCH" THEN 2027802.10
                ELSE
                    IF{@MONTH NUMBER}= "04 - APRIL" THEN 2229853.06
                ELSE
                    IF{@MONTH NUMBER}= "05 - MAY" THEN 2286594.60
                ELSE
                    IF{@MONTH NUMBER}= "06 - JUNE" THEN 2273131.89
                ELSE
                    IF{@MONTH NUMBER}= "07 - JULY" THEN 2192997.93
                ELSE
                    IF{@MONTH NUMBER}= "08 - AUGUST" THEN 2083988.42
                ELSE
                    IF{@MONTH NUMBER}= "09 - SEPTEMBER" THEN 1851888.57
                ELSE
                    IF{@MONTH NUMBER}= "10 - OCTOBER" THEN 1720331.72
                ELSE
                    IF{@MONTH NUMBER}= "11 - NOVEMBER" THEN 1158791.62
                ELSE
                    IF{@MONTH NUMBER}= "12 - DECEMBER" THEN 1089271.37
                ELSE 0)

    Hi, 
    Nested Ifs are like brackets.  If you mess one up all the others that follow will do strange things and trying to figure it out just causes high-blood pressure. 
    Try this with Case statements instead: 
    IF {@SERVICE TYPE NAMES}="DALLAS" THEN
         (Select {@MONTH NUMBER}
              Case "01 - JANUARY" :989006.66
              Case  "02 - FEBRUARY" :1006933.40
              Case  "03 - MARCH" :2027802.10
              Case  "04 - APRIL" :2229853.06
              Case  "05 - MAY" :2286594.60
              Case  "06 - JUNE" :2273131.89
              Case  "07 - JULY" :2192997.93
              Case  "08 - AUGUST" :2083988.42
              Case  "09 - SEPTEMBER" :1851888.57
              Case  "10 - OCTOBER" :1720331.72
              Case  "11 - NOVEMBER" :1158791.62
              Case  "12 - DECEMBER" :1089271.37
              Default     :0;)
    ELSE 0;
    I added a Default because I prefer to control unknowns than having Crystal do it and erring out unexpectedly. 
    Good luck,
    Brian

  • Cross tab column issue

    I have a cross tab report that has three column fields. I want to design the report such that when the outer most column (1st column) field get repeated again it should appear at a certain gap from the first one.
    By default crystal report shows all the columns joined together with no space in between.
    e.g lets say that column has three values A,B and C. I want to have the cross tab report to have gaps between these three matrices that get displayed. i.e. A with its sub columns and summary values then a slight gap followed by B with its sub columns and summary values and so on.
    Please Help.

    Is the show cell margins option checked or not.If unchecked please check it and see the results.
    If this doesnot work you can right click on the summary field and in the Display String add formula
    "  "+CStr(CurrentFieldValue)+"  "
    Hope this helps
    Regards
    sjain
    Edited by: sjain on Nov 6, 2009 6:04 AM

  • Formula for Cross-Tab Column

    Hi
    I am struggling with a particular issue related to cross-tab and I tried a lot, but couldn't managed to get the solution.
    Please help with this issue , it would be of great help to me.
    Thanks
    Aniket
    [CrossTab problem|http://www.forumtopics.com/busobj/viewtopic.php?t=120765]

    Thanks for your prompt reply.
    As I am new to this forum,so I don't know how to attach file, also I tried searching but couldn't get.
    At the end of the previous post, Link is given. There is a file attached "Plz_help.zip". Please look into that file and also if you know how to attach any file, please let me know.
    If still it's not clear, please let me know I will try my best to clear this issue.
    [http://www.forumtopics.com/busobj/viewtopic.php?t=120765]
    Thanks a lot.
    Regards
    Aniket

  • Converting column header and a single record into rows

    Lets suppose the table with only one record
    col1 col2 col3-----Column Header
    d1 d2 d3
    i want it in following manner
    column_name Column_data----Column Header
    col1 d1
    col2 d2
    col3 d3
    for this i have written the query as
    select column_name,column_data from (select * from XXX where col1=123)
    MODEL RETURN UPDATED ROWS
    dimension by(col1)
    measures (col1,0 column_name,0 column_data )
    ignore nav
    rules ITERATE(167)
    column_name[iteration_number]=cast( iteration_number as varchar2(3)),
    column_data[iteration_number]=cast( iteration_number as int)
    here i am just assigning iteration_number but i want to assign name of the column and its value;
    Note:--table contains nearly 200 columns

    Something like (using one of my own tables):
    select column_name colname,
           decode(column_name,'RUN_NO',to_char(run_no),
                              'SEARCH_ID',to_char(search_id),
                              'PROCESSING_START_DATE',to_char(processing_start_date,'DDMMYYYYHH24MISS'),
                              'PROCESSING_END_DATE',to_char(processing_end_date,'DDMMYYYYHH24MISS'),
                              'NO_OF_MATCHES',to_char(no_of_matches),
                              'ERROR_DETAILS',error_details,
                              'ADVREP_TIMESTAMP',to_char(advrep_timestamp,'DDMMYYYYHH24MISS')
                  ) colvalue
    from partial_search_history, (select rownum r, column_name
                                  from user_tab_columns
                                  where table_name = 'PARTIAL_SEARCH_HISTORY')
    where run_no = 356You can build the decode by doing
    SELECT ''''||COLUMN_NAME||''',TO_CHAR('||COLUMN_NAME||'),'
    FROM user_tab_columns
    where table_name = 'PARTIAL_SEARCH_HISTORY'A decode on DATA_TYPE field would allow you to add a format mask for DATE fields if necessary.

  • Addition of new tab in header and item screen of MIGO - Steps required.

    Hi Gurus,
    Can anyone give me the exact steps to add screen tab in migo transaction. I have the badi MB_MIGO_BADI to add the new tab but I want to know what are the exact steps to implement it.
    Thanks,
    Shibashis

    Hi,
      Try this.
    1. Create one screen as subscreen in tcode se51.
    2. Create implementation for badi.
    3. if u want to add this tab at header level, then go inside PBO_HEADER interface of badi.  and write this code.
    check i_class_id  = gf_class_id.
    e_cprog = text-001.    " Program name of screen
    e_dynnr = text-002.    " screen No.
    e_heading = text-003. " Name of the tab.
    clear  :e_cprog ,e_dynnr ,e_heading.
    endif.
    4. In INIT  inter face write this.
    append gf_class_id to ct_init.
    5. GF_CLASS_ID , declare this in attribute  as label constant and type MIGO_CLASS_ID.
    6. Functionality for this tab you can write in PAI_HEADER.
    Regards
    VIshnu Gupta

  • How to fix the table column header and resize the width of a table column?

    Hi all,
    I have the following two requirements,
    1) I need to wrap the table column header into two rows. I mean the header must be displayed in two rows.
    2) I need to to able to resize the width of the column. i.e The user should be able to drag the column width according to his requirement.
    Is this possible. Any help would be appreciated!
    Regards
    Kishan

    Hi Kishan,
    Refer to these links.They may ne useful for you.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80d81237-b780-2a10-d398-cc33af6bd75c
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ded11778-0801-0010-258f-ac3b9408a194
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30291df2-b980-2a10-0884-839c4f7f147e
    Regards,
    Sumangala

Maybe you are looking for