Sorting column name in crosstab report 10.1.3.2.1

hi,
i have crosstab report build with bipublisher 10.1.3.2.1.
in column, i have jan'11 feb'11 etc but not sorted correctly(it should be ordered by numeric not character).
any advise will be higly appreciated.
thx.
regards,
tyo

You need to either convert these to a date in canonical format and sort based on date,
Or convert these months to number and sort based on number to have the months sorted correctly

Similar Messages

  • Sort By Month Name in Crosstab report

    Hi,
    I have one cross tab report in which in Datapoint I have one column which shows Month Details. When I run the reports the heading of Column comes as Month Name (ie Aug, April, Dec,.....) . Can you please help me to understand how can it be done it displayed in sorted month according to Month Name (ie. Jan, Feb, Mar, Apr.......). As per one of the Thread I tried to use to_date(Column_name) but it does not work as Column name is char column and cannot be converted to date.

    Hi ,
    What if you use the following ...in bold?????
    SQL> select ename,hiredate from emp;
    ENAME      HIREDATE
    SMITH      18/12/1980
    ALLEN      20/02/1981
    WARD       22/02/1981
    JONES      02/04/1981
    MARTIN     28/09/1981
    BLAKE      01/05/1981
    CLARK      09/06/1981
    SCOTT      18/04/1987
    KING       17/11/1981
    TURNER     08/09/1981
    ADAMS      21/05/1987
    JAMES      03/12/1981
    FORD       03/12/1981
    MILLER     23/01/1982
    14 rows selected
    SQL> select hiredate , to_number(to_char(hiredate,'MM')) from emp order by 2;
    HIREDATE    TO_NUMBER(TO_CHAR(HIREDATE,'MM
    23/01/1982                               1
    20/02/1981                               2
    22/02/1981                               2
    02/04/1981                               4
    18/04/1987                               4
    21/05/1987                               5
    01/05/1981                               5
    09/06/1981                               6
    08/09/1981                               9
    28/09/1981                               9
    17/11/1981                              11
    18/12/1980                              12
    03/12/1981                              12
    03/12/1981                              12
    14 rows selectedOR ....
    EVEN BETTER AS YOU NEED THE MONTH NAME....
    SQL> ALTER SESSION SET NLS_DATE_LANGUAGE='AMERICAN';
    Session altered
    SQL> select hiredate , to_char(hiredate,'MON') , to_number(to_char(hiredate,'MM')) from emp order by 3;
    HIREDATE    TO_CHAR(HIREDATE,'MON') TO_NUMBER(TO_CHAR(HIREDATE,'MM
    23/01/1982  JAN                                                  1
    20/02/1981  FEB                                                  2
    22/02/1981  FEB                                                  2
    02/04/1981  APR                                                  4
    18/04/1987  APR                                                  4
    21/05/1987  MAY                                                  5
    01/05/1981  MAY                                                  5
    09/06/1981  JUN                                                  6
    08/09/1981  SEP                                                  9
    28/09/1981  SEP                                                  9
    17/11/1981  NOV                                                 11
    18/12/1980  DEC                                                 12
    03/12/1981  DEC                                                 12
    03/12/1981  DEC                                                 12
    14 rows selectedRegards,
    Simon
    Message was edited by:
    sgalaxy

  • Sorting column name in cross tab

    Hi Experts,
    How to sort the column name in cross tab.Crystal is sorting alphabetically like
    Apr 2013 Apr 2014 Aug 2013 Aug 2014 Dec 2013 Dec 2014 Feb 2013 Feb 2014 Jan 2013 Jan 2014............................so on
    But i need result like
    Jan 2013 Jan 2014 Feb 2013 Feb 2014 Apr 2013 Apr 2014 Aug 2013 Aug 2014  Dec 2013 Dec 2014
    I am using crystal report 2013 version.
    Kindly see the attached file

    Hi Bharathiraja,
    Instead of using a string field to display the month names, use a Date field as the column of the Crosstab.
    You can then, highlight the column in the crosstab expert > Options > Options tab > check 'Customize group name field' > click the formula button beside 'formula' and use this code:
    Totext({DATE field}, 'MMM yyyy')
    -Abhilash

  • How to suppress column names in SQL-report

    What I want is just the data, without any column names.
    COLUMN LDATE OFF;
    SELECT     SYSDATE LDATE
    FROM DUAL;
    LDATE
    07.11.11
    This example doesn't work. There is still LDATE above column. Any idea?

    user5116754 wrote:
    Great, it's so simple. Im sure there is a way to omit this result statement: "531 rows selected" at the end of report!There is, and it's also in the documentation...
    SQL> set feedback off
    SQL> select * from emp;
         EMPNO ENAME      JOB              MGR HIREDATE                    SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-1980 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-1981 00:00:00       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-1981 00:00:00       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-1981 00:00:00       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-1981 00:00:00       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-1981 00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-1981 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 19-APR-1987 00:00:00       3000                    20
          7839 KING       PRESIDENT            17-NOV-1981 00:00:00       5000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-1981 00:00:00       1500          0         30
          7876 ADAMS      CLERK           7788 23-MAY-1987 00:00:00       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-1981 00:00:00        950                    30
          7902 FORD       ANALYST         7566 03-DEC-1981 00:00:00       3000                    20
          7934 MILLER     CLERK           7782 23-JAN-1982 00:00:00       1300                    10
    SQL>

  • Dynamic Column Name on Interactive Report

    Hi all,
    Is it possible to assign a SQL result to a Column name on an interactive report?
    I have been able to do this on a standard SQL Report though the use of page items but have not had much luck with interactive reports.
    Any help is appeciated.
    Thanks,
    Dan

    could you please explain step 4 a bit more?
    as with the standard report, i just created an item with SQL query with a corresponding computation with same SQL query and that works great.
    i tried the same method with interactive and it did not work.
    in step 4 it mentions creating a process to populate the items.
    how is this done?
    Thanks,
    Dan

  • How to refer a column name in form report

    Hi,
    How can i refer a column name in the form report. My issue is that " I have a form report in that i have column name when i use to click the column name it should bring me to next page with the corresponding values of the column."
    Here i have achieved that when i click on column name(in Page1) it brings me to next page(Page2). but in the next page(P2) i want to display(only display) the corresponding values of the selected column(Page1) but the values should not be editable and should not be in text field it should be in display only field.
    So how can i write a sql query in display only souce field. Ie, how can i refer the column name in(page1) form report.

    Hi Karthik
    Very good morning.
    I think u have column link in the first page and when u select a data in the first page and when u r moving to the next page the the corresponding data need to there is it correct.
    For example You have table Employee and u have a select list in the first page contains name of the employee when u select one name and corresponding datas of the employee need to be in the second page.
    So Dont clear the cache of the first page.
    I the next page make the page items as display only and give the source of the all items a returning the single sql query.
    If u have four items in the next page namely p2_sal, P2emp_no etc..
    Then use like this
    select sal from emp where emp_name=:P1_EMPNAME
    Hopes this might helps you.
    Thanks & Regards
    Srikkanth.M

  • Calculating a difference between two columns in a crosstab report

    I have a crosstab report showing # of sales by salesperson in each of 2 years and within each of 2 categories of salesperson (old vs new). I want to create a column showing the difference between sales in 2009 and 2010 within new salespersons  and then a column showing the difference between 2009 and 2010 within old salespersons. I can't figure out how to pinpoint in the variable editor the column containing 2009 sales by new agents. Any advice?

    You can hard-code the formulas like this:
    =Sum([Sales]) Where ([Year] = 2009)
    =Sum([Sales]) Where ([Year] = 2010)
    Then the variance becomes:
    =Sum([Sales]) Where ([Year] = 2010) - Sum([Sales]) Where ([Year] = 2009)
    The challenge with this is the years are not dynamic, but I figure I will throw this out first and see if it gets you what you want to start with.

  • Column Name in BI Reports

    Hi,
    I have about 80 reports that are running in various dashboards. Each of those reports is an Answers request.
    Is there a way to find out if a particular column is being used in which report without going through each report manually?
    Thanks,
    rkingmdu

    Hi kingmdu,
    Is there a way to find out if a particular column is being used in which report without going through each report manually?No,we can find a single column from so many requests.
    But we can do one thing,its simple the column you want to search gives you some clue say like example column name=customer name then definately it will exists in something named customer prefixed or suffixed table in the presentation catalog that are defined.Same way you apply it for the column your searching.
    Looks simple but no other option.
    Hope it helps you.
    Best Wishes,
    Kranthi.

  • Column name changed in reports

    I have to do some changes on my existing report, its really a complex report with more number of columns and tables. now its really hard to fix the alias name changed by report builder automatically. any one could help me to fix this problem, means what i have alias name in query that i want to use in report.

    Hi,
    Could you pl clarify the Q? Do you mean that Reports Buider has automatically added an alias to a column name? This is not expected.
    Or do you mean that you need to change the alias of the column without disturbing the report definition? You can alter the data model of the report using the feature "Customization at runtime using XML". For more information, refer to Chapter 16 in Publishing Reports Manual for 10g:
    http://www.oracle.com/technology/documentation/reports.html
    Navneet.

  • Pass column names dynamically in report

    Hello experts,
    I am creating an ALV report where i need to pass the column names dynamically. if the current month is March and year is 2009. the column names should be as below
    March 2009 April 2009 May 2009 June 2009 ..............till Feb 2010 (total columns are 12)
    if the current month is June and year is 2010 it shoud be displayed as
    June 2010 July 2010 Aug 2010................till May2011
    I am actually calculating the forecast qty for each month and displaying in a report from the current month.
    How to write field catelog for this requirement?
    Thanks in Advance.
    Rajesh.

    I think in the fieldcat, at the time of declearation, you can alter the field description depending on the present month.
    If present_month = January
    wa_fieldcat-reptext_ddic = 'January'.       " Field description
    elseif present month = February.
    wa_fieldcat-reptext_ddic = 'February'.       " Field description
    on so on.....................
    Kuntal

  • Enhancement Request: Sorting column-names AND Saving Package in clipboard

    Hi,
    I would like to have the following features:
    - Sorting with the column-names (A-Z) would be very nice like I can do in the worksheet or the columns-tab but not in the data-tab
    - Saving source code of packages not only to file but to clipboard.
    Thanks, Juergen

    Hi Juergen,
    Sorting with the column-names (A-Z) would be very nice like I can do in the worksheet or the columns-tab but not in the data-tabThat's already requested on the SQL Developer Exchange. Go vote on it there to add more weight.
    Saving source code of packages not only to file but to clipboardYou can add that one as a new request, but I'd say chances are small to see this implemented.
    What I do is ctrl-a (select all), then ctrl-c (copy to clipboard). If you don't like using the keyboard, you can do it through the Edit menu. Isn't that enough to satisfy everyone's needs?
    Regards,
    K.

  • Getting Column names from SQL report

    I have a SQL report as follows:
    select ename, dept, manager
    from emp;
    I need to be able to dynamically access the column names being displayed inside APEX so I can use in a List of Values. I can't use all_tab_columns. Is there an internal APEX table/view that I can accxess that will give me all of the columns that are eing displayed in a SQL report?

    Hi Bob,
    Try this -
    1) Give your report region a static id
    2) Use the following query -
    select
      heading d,
      column_alias r
    from
      apex_application_page_rpt_cols
    where region_id = 'FOO';Obviously change 'FOO' to match your region id, and look at the different columns available in the apex_application_page_rpt_cols view to see what best suits you.
    The APEX dictionary rocks ;)
    Hope this helps,
    John.
    http://jes.blogs.shellprompt.net
    http://apex-evangelists.com

  • I am unable to get order by column name in oracle report parameter form

    i created query like following in query builder
    SELECT CASE_NO, COURT_ID, CASE_TYPE,
    INITCAP(PLAINTIFF) PLAINTIFF,INITCAP( DEFENDENT) DEFENDENT,
    INITCAP(COUNSEL) COUNSEL, START_DATE, PREVIOUS_HEARING_DATE,
    NEXT_HEARING_DATE,INITCAP( DESCRIPTION) DESCRIPTION,
    INITCAP(RELIEF) RELIEF,INITCAP(EXTENT) EXTENT,
    DECREE_DATE,INITCAP(STATUS) STATUS,INITCAP( LOCATION) LOCATION,
    LEGAL_FILE_NO, MSNO
    FROM L_CASE_MASTER_MAIN
    WHERE to_char(NEXT_HEARING_DATE,'DD-MON-YYYY')=:P_NHD ORDER BY :P_COL
    and i created parameter form for these two bind variables :P_NHD,:P_COL
    in,:P_COL i wrote lov as Select trim(COLUMN_NAME) from user_tab_columns where table_name='L_CASE_MASTER_MAIN'  to get all the columns.
    in parameter form i am able to get all the columns but when i am generating report it is not giving results as per my ordered column.
    kindly let me know the solution
    Report Version :Oracle Reports 11g
    Db Version:Oracle  11g

    Hi,
    Ordering the column first takes place from the Data Model Itself.
    Please Check your column ordering in the report data model. If it is not ordered in a right way then Rearrange it.
    Remove your order by in query...
    If any issues... let me know
    Regards,
    Soofi

  • LOV of column names with a report's custom column headings?

    I have a list ov values definition that looks like this:
    select column_name d, column_name r from all_tab_columns where table_name = 'DATABASE_LIST'
    I'd like to list the custom column headings from a report as d, rather than repeating the column_name. How can I do this?

    As Anton said, the best thing is to store your custom headings in a table so that you can use the table for your LOV as well as for your report headings.
    To use dynamic report headings, you can use the 'PL/SQL function body returning colon-delimited headings' feature on the Report Attributes page.
    So, if your report headings are stored in table t that function body can be
    declare
    l_headings varchar2(4000)
    begin
    for rec in (select heading from t) loop
       l_headings := l_headings||':'||rec.heading;
    end loop;
    return ltrim(l_heading,':');
    end;Hope this helps.

  • Repeated column headers in Crosstab report when exported to Excel

    I have created a Cross tab report and wanted to export it in the format "Microsoft Excel(97-2003) (*.xls)", as the formatting of the report is lost in Excel  Data Only format. But when I export the data the column headers are repeated in the Excel. Is there any solution to avoid repeated column headers without losing the formatting of layout?

    I suppose one answer we should have before anything else;
    Does the export work from the CR designer?
    You may also want to see the following:
    How to WYSIWYG SAP Crystal Reports Export to XLS
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

Maybe you are looking for

  • Horrible lag time, spinning wheel on MacBook Pro

    I'm putting this in the OS X Leopard section, but I don't know where it goes. I'm using OS X 10.5.6 on a MacBook Pro 2.4 GHz Intel Core 2 Duo with 4GB RAM and a 180 GB hard drive that's got 5 GB of space free. And it has become horribly sluggish. At

  • ESS Error message due to Leave Collision

    Dear Friends, We are doing new ESS MSS implementation on ECC 6.0. We have configured SAP R/3 to accomodate Collision of leaves in table V_T554Y (Global Time constraint raction) and we can create leave collision through PA30. E.g: A person who has tak

  • Embed(?) video in page that plays on Blackberry

    I have a need to take the embed [or not] code from YouTube, place it on a web page I am setting up in Dreamweaver CS4, and then it will play back the video.  The page and video needs to play in Blackberry's browser.  I tried doing a simple <embed> fr

  • Signal detection on pins of parallel port

    hello, i am using the outport.vi in order to write to the parallel port of my windows 98 pc. I am writing a value to the port register. To detect that, i am trying to detect a signal change directly on the pin of the parallel port using an oscillosco

  • ICC Display Profiles

    I didn't see this forum initially, so posted a question in the CinemaDNG one... So, the simple question. I am looking for a display profile that desaturates the screen, making the display mono. Ideally, one with a gamma change too, so I can see a cha