Date format OBIEE 11g

Hi all

I have a requirement to display the value of 1 quarter of the current year in a column. I used the syntax below to view,

CAST ('01 - JAN-' |) CAST (YEAR (CURRENT_DATE) AS CHAR (4)) AS DATE)

But it throws me the below error.

Value DateTime-JAN-01-2013 from JAN-01-2013 does not match the specified format.

Can anyone suggest me how to get rid of the error?

Thank you very much...

Try this...

EVALUATE ("TO_CHAR(%1,%2)" AS A CHARACTER (30), CURRENT_DATE 'YYYY-Q')

For more information see the link below...

OBIEE: Various Date calculations

also check what type of data is present in your data base (is this date or datetime) and that you pass to function?... play with Date, Datetime

Tags: Business Intelligence

Similar Questions

  • Date format OBIEE

    Hello everyone,

    When I connect to obiee with mode 'English' selected, I want to see the column data format date as "MM/DD/YYYY". However, the default behavior is "MM/DD/YYYY". How can I change? I don't want to change the format of data manually one by one. Can I change automatically?

    Kind regards

    Dilek

    Hello Dilek,

    I think it depends on the locale (scheme chosen under 'My account' in the corner right under your username). There you can choose the language for the interface as well as the locale.

    What version of OBIEE do you use?

    Best regards

    Pie

  • Convert char to date format in obiee 11g?

    Hello

    I want to convert char to date format in obiee 11g.

    I have this date

    ' 07/31 /' | CAST (YEAR (CURRENT_DATE) AS CHAR)

    I want to change the tank to the date format.

    Please help me,

    Thanks in advance,

    A.Kavya.

    Below him is based on my date format NLS source Oracle database as DD-MON-RR (query on the database - SELECT * > OF nls_database_parameters WHERE the PARAMETER = "NLS_DATE_FORMAT").

    Note that this is not altered by the connection of the RPD pool, which is common.

    If the date that I put together for substrings and Casts a match before it can be LAUNCHED as a DATE. IE 31 July 15 etc.

    Steps to follow:

    -Drag a field to the report, one

    -Change the formula

    -Paste in

    CAST ("31 - Jul -" |) SUBSTRING (CAST ('F_PL_BAL'. ' BUSINESS_DATE ' AS CHAR) FROM 8 TO 2) AS DATE).

    -OK

    -See the results

  • Date format custom that allows Obiee 11g

    Hello

    I'm new here,
    What are the date format can be used in OBIEE 11 g?
    We can custom like this: DD-MM-YYYY? is there any case like DD-MM-YYYY?

    Help, please

    Joe

    Published by: JoeSSI on March 1, 2012 20:32

    Hello
    Refer,

    http://docs.Oracle.com/CD/E23943_01/bi.1111/e10544/format.htm#i1030865

    Thank you

    Deva

  • How to change the date format in OBIEE

    Hello

    I have a need to change the column to a column of varchar by OBIEE...

    The date column stores the data in the format "YYYY/MM/DD", I need to change that for a column of varchar with this format "YYYYMM"...

    Since I'm pointing directly to the transactional database, I can't make changes to the database level, so I have to do in OBIEE layer, of the ideas of how this could be done?

    Thanks in advance!

    Hi user,

    Reference: http://varanasisaichand.blogspot.com/2010/01/how-to-change-data-format-to-our-custom.html

    http://varanasisaichand.blogspot.com/2010/05/evaluate-function.html

    Thank you
    Saichand.v

  • Do not connect to a data source in obiee 11g

    Hi friends,

    I can't able to import metadata into a new repository in OBIEE 11 g...

    It does not connect to the data source to import meta data

    It throws error as the failure of the connection...

    I also restarted services and also checked for odbc connectivity that's showing the connection is
    success...

    Also, I entered the details in Notepad TNS...

    Here are the following details

    TEST =
    (DESCRIPTION =
    (ADDRESS =
    (PROTOCOL = TCP)
    (HOST = 172.16.1.110)
    (PORT = 1522)
    )
    (CONNECT_DATA =
    (SID = TEST)
    )
    )

    The data source name that gave me is ORCLBI for my reference...

    So why not connect not not at the data source... Help me friends for the importation of tables to my deposit as soon as it is connected to the data source...

    Thank you
    Harry...

    Hello
    Through Vincent response in this... Can help you... Re: unable to connect to the database of the OBIEE 11g improved SPR

    Kind regards
    Srikanth

  • column headers dynamically change the date filter-based selection? in obiee 11g Analytics

    Hello

    I work an analytic of obiee 11g.

    I have my report coulmns five... who are the branch, district, DS, current year, the previous year.

    based on the article on the query filter, column headings change dynamically.

    column headings are current, previous year Yes r;

    current month, previous month;

    current week and the previous week.

    for example, if I select the year 2016.

    column headings are Branch, district, DS, 2016, 2015 will change dynamically in the analytical report...

    Please help me,

    I tried, but I do not have...

    Please help me,

    A.Kavya.

    I'm not really sure what you have, but assuming that you have a command prompt of dashboard with the year of the column, define a variable presentation for this column (pv_year) and then in the report, for the columns you want, set the column as header @{pv_year} and @{pv_year-1}.

    He must pick up the values from the command prompt and dynamically set in the column headers.

  • Date format 11g BI Publisher

    I need to get the month of the date field.  Let's say that the domain name is date_from (May 24, 2014) in the table and it is of type Date. Firstly I formatted for to_char('24-MAY-2014','MON'), it gives 'MAY', then I need to convert to the date format.  Please advice how to get the format/month.

    Please mark answered the question.

  • Date format does not not in 11G?

    Hi all

    I'm using Oracle 11 g on windows 7

    I try to run this date format not allways show me same format

    Select To_date (' 02 / 02/2012 ', ' DD/MONTH/YYYY') twice; (when I want to record on column date) but the error is NOT VALID MONTH
    Select To_date (' 02 / 02/2012 ', ' DD/MM/YYYY') twice; (when I want to record on column date) it's OK



    Also, when I want to display the date
    Select To_char (' 02 / 02/2012 ', ' DD/MM/YYYY') twice; (when I want to record on column date) error NUMBER INVALID

    Select To_char (' 02 / 02/2012 ', ' DD/MONTH/YYYY') twice; (when I want to record on column date) error NUMBER INVALID
    Select To_char (' 02 / 02/2012 ',' MON/DD/YYYY "") double; (when I want to record on column date) error NUMBER INVALID

    I try to get NLS_DATE_FORMAT in windows registery under oracle but not found I have try to search in the registry, but not found.

    using regedit in cmd

    concerning

    Isabelle wrote:
    It's good, but I want the output like this JJ/MM/AAAA allways

    Date of some time

    09/12/2012
    12 OCTOBER 2012

    How can I give him standard format?... because the user enter different format, so I want to convert it to standard format.

    .

    with t as
    (
    select '12/09/2012' d from dual
    union all
    select '12/OCT/2012' from dual
    )
    select to_char(to_date(d,'dd-mm-rr'),'dd-mm-yyyy') d from t;
    
    D
    12-09-2012
    12-10-2012
    
  • Is it possible to use the default value as sql expression in obiee 11g report?

    Hi all

    Is it possible to use the default value as sql expression in obiee 11g report?. Actually what I'm trying to make is that we send an ibot users. They want the same default values that are assigned in the command prompt in the report. So when we send the ibot it shows the report for default values assigned in the report criteria which is obsolute. As a solution, I kept the report in a dashboard page and send the dashboard like ibot page. But the problem here is that I can send only pdf format. Is it possible to do so at the level of the report (without using session variables). I want something like that

    Date between Date ' @{PV1} {Timestampadd (SQL_TSI_DAY,-90, CURRENT_DATE)} and Date ' @{PV2} {CURRENT_DATE}

    Thanks in advance

    Thank you

    AJ

    http://www.w3.org/2001/XMLSchema-instance"container ="http://www.w3.org/2001/XMLSchema"xmlVersion ="201201160' xmlns:sawx="com.siebel.analytics.web/expression/v1.1" > "

    "Question time '." Date '.

    "Question time '." Date '.

    BOX WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 1) THEN TIMESTAMPADD (SQL_TSI_DAY,-2, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 2) THEN TIMESTAMPADD (SQL_TSI_DAY,-3, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 3) THEN TIMESTAMPADD (SQL_TSI_DAY,-4, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 4) THEN TIMESTAMPADD (SQL_TSI_DAY-5 (, cast (max (CURRENT_DATE) date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 5) THEN TIMESTAMPADD (SQL_TSI_DAY,-6, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 6) THEN TIMESTAMPADD (SQL_TSI_DAY, 0, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 7) THEN TIMESTAMPADD (SQL_TSI_DAY-1, cast (max (CURRENT_DATE) date)) END

  • How to calculate the top 100 in analytical report of obiee 11g?

    Hello

    I am creting report Analytics obiee 11g.

    I plug 5 columns, balance, status of the loan, district loantype.

    I want to display the data from the highest of 5 columns in the analytical report...

    For this report, I would like to add customized lines...

    My requiremt, I want to show the top 100 sales, the total amount outstanding

    and I want to add personal calculation as (total of balances / top 100 outstanding balance) * 100

    Please help me,

    I tried, I don't get.

    Please help me, how calculate these?...

    Thank you and best regards,

    A.Kavya

    Hello Kayva,

    First of all, must be defined, the grade you want, ask yourself, if you want to rank by period, branch etc, so you must use "RANK (according TO SIZE).

    I made a sample with the similar columns you use, please give.

    I've done 4 criteria using 'UNION' (not 'UNION ALL', not 'INTERSTECT', 'LESS'):

    And my results are:

    Check it out:

    1st test:-J' have the sum 187 157 538.57 as the sum of the top 10 projects, the Company (Empresa) and period (Mesanodocum)

    2dont criteria: -check the second line "SumaTotalProyectos" which is the sum total of society in Ene-2015 (January 2015) for all projects. Who is 211 249 318,42

    3 criteria:-check the 187 157 538.57 which is the sum of the top 10 projects

    4 criteria: -which is the percentage of it, 187 157 538.57 / 211 249 318,42 = 88.60%

    How can you put?

    1. allows you to check the criteria 1: the sum of the top 10 projects

    Check the filter of RANK

    2 to check the 2 criteria: total sum of society

    3 to check the 3 criteria: ranking of the sum

    4 to ensure criteria 4: percentage

    Note:

    As you can see I have two projects "columns", I need to get the sum of ranking, for example, you must do a ranking by branch and get the same, has twice this column to your criteria and after it allowed you to exclude.

    Kind regards

  • master detail in obiee 11g report

    Hello

    I create report master detail in obiee 11g (11.1.1.6.5). I want to use it to navigate from one report when you click on the chart to another report that has tables and graphs in the same dashboard too.

    Can you please how can I do

    Hello!

    You have two options:

    First: Apply channel Interaction. You can click in your master detail report and automatically your second report will change.

    Second: Use action links.

    Look at this link: OBIEE 11 G - master detail | GerardNico.com (BI, OBIEE, data warehouse and OWB)

    Pls mark so useful

  • OBIEE 11g Services error

    Hi Experts,

    I use Oracle database and obiee 11g 11.1.1.7.0 version after having long db 11g connection and start the obiee services but services can not Kiss properly error in Oracle BI Instancecoreapplication and Essbase Serveressbaseserver1,.

    This type of problem in the face of large number of times, but I another solution. I want to talk about a lot of sites but still facing problem so please solve my problem. Below mentioned a mistake...

    MyApps\MDW\instances\instance1\bin > opmnctl status

    Process pending: instance1

    ---------------------------------+--------------------+---------+---------

    IAS-component | process type.     The NEST | status

    ---------------------------------+--------------------+---------+---------

    essbasestudio1 | EssbaseStudio |    4976. Alive

    essbaseserver1 | Essbase |    7552. Init

    coreapplication_obiccs1 | OracleBIClusterCo ~ |    5160. Alive

    coreapplication_obisch1 | OracleBIScheduler ~ |    3944 | Init

    coreapplication_obijh1 | OracleBIJavaHostC ~ |    3948. Alive

    coreapplication_obips1 | OracleBIPresentat ~ |    7796 | Init

    coreapplication_obis1 | OracleBIServerCom ~ |    6576. Init

    Error em:

    Start failed with 2 errors and 0 warnings. Problems reported by:-: instance1, coreapplication. Check the logs for more information

    OPMN.queryProcessStatus failed with the following exception

    Event processing: SEVERE: element Type: BI_INSTANCE, Id of the item: coreapplication, result of the operation: FAILED_TO_STOP, the detailed Message: error stopping at one or more Instance BI components; Please check the server for detailed message log files

    Event processing: SEVERE: element Type: ORACLE_INSTANCE, item Id:-: instance1, result of the operation: FAILED_CONTACTING_OPMN, Me. retail

    Event processing: SEVERE: element Type: BI_INSTANCE, Id of the item: coreapplication, result of the operation: FAILED_TO_START, the detailed Message: error

    Thank you

    I found the solution for the connection failed in RPD (reposiotry)

    The database connected all services to be cuddly but RPD can not able to see the data error occurred and obiee also offline database error has occurred.

    Check the installation of OBIEE for example folder:

    \Oracle_BI1\network\admin\ and tnsname.ora and then open file check the database

    name of the database = obiee my ip = 192.168.0.129 and port 1522 If what that it either in error means please configure and then display the data in the RPD and OBIEE

    OBIEE =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.0.129)(PORT = 1522))

    )

    (CONNECT_DATA =

    (SERVICE_NAME = obiee)

    )

    )

  • Date formatting to_char - truncate issue zeros

    Hello

    I have used this date formatting in an APEX application, but I noticed that the problem also occurs when you run a simple script in the database.

    The query is:

    Select

    TO_CHAR (sysdate, 'fmDay, GFMD fmMonth AAAA HH:MIPM'),

    TO_CHAR (sysdate, ' HH:MIPM of MON-DD-YYYY "")

    of the double

    The problem occurs when the minutes have a zero in it, in the example that I have attached, it was 14:05, and it shows as 14:05

    https://plus.Google.com/u/0/photos/104459804528712563956/albums/5958573459391223345/5958573462256341170?PID=595857346225...

    Is there a reason that this is happening? I am unable to use the combination I've used? I really want the full date with month and day names.

    Version of DB: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0

    Amanda.

    Just add fm with the time format:

    SQL > select

    2 to_char (sysdate, 'fmDay, GFMD fmMonth AAAA fmHH:MIPM')

    3 double;

    TO_CHAR (SYSDATE,'FMDAY, FMDDFMMONTHYY)

    ------------------------------------

    Wednesday, December 18, 2013 09:03

    Concerning

    Girish Sharma

  • Receive error message when calculating the two fields with different date format

    I'm more familiar with SQL Server and Oracle, then after a search online without success, I ask here.

    I use developer PL/SQL with DB Oracle 11g Release 11.2.0.2.0 Enterprise 64-bit

    MyTable:

    ID_Number VarChar2

    Date of Date_Received

    Select ID_Number,

    Date_Received,

    To_Date (substr (ID_Number, 1.6), "YYMMDD") SentDate,.

    Date_Received - NumDays To_Date (substr (ID_Number, 1.6), "YYMMDD")

    FROM MyTable

    Where substr (ID_Number, 7.3) in ('ABC', 'ABD')

    and length (Trim (translate ((substr (ID_Number, 1,6)), '0123456789',' '))) a null value

    ID_Number Date_Received SentDate NumDays

    131002ABC1654106 10/16/10/2013-2013 14 2

    131004ABD8813899 4/12/2013-4/8/2013 4

    131014ABD1844832 10/16/10/14 OF 2013-2013 2

    Sometimes the first 6 characters in the ID_Number aren't the numbers and length (Trim (translate deletes records))

    I want just the records where NumDays > 2

    I tried to put the request in a subquery and using where NumDays > 2 outside.  I also tried using the calculation directly in the Where clause.  Without it in Where clause it works very well, with him in a place, I get the following error:

    ORA-01931: Date format picture ends before converting all of the input string


    I don't know how to put the two dates in the same format.  I tried to declare the format without result.  I don't understand how I can calculate in the selection, but do not use the same calculation in Where clause.

    Thank you for your help.

    Hello

    SQL is a language to describe the desired results.  How the system gets these results belongs to you don't have much say about which conditions will be applied when.

    One place where you can control the order of things is a CASE expression.  When you say

    CASE

    WHEN condition_1

    THEN expression_1

    END

    You can be sure that expression_1 will be evaluated only when cond_1 is set to TRUE.

    Try something like this:

    WITH got_sent_date AS

    (

    SELECT id_number, date_received

    CASE

    WHEN the TRANSLATION (SUBSTR (id_number, 1, 6)

    , 'x' 0123456789 '.

    , 'x'

    ) IS NULL

    THEN TO_DATE (SUBSTR (id_number, 1-6)

    , "YYMMDD".

    )

    END AS sent_date

    FROM MyTable

    WHERE (id_number, 7, 3) SUBSTR ("ABC", "ABD")

    )

    SELECT id_number

    date_received

    sent_date

    , date_received - sent_date AS num_days

    OF got_sent_date

    WHERE date_received > sent_date + 2

    ;

    If you would care to post some sample data (CREATE TABLE and INSERT statements) and the results desired from this data, I was able to test this.

    Of course, you'll still errors of execution if id_number starts with 6 digits, but they do not have to be valid, for example '131100' or '130229'.  This is one of the reasons why the date information storage in VARCHAR2 columns are a bad idea.  To work around this problem, see

    https://forums.Oracle.com/message/4255051

Maybe you are looking for