Reg Date Prompts

Hi All,
can any one help me...pls
I have 2 prompts year and quarter.
Eg.. if i select 2011 and q1
it should display the begining month of the first quarter (that should be 'JAN') like wise if i select 2011 and q2 then it should display begining month of second quarter (that should be 'Mar')..
can any one help me

Hi Bhargav,
Two Changes to be done.
1. Prompt: for the Qtr column set a presentation variable like v_qtr.
2. Report: Add a calculated column with the below formula
case @{v_qtr} when 1 then 'Jan' when 2 then 'Apr' when 3 then 'Jul' when 4 then 'Oct' end
Let me know if this helped.
Regards,
Jay
Edited by: Voltaire on Nov 18, 2012 11:26 PM

Similar Messages

  • How to get date prompts from one date column

    i have a requirement where i have to filter the data between two date prompts. i have only one date column and the date in the prompts shuld be selected by calendar.
    i have seen may approaches to do this and i got one where two dummy date columns should be declared in repository and used to define the date prompts.
    but using other methods i could not get the calendar option in prompt.
    but is there any other way to get the prompts with calndar selection without defining the dummy columns in repository
    thanks

    you can do that first select the date column you want to use in dashboard prompt then select another column and in the dashboard prompts then open the fx of the date prompt you first selected copy that and paste it in the second column and in the control section click on calender it will work you can use same date column as two prompts with out creating new column.

  • 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

  • Crystal Report Date Prompt  Query from SAP BW

    Dear Support,
    Using Crystal Report 2008 and Query is design In SAP BW
    Date Prompt is made mandatory in Query at Query Designer.
    Problem:  Requirent is that Date promt shoud take value currentdate-1
    when report is excuted first date prompt will show in that prompt value should have today date - 1 which is yesterday date.
    how to pass formula to date prompt?
    Thanks

    If the prompt value should always be CurrentDate -1, then there is no need to use a prompt at all. Just put the formula to the selection criteria.
    If you want the prompt to default to CurrentDate -1, while allowing the user to change the prompt to another date if they wish... That won't work. CR won't allow you to use a formula as the default value in a prompt.
    If there is a BO Universe between you and the tables... IE, you're building against the universe, you'll need to get with the universe designer and have them make an alternate field available that has the formula hard coded in the SQL as opposed prompting.
    HTH,
    Jason

  • A Date prompt defaulting the data in Report based on selection

    Gurus,
    I have a requirement , where i have a (in between) date prompt set in the dashboard current defulting to Start Month date and End Month date of current month.
    What the user want is based on the selection using a drop down in dashboard which has got values Last Day, Last week, Last Month , the default values in Date filter should change in dashboard.
    For Eg. If the user select Last Week, the in between date filter show the default date value as Last Week Mon and Last Sun, and should filter out the report based on that.
    Any idea's are welcome....
    Thanks & Regards
    -Saurabh

    Try to see if you can get user to agree on something easier.
    Here are the steps to achieve what you want.
    1. Create a prompt for 1 day, 2 week, and 3 month
    2. Create three separate reports based on above selection, which has page prompt for day/week/month respectively.
    3. Create GN based on step in 1 and then let UI change between three reports you created in step 2
    I hope this helps,
    Best luck

  • Display date prompt in crystal report output

    Hi There,
    In my report output the values entered in date prompt(range) is not displayed.
    I've prompt  that is created on document created on field. The properties of prompt are
    Posting date...... date.........static values
    value field : ERDAT.....
    value options:
    optional prompt: false
    allow custom values: true
    allow multiple values : false
    allow discrete values: false
    allow range values: true

    Hi Raj,
    I believe you're trying to display the start date and the end date of the date range parameter.
    Create a formula called 'start':
    Minimum(?Postingdate) //This formula extracts the start date from the date parameter
    Similarly, create another formula called 'end':
    Maximum(?Postingdate) //This extracts the end date
    Place these formulae on the desired report section.
    P.S: You may even do this in a single formula.
    Hope this helps!
    -Abhilash

  • 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

  • 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.

  • 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

  • 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

  • Set default values in date prompt

    Hello,
    I have tried everything I can find in the forum to resolve a very daunting task. Thanks in advance for all your help.
    We have Crystal Server 2008 with Tomcat and IIS.
    I have several reports that use start date and end date  as parameters. When the user launches the report date prompt dialog box appears where you user can input the values. Typically (75% ) the user is always looking for yesterday's data however at times he/she would want to pick different date range to review the results. The requirement is to set the default values in the dialogbox to be currentdate-1. Any help is greatly appreciated.
    Paul.

    What we do for all of our reports is have the date parameters be text fields that allow something like PD for prior day, PM for prior month, CM for current month, YTD for year to date, etc.  We then have crystal functions (and database functions; one for start dates and one for end dates) that translates the characters to real dates.  If the text entered does not match one of the "mnemonics", it is assumed to be a date, and it is treated as such.  This allows using the same report for scheduled daily, weekly, monthly, quarterly, etc. and ad-hoc runs without any other special coding.  In your case, you'd set the default parameter values to PD.
    Our mnemonics are of the form [PY]{P|C}{D|W|M|Q|Y}[DOW][{+|-}n], where [PY] is optional to specify a prior year date (for comparison reports), P=Prior, C=Current, D=Day, W=Week, M=Month, Q-Quarter, Y=Year, [DOW] is optional, and used with [PY] to specify that you are looking for the same day of week in the prior year (if CD=8/24/09, PYCDDOW=8/25/08), and the +n or -n allows you to add or subtract days/weeks/months/quarters/years (depending on the interval used) to the date.
    HTH,
    Carl

  • 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..

  • Date prompt to displayed in header&Format date format in header MM/DD/YYYY

    we have a date prompt. Based on the date selection on prompt, it has to be appeared on the Report header. Actually RELEASED_DATE is timestamp format. we need to format this to dispaly only MM/DD/YYYY format in Report header section.
    Report Name : <?$RELEASED_DATE?>
    We are displaying the same RELEASED_DATE with timestamp in Report section
    <?param@begin:CRSU_RELEASED_DATE?>

    can you paste the timestamp being displayed?
    You can use, format-date function or other, but its all based on the data you have for DATE.

Maybe you are looking for