In Between date prompt

I have a requirement to create a prompt where there are two dates
FROM_DATE
TO_DATE
Need to put between date functionality that goes like this,
Between FROM_DATE and TO_DATE.
This is easy to implement if there is just one date column, in this case there are two date columns.
Any ideas?

The wrinkle I use is to create a formula; -
case when 1=2 then 0 else 1 end
I then put a prompt on this and repoint it at the date in question as my TO condition.
hope this helps,
Robert.

Similar Messages

  • 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

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

  • 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

  • Date prompt with a between statement

    Can a dashboard support a date range prompt? We are trying to make a prompt and use a between statement. Suggestions?

    I think you are using the prompt from the Prompt tab in Answers. What you need to do is use Dashboard prompts.
    Although Dashboard prompts have a "between" operator," if you use the 'between" operator, the ability to save the selections to Presentation Variables (PVs) disappears. When I need a "between" dates type prompts, I do the following:
    1) Create two Dashboard prompts set to PVs, say StartDate and EndDate. (In the Edit Formula area, use a CASE stmt on the column chosen -- doesn't matter what the column is -- so no action is performed on the column) (e.g., CASE WHEN 1=0 THEN ColumnName.TableName ELSE 'TEST' END)
    2) Change control to "Edit Box" so users can input the dates. (If you select two appropriate date columns, you can use the "Drop-down List" option and have the user select a valid date. In that case, you wouldn't use the CASE statement in step 1.)
    2) In your report, filter on the date column, convert the filter to SQL, and type in the following:
    +"Column name"."Table Name"+ BETWEEN '@{StartDate}' AND '@{uEndDate}'
    3) Place both the prompts and the report on a dashboard and when a start and end date is selected, the "between" function is performed on the report.
    HTH,
    Edited by: LC143 on Sep 3, 2008 9:52 AM

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

  • 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

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

  • Display all dates between date range (Time Dimension left outer join Fact)

    All,
    I have done some searching around this issue but within all the posts regarding date variables, date prompts and date filtering I haven't seen one exactly answering my issue (maybe they are and I just dont have my head around it correctly yet).
    My report requirement is to allow a user to select a start day and an end day. The report should show all activity between those two days - AND display 0/null on days where there is no activity. That second part is where I am getting hung up.
    The tables in question are:
    TimeDim
    EventFact
    CustomerDim
    My BMM is setup as follows:
    TimeDim left outer join EventFact
    CustomerDim inner join EventFact
    If I run a report selecting DAY from TimeDim and a measure1 from EventFact with day range 1/1/2010 - 12/31/2010 .. I get a record for every day and it looks perfect because of the left outer join between TimeDim and CustomerDim.
    But .. if I add in a field from CustomerDim, select TimeDim.DAY, CustomerDim.CUSTNAME, EventFact.MEASURE1, OBIEE only returns records for the days that have EventFact records.
    This is due to the fact that the TimeDim is still outer joined into EventFact but adding in CustomerDim makes OBIEE setup an inner join between those tables which then causes only data to be returned where EventFact data exists.
    There is a way around this in this simple case and that is to define the relationship between CustomerDim and EventFact as an outer join as well. This will give the desired effect (but an outer join between these two tables is not the true relationship) and as I add additional dimensions and add additional logical sources to a single dimension in the BMM it gets complicated and messy.
    Ive also messed with setting the driving table in the relationship, etc.. but it has not given the desired effect.
    Has anyone ever encountered the need to force display all dates within a specfied range with a fact table that may not have an entry for every date?
    Thanks in advance.
    K
    Edited by: user_K on Apr 27, 2010 11:32 AM

    It worked!!!* Even my time drill downs and date based filtering still work!
    That is awesome. Never would have thought of that intuitively.
    Now, just need a little help understanding how it works. When I run my report and check the logs I can see that two queries are issued:
    Query 1: Joins the fact table to all the associated dimensions. I even changed all the relationships to inner joins (which is what they truly are). And calculates the original measure. If I copy and paste this query into sql developer it runs fine but only returns those rows that joined to the time dimension - which is what was happening before. It is correct but I wanted a record for every time dimension record.
    Query 2: Looks like the following:
    select sum(0)
    from timedim
    where date between <dateprompt1> and <dateprompt2>
    group by month *<--* this is the time dimension level specified in Query 1, so it knows to aggregate to the month level as was done in query 1
    Final Question: So what is OBIEE doing ultimately, does it issue these two requests and then perform a full outer join or something to bring them together? I couldn't see anywhere in the log a complete query that I could just run to see a similar result that I was getting in Answers.
    Thanks for all the help .. Id give more points if I could.
    K

  • InfoView date prompts problem

    Hi everyone,
    I have problem with prompt summary object in InfoView. In universe I have date prompts, e.x:
    @Prompt('Period from [yyyy-mm-dd]','D',,MONO,FREE)
    but at prompt summary InfoView shows some numbers, e.x:
    Period from [yyyy-mm-dd] 1315180800000
    I have no idea what causes this situation.
    Edited by: Pietras on Dec 5, 2011 1:35 PM

    792011 wrote:
    Hi Gurus,
    I am trying to get Date Prompts from one Date Column. This is the approach i followed from previous post.
    Re: how to get date prompts from one date column
    My Approach
    1) In the report I set filter on Date column with presentation variable as startdate with some default date and in the fx window i applied
    CASE WHEN 1=0 THEN table.Date ELSE table.Date END
    2) I repeated the same thing by getting same date column with Presentation Variable as Enddate with some default date and in the fx i applied
    CASE WHEN 1=1 THEN table.Date ELSE table.Date END
    3) In the Dashboard prompt i got the same date column twice by applying same formulas in fx, default to - server variable - sysdate and setting Set variable - presentation variable - startdate and same thing with Enddate.
    The report is working fine but the report is not pulling all the records. I mean to say i have data from 12:04:36 am but report is pulling from 12:37:53 am. So i am missing some records. I dont know where i am doing mistake.
    Could someone please help me out
    Thank You
    Edited by: 792011 on Sep 14, 2011 11:00 AMBased on what you said you did, it shouldn't work. The CASE statement you have in steps 1) and 2) which you put in the fx window of two columns, are in effect the same thing as just having two instances of your table.Date column.
    Follow the steps in this link and you should be good to go:
    http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/

  • Date Prompt

    Hi
    I need to select date range from say 2007 Nov to 2008 Feb. How do I go about it? I just have year column and month column. I tried is between on prompt for both year and month and it doesnt work. Is there any other way to do it?
    Thanks,

    Don't just say, "It doesn't work." Publish your code and your steps. It could very well be that you just didn't do it correctly. There are many ways to approach this. Here's one which is the simplest to understand. For this you need 4 prompts saved to the following Presentation Variables (PVs): Start Year (strtYear), End Year (endYear), Start Month (strtMonth) and End Month (endMonth).
    Now on your Year column use the following filter:
    Time.Year WHERE Time.Year BETWEEN @{strtYear} AND @{endYear}
    Now for the month filtering, you should have in your Presentation Layer, two columns: Month (Jan, Feb, Mar,...Dec etc.) and MonthNum (1, 2, 3,... 12). If not, build this in your BMM layer. Do the filtering on the MonthNum column and display the Month column in your report. In the PV for month, use the MonthNum column. Then on your MonthNum column in Criteria use the following filter:
    Time.MonthNum WHERE Time.MonthNum BETWEEN @{strtMonth} AND @{endMonth}
    Use AND between the two filters.
    If the filtering on the report is off a date, simply extract the Year and the Month and modify the above SQL. (For example YEAR(date column) will yield the year portion of the date field.) This applies to extracting the month as well.
    There are variations to this depending on what kind of flexibility you wish the users to use. If it is always the "year selected and the previous year," you only need one Year prompt, say YEAR. The second prompt would then be @{YEAR}-1 in your filter.
    This will give you a start.

  • To display Date prompts in narrative view

    Hi,
    I'm new to Obiee.I have created 'From Date' prompt (greater than or equal to ) and 'To date'(less than or equal to) prompts ,I was able to display the reports correctly ,What i need is to display the chosen dates in title of the report.How can i achieve this using Answers? (i.e)In title i need to display 'Pending Amount Between FromDate to ToDate '
    Thanks in advance,
    Princy

    Hi,
    Thanks for your reply.I was able to complete major part of my need.But the last thing i need is,
    Using presentation variables i was able to display the dates correctly in Table View,but i'm able to display only the 'From Date' in my narrative view.I need to display the 'To Date' also in my narrative view.I had applied two filters (i.e;greater than or equal to presentation variable and less than or equal to presentation variable)in column 'Date' .
    Since i'm using a single column 'Date' for prompts i dont know how to give the condition in narrative view to show the 'To Date' in narrative view which the user chooses from prompts.

  • Need help to join two tables using three joins, one of which is a (between) date range.

    I am trying to develop a query in MS Access 2010 to join two tables using three joins, one of which is a (between) date range. The tables are contained in Access. The reason
    the tables are contained in access because they are imported from different ODBC warehouses and the data is formatted for uniformity. I believe this cannot be developed using MS Visual Query Designer. I think writing a query in SQL would be suiting this project.
    ABCPART links to XYZPART. ABCSERIAL links to XYZSERIAL. ABCDATE links to (between) XYZDATE1 and ZYZDATE2.
    [ABCTABLE]
    ABCORDER
    ABCPART
    ABCSERIAL
    ABCDATE
    [ZYXTABLE]
    XYZORDER
    XYZPART
    XYZSERIAL
    XYZDATE1
    XYZDATE2

    Thank you for the looking at the post. The actual table names are rather ambiguous. I renamed them so it would make more sense. I will explain more and give the actual names. What I do not have is the actual data in the table. That is something I don't have
    on this computer. There are no "Null" fields in either of the tables. 
    This table has many orders (MSORDER) that need to match one order (GLORDER) in GLORDR. This is based on MSPART joined to GLPART, MSSERIAL joined to GLSERIAL, and MSOPNDATE joined if it falls between GLSTARTDATE and GLENDDATE.
    [MSORDR]
    MSORDER
    MSPART
    MSSERIAL
    MSOPNDATE
    11111111
    4444444
    55555
    2/4/2015
    22222222
    6666666
    11111
    1/6/2015
    33333333
    6666666
    11111
    3/5/2015
    This table has one order for every part number and every serial number.
    [GLORDR]
    GLORDER
    GLPART
    GLSERIAL
    GLSTARTDATE
    GLENDDATE
    ABC11111
    444444
    55555
    1/2/2015
    4/4/2015
    ABC22222
    666666
    11111
    1/5/2015
    4/10/2015
    AAA11111
    555555
    22222
    3/2/2015
    4/10/2015
    Post Query table
    GLORDER
    MSORDER
    GLSTARTDATE
    GLENDDATE
    MSOPNDATE
    ABC11111
    11111111
    1/2/2015
    4/4/2015
    2/4/2015
    ABC22222
    22222222
    1/5/2015
    4/10/2015
    1/6/2015
    ABC22222
    33333333
    1/5/2015
    4/10/2015
    3/5/2015
    This is the SQL minus the between date join.
    SELECT GLORDR.GLORDER, MSORDR.MSORDER, GLORDR.GLSTARTDATE, GLORDR.GLENDDATE, MSORDR.MSOPNDATE
    FROM GLORDR INNER JOIN MSORDR ON (GLORDR.GLSERIAL = MSORDR.MSSERIAL) AND (GLORDR.GLPART = MSORDR.MSPART);

  • 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

Maybe you are looking for

  • Delta drain in R/3 for FI data sources

    Hi Experts, As part of EHP4 upgrade on the R/3 side we need to drain the delta queue in R/3. We took the downtime in R/3 and I triggered the delta infopackages for 0fi_gl_4, 0fi_gl_6, 0fi_aa_12, 0fi_ar_4 for 5 iterations. Please clarify the following

  • Sealing Custom MP with dependencies

    Hello everyone. Trying to understand specifics of sealing custom MP. (OpsMgr 2012 R2) 1.When i'm trying to seal my MP using MPSeal.exe. I get an error : Attempting to seal ManagementPack file: D:\SCOM\BSPb.DA.Management.Pack.xml : Verification failed

  • TS3694 what is 1015 error when updating an iPhone?

    what does error 1015 means? I'm updating my iphone when this error came up. please help. thanks

  • Can not add new contact to the phone, screen gives no place to type in name

    In the past had no issued adding a new contact to iPhone 5s, now when that screen is opened there is no possibility to type names phone number etc. How do I fix this?

  • Port opening among virtual machines

    Hi everyone, I'm wondering if I can close/open port among virtual machines. Say I have two Azure-based virtual machines and want to open a specific port from machine A to machine B. Is it possible without the implementation of a firewall between A an