Date Prompt in OBIEE 11.1.1.7.0

Good Afternoon, hope you all are well.
We have the following issue in our production environment.
Our Exact Date prompt is causing our reports to error, the reason being is that the relevant Fact table to the prompt has no data.
Is there a piece of SQL we can add to the prompt to say if it cannot find any data to that specific date then use SYSDATE?
Regards
Rayno Matthee

Thats not giving correct value. the Amount filter is also considering the date filters.
Data Available:
UserName    Month            Amount   
A1               Jan 2015          100               
A2               Feb 2015          150               
A3               Mar 2015           200              
I am getting below result:
Filters
Date from: 01-FEB-2015
Date to : 24-March-2015
Below is the expected result.
UserName    Month            Amount    YTD Amount[FILTER("Amount" USING("Dim - Time"."Date" between date '@{date1}{2015-01-01}' and date '@{date2}{2015-03-24}'))]
A2               Feb 2015          150                    350
A3               Mar 2015           200                    350
Below is the expected result.
Filters
Date from: 01-FEB-2015
Date to : 24-March-2015
UserName    Month            Amount    YTD Amount
A2               Feb 2015          150                    450
A3               Mar 2015           200                    450

Similar Messages

  • Date prompt in obiee

    Hi Gurus,
    Prompt Name(date) =13-sep-10
    table name -test1
    requirement is to once i select the date from Date prompt let us say 13-sep-10 so it should select all the data after that date
    so should be query for the same in prompt SQL
    please help
    thanks

    TimestampDiff and TimestampADD( Difference of two dates) in OBIEE
    How to get a difference between two dates (in terms ) of days,weeks,months what every it may be
    The below formula gives you no.of days between day date and current_Date
    Days difference:
    TIMESTAMPDIFF(SQL_TSI_DAY, Time."Day Date",CURRENT_DATE)
    The below formula gives you no.of months day date and current_Date
    Months difference:
    TIMESTAMPDIFF(SQL_TSI_MONTH, Time."Day Date",CURRENT_DATE)
    The below formula adds months to day date column
    Toadd 12 months to a date column:
    TIMESTAMPADD(SQL_TSI_MONTH, 12,Time."Day Date")
    similarly we can write the formulas using different intervals based on the date format in the column
    Here are the intervals :
    SQL_TSI_SECOND,
    SQL_TSI_MINUTE,
    SQL_TSI_HOUR,
    SQL_TSI_DAY,
    SQL_TSI_WEEK,
    SQL_TSI_MONTH,
    SQL_TSI_QUARTER,
    SQL_TSI_YEAR.

  • Validating is between date prompt

    Is there a way to validate the is between date prompt in OBIEE?
    The user should not be able to select a end date which is earlier than the start date.

    hi,
    How about this?
    http://shivabizint.wordpress.com/2009/04/21/date-between-validation-for-dashboard-prompt/
    before doing,take a backup of your .js file
    thanks,
    saichand.v

  • Date prompt issue in obiee 10g

    Hi Experts,
    Am facing the date prompt error, but the type is mentioned as date, after this also am getting same problem
    plz help
    Thanks
    Vijay

    Hi,
    It will be useful if you specify what error you are getting and what you are trying to do.
    Regards
    MuRam

  • OBIEE date prompt format yyyy-mm-dd

    Dear All,
    We did migration from obi 10g to 11g (version 11.1.1.7.0) .
    I have troubles with conversion of date prompt:
    My date format is dd.MM.yyyy, but when I pass date prompt into sql it is in format YYYY-MM-DD.
    How can I change that my date prompt will always stay in format dd.mm.yyyy?

    Hi,
    There are couple of ways we can do the date format.
    Please refer my blog.I have provided step by step implementation with screenshots.
    http://satyaobieesolutions.blogspot.in/2013/06/dateformat-converting-using-evaluate.html
    http://satyaobieesolutions.blogspot.in/2013/06/date-format-change.html
    1. Using evaluate function we can modify the format.
    ex:
    USING EVALUATE
    cast(Evaluate('to_char(%1,%2)',"Inventory"."Catalog"."dbo"."Dim_W_DAY_D_Inv_Unallocated_Run_Month"."CALENDAR_DATE",'YYYYMon') as varchar(10))
    or,
    cast(Evaluate('to_char(%1,%2)',<<COLUMN HERE>>,'YYYY-Mon') as varchar(10))
    2. Open your report then click column properties then select Data format then select custom then here you can put which format you want.
    Hope this help's
    Thanks,
    Satya Ranki Reddy

  • How to handle date prompt in report

    Hi I have date column on database as timestamp.
    Now need to apply filter in report based on date prompt.
    Do i nee to cast it in Date format..or how i can do it.
    thanks,

    Hi User,
    Which versionof obiee are you in? If you are on 10.1.3.4.1 version, apply PATCH 9492821 to fix this issue.
    Can you do the following checks,
    In the repository physical layer, set the column to have a data type of date
    In the BMM layer, where the column is mapped, edit the column mapping to contain a CAST function to cast as date
    Regards,
    Dpka

  • Date format in OBIEE 11g is changed.

    Hi,
    we have installed 11.1.1.5 on linux x86-64bit machine. after that we upgraded the OBIEE 10.1.3.4.1 rpd and catalog to OBIEE 11.1.1.5.
    everything was working fine at this stage.
    After that we did some development in 10g ... and again upgraded the rpd and catalog to 11.1.1.5 using upgrade assistant.
    but after that the date format in all the date prompts on the dashboards is changed to MM/dd/YYYY.
    How to change it back to dd/MM/YYYY?

    Hi Visal,
    Please award points it is useful the above answer.
    2. After installation the date format default : DD-MM-YYYY.
    I am not sure, I think you need install patch file in this version on your server or you need to change ALTER SESSION set NLS_DATE_FORMAT = 'DD/MM/YYYY'.
    I though this is bug in server version.
    What server its showing this format means(Unix,Linux,AIX)?
    Award points it is useful.
    Thanks,
    Satya

  • Date prompt not displayed in physical query

    Hi All,
      I am using obiee 11.1.1.6.8 where i am not able to view the date prompt filter which is used in dashboards in  nqs(physical query).. But the same i can able to view in Logical query..Can any one help on this issue.
    Reagrds,
    Guru

    Check cache settings.
    prefix this in prompt
    set variable disable_cache_hit=1;
    btw: Did you get a chance to look at https://forums.oracle.com/thread/2594287

  • Getting an error - with date prompt

    Hi,
    I really need a help to resolve this issue -
    I have created a date prompt As of date with presentation variable name CPG_CASH_DATE.
    I have use this variable in different number columns - Amount Due Original , Amount Applied , Amount Due Remaining.
    Inside the amount due original the function is CASE WHEN "Fact - CPG AR Payment Schedules"."Due Date" <=CAST(CAST(substring(('@{CPG_CASH_DATE}'),1,4)||'/'||substring(('@{CPG_CASH_DATE}'),6,2)||'/'||substring(('@{CPG_CASH_DATE}'),9,2)||' 00:00:00' AS CHAR) AS DATE) THEN ifnull("Fact - CPG AR Payment Schedules"."Amount Due Original",0) ELSE 0 END
    Inside the amount applied the function is CASE WHEN "Fact - CPG AR Payment Schedules"."Due Date" <=CAST(CAST(substring(('@{CPG_CASH_DATE}'),1,4)||'/'||substring(('@{CPG_CASH_DATE}'),6,2)||'/'||substring(('@{CPG_CASH_DATE}'),9,2)||' 00:00:00' AS CHAR) AS DATE) THEN ifnull("Fact - CPG AR Payment Schedules"."Amount Applied",0) ELSE 0 END
    Sometimes it is working -but now I am getting below error.
    Oracle Error code: 1861, message: ORA-01861: message: ORA-01861: literal does not match format string
    at OCI call OCIStmtExecute:
    Please help me to resolve this issue.
    Poojak

    Poojak,
    This is a common error when attempting CAST to dates. I've resolved this in the past using Gerad's post here, http://gerardnico.com/wiki/dat/obiee/cast_as_date
    I'm not sure why you are getting thie inconsistency when you say it was "sometimes" working and now it is not. Perhaps you've been in iterative develpment and changed a few things which broke something here.
    Take a look at Gerad's notes that this will resolve your issue.
    Please awards points if this helps or answers your question.
    Cheers,
    Christian
    http://www.artofbi.com

  • Two Dates Prompt error

    Hi
    Obiee experts
    i have faceing problem in obiee. i have two colums
    1. Etl_start_date 2. Etl_end date
    when i try to create two date prompts one is etl_start date and etl_end_date. Here those columns data type is (DateTime).
    what is the my problem is i have selected to two dates ex:- Etl_start_date= 01-25-2011 and Etl_end_date= 01-26-2011 then i click go button it's showing below error
    date value was expected (received "2011-01-19 00:00:00").
    Error Details
    Error Codes: QABPH2PO
    2. i am try to using this function in the dashboard Prompt but control (calendar option its not showing dashboard prompt) - substring(EVALUATE('TO_DATE(%1,%2)' AS CHARACTER ( 30 ), C_SESS_STATUS.ETL_START_DATE_TIME, 'DD/MM/YYYY HH24:MM:SS') from 1 for 9)
    How to reslove this problem velp me please it's very urgent
    If you have any solution in this issues please send me my mail id
    [email protected]
    Adnvace thanks
    satya

    Follow this link
    Date Prompt using Calendar view

  • 'In Between' Date Prompt to set Session Variables???

    Hi
    Im very new to OBIEE and was hoping someone could help me. I have a date prompt using the 'in between' operator based on a date column.
    I am trying to set up a table in the Physical layer of the RPD using a stored proc (EXEC sp_name). The stored proc takes 2 input paramaters - a start data and an end date. These dates i would like to come from the in between prompt. I have set up the physical table structure to receive the results of the request.
    I looked at setting a session variable but it is asking me to insert sql to set the value and i dont want to hit the database outside of the stored proc. Also, even if i have session variables i cant see how to set them to the values in the prompt when using the 'In Between' operator.
    Im really very confused and i have been searching the net and the documentation for any clue.
    Any help would be appreciated
    Thanks

    In between operator doesn't support presentation variable..
    so break this into is into two prompts...and use equal to operator, then you can use them as request variables which will in turn override your session variables.
    in the report use operator between and use these variables in the filter..

  • Issue with Date prompt Format

    Hi Guys,
    help me..pls
    i have created one date prompt with calendar input, the date format in that prompt is like '03/15/2013' but i need to show the date format like '2013-03-15' . when i try to convert the date format, the user input calendar popup is not enabling only text box is appearing to give date input.
    can any one guide me any work around..pls

    Hello,
    Check this one : http://obiee10grevisited.blogspot.com/2012/02/customizing-obiee-calendar-display.html
    Mark if helps.
    Thanks,
    SVS

  • Issues with less than and grater than condition in prompts in OBIEE 11g,

    Hi all,
    i am facing the prombles with less than grater than conditions in OBIEE 11g.
    i created two date prompts with presentation variables datefrom and dateto
    and i used these prompts in fileters like this using grater than and less than symbol.
    filters are as below:
    lastupdated date is grater than or equal to @{datefrom}{1/1/1950}
    lastupdated date is less than or equal to @{dateto){1/1/1950}
    and created two prompts
    creation datefrom >=
    creation dateto<=
    when i passing the dates 05/12/2004 and 05/12/2005 in prompts after clicking the apply button in OBIEE 11g it feches all the records but i need records between these dates. and one more thing is after clicking apply button the two date fields getting the same date..
    am i do any thing wrong in the above ???
    please let me know friends..
    waiting for ur replyyyyyy..
    Thanks
    Edited by: BI_user on Oct 12, 2011 2:10 AM

    Hi,
    Create date prompts with operator as = not >= (or) <= as you need to save that value in presentation variable and you are filtering report using those variable filters.
    Regards,
    Srikanth

  • Union tables from multiply data srouces in OBIEE

    Hi Pros,
    Recenetly I am doing a POC about union the same structure table from multiply data sources through OBIEE, uptill now I still can't make that out, I have tried below ways :
    Precondition: I have configured those two tables under one physical folder with two connection pool
    1. When do the union in physical level, can not implement since either can not create a view union two tables or using SQL.
    2. When do the union in Logical level, can not implement also
    I know that this kind of data integration should be done before we import into OBIEE model, but there is some policy that we can't integrate, so I just wondering whether OBIEE has this functionlity that can union data from different data source. Please advise.
    thanks

    Hi Srinivas
    After a second thought, I am wondering what you mean in the post, but the situation is that there are two tables in different data sources, Table-A and Table-B in the Physical layer, they are not yet integrated into one table(let's say Table-C), you mean add a data source indictor column into a table in BMM layer, I want to know how can we integrate data (UNION), because from my perspective, if TABLE-A have bleow column ID,NAME,ADDRESS, while the TABLE-B have the same, the difference is the data bwtween them, even we create a logicl table in BMM, drag those those columns, we only get ID,NAME,ADDRESS,ID#,NAME#,ADDRESS#, but the table structure is different.
    The problem is how to create a logic table like TABLE-D (ID,NAME,ADDRESS) which have the data both from TABLE-A and TABLE-B in Physical Layer. While no need to filter by prompt about the data sources. We need to show the data altoghter.
    Please advise if I missing you point.
    thanks
    Edited by: Henry He on Dec 28, 2010 3:21 PM

  • Cascade dashboard prompts in OBIEE 10.1.3.4

    Hi,
    Is there any concept of Cascade dashboard prompt in OBIEE 10.1.3.4.
    I have a requirement as described below -
    Start date and End date dashboard prompts. (Calendar) - Results of Start Date and End Date selected are captured in the Presentation Variables Startdt, Enddt respectively.
    Promotions dashboard prompt (multi select) - This Prompt should show the results from the SQL Query -
    SELECT "- National Promotion - Canadian Market"."National Promotion" FROM "SPDM" where "- National Promotion - Canadian Market"."NP Status"='Active' and "- National Promotion - Canadian Market"."NP Region"='Canada' and "- National Promotion - Canadian Market"."NP Type"='National' and "- Calendar".Date BETWEEN DATE '@{Startdt}{06/28/2010}' AND DATE '@{Enddt}{12/31/2010}'
    But the results are not populating in the Promotions Prompt. Can anyone help me in fixing this.
    Thanks in advance.
    Regards,
    Sri

    Hi
    This is a known OBIEE bug.
    Please refer http://gerardnico.com/wiki/dat/obiee/presentation_variable_initialization
    With a Multi Select dashboard prompt
    You cannot set a Presentation Variable in a Multi Select dashboard prompt in OBIEE 10g. This is expected behavior. OBIEE 10g is working as designed. A Presentation variable can assume a single value. Because of that, presentation variables are not available when using multi select prompts. OBIEE 11g will introduce the ability to set Presentation Variables when using multi select prompts. In 10g you can try as a workaround using more than 1 prompt.
    I don't more work arounds than listed here:
    http://obiee-blog.info/answers/multiselect-prompt-presentation-variable/
    But, these work arounds might not suffice your issue.
    Please let me know if you come up with a better solution.
    Good Luck.
    Chandu.

Maybe you are looking for