Issue in Date Range Prompts

Hi,
We have two fields in our Bex Query u2013 First Date of Current Month and Current Date. The fields are populated using the logic below
First Date of Current Month u2013
Current Date - This is populated using the Customer Exit function in BW Query.
We have created  three  universe level prompts based on the above queries
First Prompt:
<FILTER KEY= "@Select(Debit Memo Date\Debit Memo Date LOV)">
<CONDITION OPERATORCONDITION= "Between">    
<CONSTANT CAPTION= "@Prompt('Enter\Select DM Start Date: ','D','First day of Current Month\First day of Current Month',mono,free)"/>
<CONSTANT CAPTION= "Select(Date2\Today)"/>
</CONDITION></FILTER>
Second Prompt:
<FILTER KEY= "@Select(Debit Memo Date\Debit Memo Date LOV)">
<CONDITION OPERATORCONDITION= "Between">    
<CONSTANT CAPTION= "@Select(First day of Current Month\First day of Current Month)"/>
<CONSTANT CAPTION= "@Prompt('Enter\Select DM End Date: ','D','Date2\Today',mono,free)"/>
</CONDITION></FILTER>
Third Prompt:
<FILTER KEY= "@Select(Debit Memo Date\Debit Memo Date LOV)"><CONDITION OPERATORCONDITION= "Between">     <CONSTANT CAPTION= "@Select(First day of Current Month\First day of Current Month)"/>
<CONSTANT CAPTION= "@Select(Date2\Today)"/>
</CONDITION></FILTER>
The First prompt is running fine and giving records from the Start date entered by user to Current date, but we are not getting any records when we use second and third prompt. 
Thanks,
Pankaj G

It's interesting using the same format mask for the application format mask fixed your issue, you mean to say after using the format mask in application you are able to enter time between 00:00 am and 00:59 am. I had filed a bug on this and will be working on this issue. Thanks for reporting this issue.

