Display the data from the month

Hi all
I have a month column in my report that contain data such as the 2007/01, 2007/02,2007/03...I have t use this month column in the x-axis of the graph & it should display data as 01,02, 03... in the report for which I put formula for the month column in criteria under ex builder (a.monthcolumn) a month but its gives me the error below
[nQSError: 10058] A general error occurred. [nQSError: 22025] Extract calendar function is called with an incompatible type. (HY000)
SQL issued: SELECT "revenue of facts." Recipes, "other Dimensions." Area, MONTH (time." "Month"), time. "" Year ""sample reduced SALES.

How to solve this?



Kind regards
Jingle

month() function will only apply on the date column...

If you want to extract the 01, 02,... etc from the format column...
Use this:

Right(MonthColumn, 2)

Tags: Business Intelligence

Similar Questions

  • Sidebar calendar gadget will not display the months or days - my Recycle Bin icon is not on my desk

    Original title: Calendar Sidebar Gadget / recycle Logo

    I added calendar Sidebar Gadget - it worked very well for years and suddenly the firm timetable.  It will not display the months or days and I can not open the pages.  That's happened?

    Recycle the icon was on the desk, but disappeared and has left a space on the desktop.  How to get back in place on the desktop?
    I hope someone can help.  Thank you.   Jeanne

    Hi Jeanne,

    Take a look at the answer provided in nets below the link to solve your problem in calendar view:
    My Microsoft calendar gadget is displays a blank page, rather than the current date / month calendar

    Then try to use the Microsoft Fix It provided in the link below to get the trash on the desktop:
    How can I make the Recycle Bin on my desktop in Windows Vista or Windows XP?

    Hope that helps.

  • birthMonth-String to the Date of Conversion - get data from this month

    Hello

    We would like that the EEG records results for birthmonth this month table. If this month is May (05) then I need to get records of Birthmonth for the month may of table.

    {Code}

    Create table birthmonth (birthmonth Varchar2 (10), Numeroclient number);

    INSERT INTO BIRTHMONTH ('1', 100);

    INSERT INTO BIRTHMONTH ('2', 101);
    INSERT INTO BIRTHMONTH ('3', 102);
    INSERT INTO BIRTHMONTH ('41', 103);
    INSERT INTO BIRTHMONTH ('5', 104);
    INSERT INTO BIRTHMONTH ('10', 105);

    INSERT INTO BIRTHMONTH ('11', 106);

    {code}

    Hello

    user1758353 wrote:
    Hello

    We would like that the EEG records results for birthmonth this month table. If this month is May (05) then I need to get records of Birthmonth for the month may of table.

    Here's one way:

    SELECT  *
    FROM     birthmonth
    WHERE     birthmonth     = TO_CHAR ( SYSDATE
                            , 'fmMM'
                          )
    ;
    

    SYSDATE returns the date of the day.
    To_char (SYSDATE, 'MM') returns the current month (a string 2, with a '0' for most of the month).
    To_char (SYSDATE, "FMMM") returns the current month (a string 1 or 2, without a '0').

    {Code}

    Create table birthmonth (birthmonth Varchar2 (10), Numeroclient number);

    INSERT INTO BIRTHMONTH ('1', 100);

    INSERT INTO BIRTHMONTH ('2', 101);
    INSERT INTO BIRTHMONTH ('3', 102);
    INSERT INTO BIRTHMONTH ('41', 103);
    INSERT INTO BIRTHMONTH ('5', 104);
    INSERT INTO BIRTHMONTH ('10', 105);

    INSERT INTO BIRTHMONTH ('11', 106);

    {code}

    Thanks for posting that, but no instructions INSERT works; they need the keyword VALUES.
    Always test (and, if necessary, correct) CREATE TABLE and INSERT statements before committing.

    Is it really wise to save only the month? Most often, people store all birth_date in a DATE column. It is easy to use EXTRACT or TO_CHAR to get the month of a DATE.
    Because you really want to use a column of VARCHAR type, making 10 characters long guest just wrong. Why not make 2 characters? In addition, add a CHECK constraint to make sure invalid month, such as '41' above, does.

  • Display the months between two dates

    Hello:
    I need all the months between two dates. I entered two dates as January 15, 2001 and 2011-mar-03. I want the result as below.

    JANUARY 15, 2011 - JANUARY 31, 2011
    February 1, 2011 - February 28, 2011
    MARCH 1, 2011 - MARCH 3, 2011

    I held this result of sql query in oracle. Could you please suggest me?
    Thanks in advance.
    Abhishek
    SELECT     GREATEST(st, ADD_MONTHS(TRUNC(st, 'MONTH'), (LEVEL - 1))) dt,
               LEAST(ed, LAST_DAY(ADD_MONTHS(TRUNC(st, 'MONTH'), (LEVEL - 1)))) ld
          FROM (SELECT DATE '2011-01-15' AS st, DATE '2011-03-03' AS ed
                  FROM DUAL)
    CONNECT BY LEVEL <= MONTHS_BETWEEN(TRUNC(ed, 'MONTH'), TRUNC(st, 'MONTH')) + 1
      ORDER BY 1;
    
    DT                       LD
    ------------------------ ------------------------
    15.01.2011 00:00:00      31.01.2011 00:00:00
    01.02.2011 00:00:00      28.02.2011 00:00:00
    01.03.2011 00:00:00      03.03.2011 00:00:00
    

    HTH, Urs

  • Use the same graphical display of data from the different cases of event Structure

    Hello

    I would like one graph to view the input data and modified by one of the two cases of different event structure.  So if the event 1 is selected by the user, the data would be entered by the code contained in 1 case and then introduced in a waveform to display chart.  If the event case 2 is selected, similar data would enter the 2 cases but then displayed by the same graphic waveform , as in case 1.  I don't know if there is a way to do this... it seems that each case of the event would need its own array of waveform, but it becomes quickly heavy regarding the graphical interface for the multiple cases of event.

    Advice would be greatly appreciated!

    Thank you

    Mike

    You are allowed to put the business structures in the case of timeout.

  • I WANT TO DISPLAY THE MONTH LAST 15 EME?

    I NEED GENERIC SQL QUERY
    WHO TAKES SYSDATE AS PUT
    IT DISPLAY MONTH LAST 15 EME DAY?

    I HAVE TRIED BUT DID NOT SUCCEED.

    U PLEASE COULD NOT ANSWER.

    You can try this

    Select trunc (trunc(sysdate,'MM')-1, 'MM') + 14 double
    /

  • To display the first and last date of one month

    I have the date format in 10 Mar 10.
    My requirement is when ever I select the date in the dashboard for all the month it should show results of all the months.
    I had the request for obiee101.blogspot.com.but if I use that sometimes it is not the latest results of the day. Any body please give me the query to display the results for the first day and lastday?
    I select any day from the drop-down menu of the guest, it must display the month of ex: if results
    If I select either 1 mar mar 10.2 10,30 mar 10...
    It should give results for the month of March.
    Can you please provide me the query for the last month also?
    If I select March date date print want to display the results of March together in a single column, results of the previous months in the other column

    Someone help me to achieve this?

    Yes, you are right. Jean SQL for the last day of the month, if the "last day of the previous month" ends on June 30, that "adding a month" will result in the 30th of the following month. But if the next month has 31 days, you don't miss this day here.

    Use it for the last day of the current month.

    TIMESTAMPADD (SQL_TSI_DAY-1, TIMESTAMPADD (SQL_TSI_MONTH, 1, TIMESTAMPADD (SQL_TSI_DAY, 1, TIMESTAMPADD (SQL_TSI_DAY, DAYOFMONTH (CURRENT_DATE) *-1, CURRENT_DATE))))

    The SQL above will ensure that you will get always the last day of the month "current" no matter how many days during the previous or current month.

  • Sort of the months of jan - Dec

    Hi all

    I wrote the code to display the month where every employee has joined

    Select ename, empno, to_char (hiredate, 'month') as MÓJ

    WCP

    order by 3;

    O/P:

    ENAMEEMPNO MOJ
    JONES7566 April
    SCOTT7788 April
    SMITH7369 December
    FORD7902 December
    JAMES7900 December

    I need my exit list of jan to dec and not in alphabetical order from a to z. Therefore, kindly help me in sorting.

    Also, I heard that we can set the month of jan-dec using decode. If none knows it too kindly let me know

    Thank you

    Hello

    If you want the ' January the first, no matter what year they are in; is this fair?

    Here's a way

    SELECT ename, empno

    TO_CHAR (hirdeate, 'months') AS Mój

    FROM scott.emp

    ORDER OF TO_CHAR (hiredate, 'MM')

    ;

    You can use an expression BOX (or DECODE) If you really want to.  It would not be difficult, just to long (12 WHEN...) Branches THEN, according to your needs).

  • How to order the month values in access guest

    Hi gurus,

    I have a column that displays the month in format below

    Date.png

    I wrote a case statement when 1 = January he worekd, but now I want to display the Jan, Feb... DEC in order, but I do not get the values as expected, any suggessions please.

    Hi gurus,

    I got the answer, I created another logical column based on the above column and sorting of the column value based on the value that it's picking this worked.

    Thanks for your time.

  • How to view the monthly/annual statistics in terms of time past/calories burned, broken down by each individual activity such as run elliptical/outside etc. Y at - it a third party application that can help me to collect and display these data?

    How to view the monthly/annual statistics in terms of time past/calories burned, broken down by each individual activity such as run elliptical/outside etc. Y at - it a third party application that can help me to collect and display these data?

    Hello

    It is not currently possible to review the data the application integrated in activity or training on this basis. If you want Apple to consider adding this feature, you can suggest here:

    https://www.Apple.com/feedback/watch.html

    However, health and fitness data from other sources, iPhone, and Apple Watch are registered and grouped within the health on iPhone app. These data can be exported, which you may find useful to track the cumulative progress and/or analyze your activity more in detail.

    IPhone app activity also has a button for sharing (top right of the screen) that allows to share data - including social media, Messages, Mail, Notes, and a printer.

    Include third-party applications that can be useful, for example:

    Access to QS

    -"Access your HealthKit data in a table so you can Explorer using numbers, Excel, R, or any other tool compatible CSV."

    - https://itunes.apple.com/gb/app/qs-access/id920297614?mt=8

    SpectaRun workouts

    -"View from the workouts of your Apple Watch on your iPhone and to export these workouts so you can download them to your favorite online running community."

    - https://itunes.apple.com/gb/app/spectarun-workouts/id991723862?mt=8

    Data can also be exported directly from the application of the health (Health Data > All - Share at the top button on the right).

    Check the descriptions and support resources for third party applications for supported details of import and data analysis features.

    More information:

    Use the activity on your Apple Watch - Apple Support

    Use of the workout on your Apple Watch - Apple Support

    http://www.Apple.com/watch/health-and-fitness/

  • You want to display the current month and previous month data in a single record on forms?

    Hello experts,

    I have this requirement:

    Table structure:

    Division of months value totalAmount

    01-apr-2013 1 10000

    May 1, 2013 1 20000

    01-apr-2013 2 30000

    May 1, 2013 2 50000

    I want to display in forms such as

    Form:

    Month: May 1, 2013

    Total difference of month Division total division prev_Month

    May 1, 2013 1 10000 April 1, 2013 1 20000 10000

    May 1, 2013 2 30000 April 1, 2013 2 50000 20000

    I use two procedure to fetch the records for the current month and the previous month.

    but it will cause a problem, if for some data division previous month do not arise.

    Please suggest me some query I can get with current and data month pre to unique record.

    Please help me.

    Thank you

    Yoann

    I DON'T KNOW BUT TRY...

    Select the month of x.mn, x.division, total x.totalAmount, y.mn prev_month, y.division, total y.totalAmount, (y.totalAmount - y.totalAmount) difference

    Of

    (select month mn, division, totalAmount value)

    from table_name

    where month = (select max (month)

    from table_name

    )

    ) x,.

    (select month mn, division, totalAmount value)

    from table_name

    where month = (select add_months (max (month),-1))

    from table_name

    )

    ) y

    where x.division = y.division

    /

    ALEXANDER SIMONNET

    DHAKA BANGLADESH

  • SQL to generate the intervals from date of 6 months each, between two date ranges

    Hi all

    I looked in the forums, if someone uses CREATE_CHUNKS_BY_SQL for dates, but no luck.
    I want to update a table using pieces of dates.
    I need to generate date ranges to divide them by pieces.

    I have a table where I know that max (sales_date) and min (sales_date).
    Lets say max (sales_date): min (sales_date) 01/01/2008: 31/10/2010

    I want to break in intervals of 6 months (180 days) as below:
    chunk_id     start_date     end_date
    --------     ----------     --------
      1          01/01/2008     06/30/2008
      2          01/07/2008     12/31/2008
      3          01/01/2009     06/30/2009
      4          01/07/2009     12/31/2009
      5          01/01/2010     06/30/2010
      6          01/07/2010     10/31/2010
    He didn't exactly finish end of the month. Basically, I need these beaches of dates at apart 180 days.

    I appreciate if someone can throw some ideas on this.

    Thank you
    Raj.

    Hi, Raj,

    Sorry, it is unclear what you are asking.

    To generate a list of dates starting with min_sales_date and including all the 180 days after that up to (but not beyond) max_sales_date:

    WITH     got_params     AS
    (
         SELECT     DATE '2008-01-01'     AS min_sales_date
         ,     DATE '2010-10-31'     AS max_sales_date
         FROM     dual
    )
    SELECT     min_sales_date + (180 * (LEVEL - 1))     AS grp_start_date
    FROM     got_params
    CONNECT BY     LEVEL <= CEIL ( ( (max_sales_date - min_sales_date)
                                    + 1
                           )
                         / 180
                         )
    ;
    

    Output:

    GRP_START_D
    -----------
    01-Jan-2008
    29-Jun-2008
    26-Dec-2008
    24-Jun-2009
    21-Dec-2009
    19-Jun-2010
    

    December 16, 2010 is 180 days after June 19, 2010, but it is not displayed, because is after max_sales_date, which is 31 October 2010.

    I hope this helps you.
    Whenever you have any questions, post a small example of data (CREATE TABLE and INSERT statements) and the results desired from these data.

  • Display the name of the tag as the column name and the value in the tag as a row of data from the input string.

    Hi Forum members,

    I am looking for a query display the name of the tag as the column name and the value in the tag as a row of data.

    I have to print the values within the tag to a file by choosing the value of the flags. the sequence of the tags will vary each time, as the tag name will change dynamically.

    So here is the example of input data and the expected output. The string in the text column must be separated as the column names and values.

    Input data
    Select 1 as seqno,' < > 0210A 50 4f < / 4f > < 5f20 > TEST CARD 16 < / 5f20 > < 5f2a > < / 5f2a > < 82 > 1 c 00 < / 82 > ' double text


    Output:

    Seqno 4f 5f20 5f2a 82
    0210A 50 16 1 00 TEST CARD 1

    Please help me by providing your entries on this.

    We use the version of Oracle 11.2.

    Note: This is not the XML string

    Thank you

    Shree

    with

    data in the form of

    (select 1 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2a><82>00 1' text of all the double union)

    Select 2 as seqno,'XYZ<4F>0210 A 50<5f20>TEST CARD 16<5f2a><82>00 1' text of all the double union

    Select 3 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2A><82>1 00XYZ ' text of all the double union

    Select option 4 as seqno,'<4F>0210 A 50<5F20>TEST CARD 16<5f2A><82>1 00XYZ' double text

    )

    Select d.seqno, x.*

    d the data,

    XMLTable ('/ root')

    by the way xmltransform (xmltype ('': replace (replace (text,'<><>'),)))

    XmlType (q'~http://www.w3.org/1999/XSL/Transform "version ="1.0"> ")

                                                     

                                                       

                                                         

                                                       

                                                     

                                                     

                                                       

                                                         

                                                       

                                                     

    ~'

    )

    )

    path of columns '4f' varchar2 (10) "tag4f."

    path of "5f20' varchar2 (30)"tag5f20. "

    path of '5f2a' varchar2 (10) "tag5f2a."

    path of varchar2 (10) "82" "tag82.

    ) x


    SEQNO 4f 5f20 5f2a 82
    1 0210A 50 16 TEST CARD - 1 00
    2 0210A 50 16 TEST CARD - 1 00
    3 0210A 50 16 TEST CARD - 1 00
    4 0210A 50 16 TEST CARD - 1 00

    with

    data in the form of

    (select 1 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2a><82>00 1' text of all the double union)

    Select 2 as seqno,'XYZ<4F>0210 A 50<5f20>TEST CARD 16<5f2a><82>00 1' text of all the double union

    Select 3 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2A><82>1 00XYZ ' text of all the double union

    Select option 4 as seqno,'<4F>0210 A 50<5F20>TEST CARD 16<5f2A><82>1 00XYZ' double text

    ),

    Chopper (seqno, Key, value, String) as

    (select seqno,

    regexp_substr (text,'<(.+?)>', 1, 1, null, 1),

    regexp_substr (Text,'>(.*?))

    regexp_substr (text,'<.+?>. *? ) (.*) $', 1, 1, null, 1). » <>'

    from the data

    Union of all the

    Select seqno,

    regexp_substr (String,'<(.+?)>', 1, 1, null, 1),

    regexp_substr (String,'>(.*?))

    regexp_substr (String,'<.+?>. *? ) (.*) $', 1, 1, null, 1)

    Chopper

    where regexp_substr (string,'<(.*?)>', 1, 1, null, 1) is not null

    )

    Select '4f', seqno, '5f2a', '82', '5f20.

    of (seqno, lower (key) select key, value)

    Chopper

    )

    Pivot (max (value) for key in ('4f' as '4f', '5f20' as '5f20', '5f2a' as '5f2a', "82" as "82"))

    Concerning

    Etbin

  • How to display the scroll bar on every page of the tab where the content from the same block of data?

    Hi gurus,

    Is it possible to display the scroll bar on each tab on Web tab page where the display of content from the same block of data?

    for example:

    Block of data elements used:

    1. employee ID

    2. first name

    3 first name

    4 date of hire

    scroll bar appears on the page 1

    5 salary

    6 commission

    scroll bar appears on page 2

    Many thanks in advance,

    Kind regards

    Ferrere

    Dear fendy_chang,

    A data block can have only 1 scroll bar. If the form is for display purpose, you can create several data bloks that points to the same table for each tab.

    Manu.

  • Display data from the database in a table

    Hello

    How to display data from my database in an ADF table using a backing bean? I created an arraylist in the bean, but only the last row of my query is displayed in the table...

    Thank you...

    Hello

    Create a simple Java class that implements Serializable. Create attributes that represent each column in your table. This class represents on the row of your table. A list of these objects, and you can fill your af:table.

    Visit this link below for an example.
    Re: Is it possible to create a static array of ADF and the tree?

    Kind regards
    Amélie Chan

Maybe you are looking for