Similar Messages

  • Issue with Date Range Search

    Hi, I am doing a search on a table using a date column having index defined on it.
    when I am using below query:[Here 26-OCT-2010 is the current date.]
    SELECT *
    FROM cs_incidents_all_b
    WHERE incident_date BETWEEN TO_DATE ('25-OCT-2010 00:00:00',
    'DD-MON-RRRR HH24:MI:SS'
    AND TO_DATE ('26-OCT-2010 23:59:59',
    'DD-MON-RRRR HH24:MI:SS'
    Explain plan statistics is - Cost : 4, Bytes: 559, Cardinality:1
    If I run the same query by changing the dates and with 1 day duration, the cost is increasing significantly:
    SELECT *
    FROM cs_incidents_all_b
    WHERE incident_date BETWEEN TO_DATE ('01-OCT-2010 00:00:00',
    'DD-MON-RRRR HH24:MI:SS'
    AND TO_DATE ('02-OCT-2010 23:59:59',
    'DD-MON-RRRR HH24:MI:SS'
    Explain plan statistics is - Cost : 3,643, Bytes: 2,217,553, Cardinality:3,967
    And if I increase the date range, the cost is becoming too high.
    If anybody faced this proble previously, kindly help me to resolve.
    Thanks in advance,
    Sam.

    Tuning request
    Take a look at the
    When your query takes too long ...
    HOW TO: Post a SQL statement tuning request - template posting

  • Date (Range) Prompt to update page reports

    Hello,
    First I'd like to say that I am a beginner sql developer and completely new to apex. I've been thrown into it and I am learning as I go. With that in mind please forgive me for asking some, probably, obvious questions. Thanks in advance for any help.
    My page has one prompt, Time Period, a drop down box with the following values: Select Time Period (Null Display Value), Last Week, Last Month, Last Quarter, Last Year, Select Dates. Based on this selection I want to do a couple of things.
    My prompt is built off a static list of values and returns 1,2,3,4,5 according to the selection.
    How or where do I need to use a case or if/else statement to first check that prompt value and then define my start and end date? I'm quite confused as to whether I should be using a computation or a process or maybe something else..
    Thanks.

    If you want to show or hide items(or regions) on the page depending on what choice the user made, use(and learn) dynamic actions.
    If you need to change server session state, you'll do it in a computation to change one item or do it in process for everything else.
    IF and CASE statements are similar in functionality and you'll find good descriptions on the net using the keyword "PLSQL CASE IF".
    Note: There is a difference between a CASE statement and a CASE expression even do their syntax are almost the same.

  • Project Online - offline project plan prompts for date range to be entered when accessing Resource Usage view

    When I save a project plan to my local computer from Project Online and open it up in an offline mode and access Resource Usage view I get prompted with Date Range dialog boxes with the first one saying "Show resources/assignments that start or finish
    after:" and the second one with "And before:".
    I don't have any filters that are setup in Project Online that are not available in offline mode to trigger these prompts.
    Please let me know what could be causing the date range prompts. Thanks.

    Hi,
    You probably retrieve an enterprise filter into your local file. Just open the organizer from MS Project, go to the filter tab (be sure to have your project selected in the drop down menu at the top left of right of the organizer) and delete the date range
    filter.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Date Range - CM14 and BI Publisher

    Is there a way to make a date range prompt for reports for CM14 with BI Publisher.
    I can get it to work in BI Publisher but it does not transfer to CM14.
    Any ideas?

    Hi,
    The prompt for criteria will need to be added to report's data model within BI Publisher.  After logging into the Oracle BI Publisher User Interface, do the following:
    1.- Click the Edit link for the data model that is associated with the report that you want to add the prompt to.  If you are prompted that the Default Data Source is invalid, select the correct data source from the available drop down list.
    2.- Click the Parameters link located towards the bottom left of the screen.
    3.- Click the green plus symbol to add a new, blank row.
    4.- For the Parameter Name field, enter the following: CRITERIA
    ***Note - Ensure that the Parameter Name field is populated with all capital letters***
    5.- For the Data Type, select String
    6.- For the Default Value, you will enter information about every field you would like to prompt on.  The format for this information will be: table_name.column*datatype(length)^.  This will be repeated for as many columns as you would like to be able to prompt on.  Here is an explanation of each component:
    table_name - The table or view that the field being prompted on exists in.
    column - The column name of the field being prompted on.
    * - The asterisk connects the field's database information with the field's input specifications
    datatype - The data type of the field being input.  This tells Contract Management how to handle the input. For example, if you use datetime, it will know to put a calendar picker in the Prompt for Criteria window when printing.
    length - The maximum length that a user will be able to input in the Prompt for Criteria text box.  This value will not always be required, as datetime do not allow manual entry, only picker selection.
    ^ - The carrot denotes the end of the column specification.  Any other columns could then be added after in a continuous string. You can add as many as you like.
    Example: The following would be used to be able to prompt on a Contract's To Vendor, Total Cost, and/or Document Date:
    cnmt.to_vendor*char(8)^cnmt.total_cost*int(16)^cnmt.document_date*datetime^
    7.- For the Parameter Type, select Text
    8.- Click the Save (Floppy Disk) icon in the top right to save the changes and test the report further.
    9.- Log into the Contract Management Administration page (http://server_name:port/exponline/adminlogon.jsp)
    10.- Click the Server Configuration link and then click the Import Reports & Forms button
    11.- Restart the Contract Management web server to make this new prompt available to your end users.
    Best regards,
    Matías G. Uribe

  • Identify all Quarters associated with a Given Date Range

    Hi,
    I am trying to create a Crystal Report that shows all Quarters data for a give date range. For E.g. the user defined date range is 02/20/2013 - 01/15/2014, the report should include the data for Q1-2013 till Q1-2014. Is there a simpler way to achieve this functionality.
    I will really appreciate your help/guidance on this.
    Regards,
    acb

    Hi Chandra,
    Do you have a Date Range prompt or two separate prompts for Start Date and End Date? If it's a Date Range prompt, use this as the Record Selection Formula:
    datevar start := Minimum({?Date_Range_Prompt});
    datevar end := Maximum({?Date_Range_Prompt});
    {Date_Field_in_Database} >=
         If start in Calendar1stQtr then
             Minimum(Calendar1stQtr)
         else if start in Calendar2ndQtr then
             Minimum(Calendar2ndQtr)
         else if start in Calendar3rdQtr then
             Minimum(Calendar3rdQtr)
         else if start in Calendar4thQtr then
             Minimum(Calendar4thQtr)
    AND
    {Date_Field_in_Database} <=
         If end in Calendar1stQtr then
             Maximum(Calendar1stQtr)
         else if end in Calendar2ndQtr then
             Maximum(Calendar2ndQtr)
         else if end in Calendar3rdQtr then
             Maximum(Calendar3rdQtr)
         else if end in Calendar4thQtr then
             Maximum(Calendar4thQtr)
    -Abhilash

  • How to make default values for date range?

    Dear Colleagues,
    My customer is asking for a default value for a date range prompt.
    The FromDate should contain the 1st of current month, the ToDate should contain current date.
    Does anyone have any idea how I can meet this demand?
    Regards Silje

    Hi Federico,
    Thank you for the answer, we are back to the challenge after summer vacations!
    I have created a variable in the universe: SELECT current date  as TODAY FROM SYSIBM.SYSDUMMY1. I Called it TODAY.
    Then I created a prompt in the query based on Date. In Prompt Properties I tagged for "Set Default Values" and I typed in TODAY.
    When I try to run the query I get the error message:  The date for the query filter based on 'Date' is invalid (WIS10704).
    What is wrong? What do I have to do differently?
    My goal is to have a default for Date that gives me today..
    Regards Silje

  • Date ranges with OLE DB

    Post Author: georgeb
    CA Forum: Data Connectivity and SQL
    Does anyone know if the issue with date ranges in OLE DB reports using Visual Foxpro databases has been resolved in Crystal Reports 10?
    Currently all OLE DB reports that use date ranges crash with:
    Failed to open a rowset.Details: ADO Error Code: 0x80004005Source: Microsoft OLE DB Provider for Visual FoxProDescription: SQL: Column 'DATETIME' is not foundNative Error: 806We referred this to Business Objects some time ago and their comment was that they do not supportVisual FoxPro ...
    Any assistance would be appreciated.

    Here is how you can do datetime range with EOMONTH:
    SELECT Count(DISTINCT[form number]) AS OutofFunding
    FROM [dbo].[newview]
    WHERE [cohort desc] IN ( 'Apprenticeships' )
    AND [expected end] > Eomonth(Getdate(), -1)
    AND [expected end] < Dateadd(dd, 1, Eomonth(Getdate(), 4));
    BLOG on datetime ranges:
    http://www.sqlusa.com/bestpractices2008/between-dates/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • How to prompt date range for a single column in reports

    Hi All,
    I am having a prompt which shows from date and to date, both these columns will come from day column of calendar .We want that our report values should be between the from date and to date.Can someone tell me how can this be achieved.Because if we build a report we will pull day column from calendar and say its prompted.How can we get the condition that day clumn should be between from date and to date of prompt.
    Thanks and Regards,
    Amrit

    Hi vineet,
    Thanks for your reply
    I am having one prompt where we will have two columns from date and to date, both these columns are coming from same column called day in mth_calendar.I am having 1 report where the date range should lie between from date and to date of prompt.In this case should I use your second suggestion or the first one.
    Thanks,
    Amrit

  • Predefined Date Ranges as List of Values in Webi Prompt

    Hi All
    We have a Webi report that has a custom object "Date End" (BW tech name ZDATE_END referencing 0DATE).  Users would like to see in the prompt's List of Values predefined date ranges.
    In other words, when the report is executed, for that "Date End" prompt, 2 options should appear in the List of Values:
    Current
    1 Year
    whereby-
    "Current" has been predefined as any "Date End" in the range (Current Day) to (31.12.9999)
    "1 Year"  is any "Date End" in the range (Current day -365) to (Current Day -1)
    I suspect I need to create a Filter condition on the "Date End" object in the Universe Designer and I have been trying with the different operators and prompt settings, etc but I am not getting it right.  The parsing is OK, but the filter is not happening in Webi and the report is bring back all records.
    Can anyone please assist with how to create such conditions in the Designer (steps, syntax, etc) ?
    We are using SAP BW 7 and Webi XI 3.1 and run on a DB2 database.
    Thanks in advance
    Anton
    Edited by: Anton Vogel on Jul 20, 2011 10:52 AM
    Edited by: Anton Vogel on Jul 20, 2011 12:11 PM

    Hi All
    We have a Webi report that has a custom object "Date End" (BW tech name ZDATE_END referencing 0DATE).  Users would like to see in the prompt's List of Values predefined date ranges.
    In other words, when the report is executed, for that "Date End" prompt, 2 options should appear in the List of Values:
    Current
    1 Year
    whereby-
    "Current" has been predefined as any "Date End" in the range (Current Day) to (31.12.9999)
    "1 Year"  is any "Date End" in the range (Current day -365) to (Current Day -1)
    I suspect I need to create a Filter condition on the "Date End" object in the Universe Designer and I have been trying with the different operators and prompt settings, etc but I am not getting it right.  The parsing is OK, but the filter is not happening in Webi and the report is bring back all records.
    Can anyone please assist with how to create such conditions in the Designer (steps, syntax, etc) ?
    We are using SAP BW 7 and Webi XI 3.1 and run on a DB2 database.
    Thanks in advance
    Anton
    Edited by: Anton Vogel on Jul 20, 2011 10:52 AM
    Edited by: Anton Vogel on Jul 20, 2011 12:11 PM

  • Prompt user for date range

    Im working on a report that when it is opened by end user, i want it to prompt them for a date range. The report should only show records that fall between the date ranges entered.
    If i use the select expert and hardcode specific dates in, it works and only shows the records i want to see. However i cannot figure out how to set Crystal to prompt the user to enter the in DateTime and the to Date Time fields with Select Expert.
    Ive tried using a Parameter field, which it prompts for the date range, but still pulls up all records as normal. Its like it ignores the date range the user enters.
    The select expert shows this formula, the date/time is all zero's in this example.
    {SHOP_ORD\.REVISED_START_DATE} in DateTime (0, 0, 0, 00, 00, 00) to DateTime (0, 0, 0, 00, 00, 00)
    Please help

    Figured it out.
    Had to create two Parameter Fields {?StartDate} and {?EndDate}.
    Then used Select Expert, Formula Editor to modify the formula and set the in DateTime = {?StartDate} and the to DateTime = {?EndDate}
    This works. Just hide the Parameter fields and you have your range selector

  • How to translate dashboard prompt year/period into literal date range

    I am using OBIEE 10g. I have a dashboard that prompts for a fiscal year and fiscal period (both are numeric data types). I need to use these values in the date filter for my answers request - however, to fully utilize the indexes and partitioning that have been set up on my fact table (Teradata database) I need to be able to convert fiscal year/period to a literal date range and pass literal date values (i.e. 10/01/2011 - 10/31/2011) to my answers filter. So far I have been unable to do this, I'm hoping someone has some ideas.
    Here are some things I've tried so far:
    In the dashboard prompt, set variables var_year and var_period (which would be set to 2012 and 10, respectively). Create a filter on my answers request for Date (from calendar dimension) that calculates a min/max date value based on var_year and var_period. While this works to return data, the sql is not optimized as it does not contain literal date values for the filter (10/01/2011 - 10/31/2011).
    Create a subreport that takes the year/period from the dashboard prompt and calculates 2 columns, one for the "From Date" (using min calculation) and one for the "To Date" (using max calculation). Then create a filter on my answers request that uses the results of this subreport to create the date filter. Again this works - however, instead of passing the literal date values for from and to dates, it passes the min/max calculations so that these are executed again in the answers request sql. Therefore again this is not optimized, as it is not passing literal date values for the filter.
    I have only been able to get this to work by creating a prompt for entering a from and to date directly, and using this to pass to the answers request filter. This generates optimized sql as it contains literal date values. However, this is not acceptable to the users as they want to enter fiscal year/fiscal period at the dashboard prompt, not a date range.
    I have tried to get the fiscal year/fiscal period columns in the dashboard prompt to set another dashboard prompt for a date range, thinking I could then set new presentation variables for those from/to columns to use in the answers request, but I can't figure out how to do this. Is this even possible, to use a dashboard prompt value to set a subsequent dashboard prompt value?
    Is there some other method of converting these prompt values to literal dates that I am missing?
    Thanks in advance for any help you can provide.
    Rhonda

    Disregard. I gave up and just brought in the Fiscal Period Start Date and Fiscal Period End Date to the rpd so I can use them in the dashboard prompt, created presentation variables for each, and used those in the report filter.

  • ACI  - Date Range issue for Sales Details report

    I am working on ACI setup for one of my client. I set everything us as per documentation.
    This is regarding ‘Sales Details’ (Public Folders > ATG > Commerce > Sales > All Sales) report.
    Report is being generated if I select ‘Date Range’ under ‘Time Period’; but if I select ‘Predefined’ I get below errors:
    RQP-DEF-0177
    An error occurred while performing operation 'sqlPrepareWithOptions' status='-9'.
    UDA-SQL-0107 A general exception has occurred during the operation "prepare".ORA-32035: unreferenced query name defined in WITH clause RSV-SRV-0042 Trace back:RSReportService.cpp(758): QFException: CCL_CAUGHT: RSReportService::process()RSReportServiceMethod.cpp(239): QFException: CCL_RETHROW: RSReportServiceMethod::process(): promptPagingForward_RequestRSASyncExecutionThread.cpp(774): QFException: RSASyncExecutionThread::checkExceptionRSASyncExecutionThread.cpp(211): QFException: CCL_CAUGHT: RSASyncExecutionThread::run(): promptPagingForward_RequestRSASyncExecutionThread.cpp(824): QFException: CCL_RETHROW: RSASyncExecutionThread::processCommand(): promptPagingForward_RequestExecution/RSRenderExecution.cpp(593):
    Has anybody come across this issue?
    Any help in this regard will be highly appreciated.
    Thanks,
    Mukesh

    Contact Oracle support. I think we've seen this one before if using a particular version of Oracle(11.1?). There's a particular version of Oracle that doesn't support queries in a WITH clause that aren't referenced in the main query. Cognos seems to generate these types of queries not knowing that the version of Oracle doesn't support it. According or Support Article ID 1063400.1 you can patch this particular problem with Oracle or you can upgrade to Oracle 11.2. I also think that was a to get Cognos to generate an alternative query that doesn't use the WITH clause at all. Something about disabling the use of WITH in all queries by making a change to the report definition or alternatively a global change to the metadata model.
    Good luck...
    Andrew

  • Developing prompts to enter a date range

    I need to develop a report for an agency allowing their user to select information from a table, between a user specified date range, which could change daily. The user needs to be prompted to enter a city, a start date, and an ending date... Then display and print this report based on their entered criteria. I would like to use the pop-up date pickers if possible. Can you give me some direction as to how I would go about developing the required prompts.

    Raj,
    Thank you for your help, I believe it is what I am trying to do. I am still having trouble bringing back data.. I feel that I am very close..
    The new page I created was PAGE 33.. On this page I have
    REGION:
    REGION: (Title-Retail-Labels)
    TYPE : SQL Query
    REGION SOURCE:
    select name,address,city,state,zip
    from retail
    where RENEWAL_DATE between to_date(:P33_START_DATE,'DD-MON-YY') and to_date(:P33_END_DATE,'DD-MON-YY')and POD =:P33_POD
    X Use Query-Specific Column Names and Validate Query
    ITEMS:
    10: P33_START_DATE Date Picker (DD-MON-YY) (Source:SQL Query)
    20: P33_END_DATE Date Picker (DD-MON-YY) (Source:SQL Query)
    30: P33_POD TextField (Source:SQL Query)
    I am querying data from the Retail table with the following columns.
    ID, Name, Address, City, State, Zip, Telephone, Fax, Permit, Renewal_Date, Owner, Contact, SalesTax, Violations, Compliance, Lease, Look, County, POD
    If I modify my query to say where renewal_date is not null or POD is not null I pull back the appropriate records..
    POD (column name) is basically point of destination and is a city..
    When I run the page it allows me to select two dates and type in a city. I have a Submit button to submit to page 33... It says no data found (the default).
    Does anything look incorrect..
    Thank you in advance for your help,
    Kevin

  • Querying on date range issue?

    Hi,
    I'm looking for a solution for this issue,
    In the DB Table there is a column of type TIMESTAMP. so when i query for date range using BETWEEN keyword it returns data inserted on next day at 12.00.00 AM
    example :
    Table A
    ColumnA_
    data1
    data2
    data3
    ColumnTime_
    08/03/2010 11.55.00 AM
    08/04/2010 12.00.00 AM
    08/04/2010 12.00.01 AM
    here when I query using between (08/03/2010 and 08/04/2010) keyword on Column_Time then ,
    Ouput
    data1
    data2
    but I'm just looking for data1 in the output, any ideas?

    Between is inclusive of both boundaries:
    column between condition1 and condition2Translates into
    condition1 >= column
    and
    condition2 <= columnSo tell the code what you want ... in your case
    condition1 >= column
    and
    condition2 < columnI'm not sure if you expect the >= or not...adjust as needed.

Maybe you are looking for