Filter on Date column

Hello

I have a date column. But when I tried to add filter on the date column, I can't retrieve the data when I click on all the choices. Its displays a message like no choice available.

Please suggest what would be the problem.

Urgent...

Thanks in advance

Follow these steps:

1) click on the filter button. Leave the operand, as is and enter 01/01/2009 in the field of securities.

(2) convert the SQL filter. You should see that OBI adds the "timestamp" syntax to your datetime column. (This is a trick to make sure you have the right format).

(3) now change the 'equal' to the word sign BETWEEN

(4) click at the end and add the following:

AND CURRENT_DATE

You should end up with something that looks like this:

"table name". "your date column" BETWEEN timestamp ' 2009-01-01 00:00:00 ' CURRENT_DATE AND

This is your filter.

Tags: Business Intelligence

Similar Questions

  • APEX_UTIL. IR_FILTER with BETWEEN operator for date columns

    Hello

    When I run my application, I can put a filter BETWEEN date columns. I can't find a way to use it with the APEX_UTIL. Function IR_FILTER. Maybe I missed something?
    Documentation: http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/apex_util.htm#CHDDDFBF

    Tobias

    Tobias,

    If you think about it, "between the" is nothing else than a way of the single line to say

    WHERE: X > =: Y
    AND: X<=>

    Then you should be able to apply two filters of the report using the operators LTE and GTE

    Hope this helps

    Doug Gault
    www.sumneva.com

  • Dashboard calls between 2 different date columns

    Hi all

    I am creating a dashboard command prompt that will allow users to filter the report from 2 different date columns. We have an opening date column and a column of closing date. I want to allow users to choose an opening date and then a closing date that is at a later date. How could I go to set it up?

    Thank you in advance!

    I received your question, but I was not sure of your ability to create guest

    You will use 2 open and closed dates in the command prompt and set the variables in the presentation. In the report for this 1 date column use <= and="">= instead of operator.

  • Answer OBIEE: SQL filter to a column of the dashboard example: 201301

    I need to filter the report based on one of the filter on the column that is created by custom calculation:
    YEAR ("order header attributes". ("' Status date") * 100 + of the WEEK ("order header attributes". "State date") "
    and this, in the number format.

    I need the filter as: 2013 + Week (CurentWeek)-1 = 201302

    Please help me create a custom SQL for the same filter thing.

    go to edit promt and click on the pencil symbol you will get oone window and click on the Fx symbol, it will show u the formula here editor you must write the formuls above suggested by Anita...

    for Ibots... create a query using the filter to get the week - 1 records (201302) values and make the reports as request in Ibot...

  • Filter by date range table

    I use JDev 11.1.1.6

    I'm following Frank worm detailed information on how to filter the ADF tables by date range. The link is below.


    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/59-table-filter-by-data-range-176653.PDF


    I have 2 problems that I deal. They are:

    (1.) the datapicker for both filters are not make the date picker when I click on it. As I said I use 11.1.1.6 which I think should work. Note to Frank says he did not before 11.1.1.6. I can manually enter the date ranges and the filter works.
    2.) when I filter by my date or any other filter on the page, the filter returns the data that I expect to be back. For some reason the date filter is more restores. It's as if the entire filter facet disappears. I suspect it is because I do something wrong in the bean support. I posted this code below.

    Let me know if you have thoughts about what I might get hurt.


    {} public void onQuery (QueryEvent pQueryEvent)
    ArrayList < object > lAuditCodeArray = null;
    FilterableQueryDescriptor = lFilterableQueryDescriptor
    (FilterableQueryDescriptor) pQueryEvent.getDescriptor ();
    as submitted by the user such current filter criteria
    Map lCriteriaMap = lFilterableQueryDescriptor.getFilterCriteria ();

    The method links to set on the access ViewCriteria bind variables.
    OperationBinding = lRangeStartOperationBinding
    getBindings () .getOperationBinding ("setAuditDateRangeStart");
    OperationBinding = lRangeEndOperationBinding
    getBindings () .getOperationBinding ("setAuditDateRangeEnd");
    Object lAuditDateStartRange = lCriteriaMap.get ("AuditDateStartRange");
    Object lAuditDateEndRange = lCriteriaMap.get ("AuditDateEndRange");
    lRangeStartOperationBinding.getParamsMap () .put ("value",
    lAuditDateStartRange);
    lRangeEndOperationBinding.getParamsMap () .put ("value",
    lAuditDateEndRange);
    lCriteriaMap.remove ("AuditDateStartRange");
    lCriteriaMap.remove ("AuditDateEndRange");
    lRangeStartOperationBinding.execute ();
    lRangeEndOperationBinding.execute ();


    lFilterableQueryDescriptor.setFilterCriteria (lCriteriaMap);

    run the default QueryListener code added by JDeveloper
    ADFUtil.invokeMethodExpression ("#{bindings.") Audit2Query.processQuery} «»
    Object.Class, QueryEvent.class,
    pQueryEvent);


    filter of restoration carried out by the user selection
    llCriteriaMap.put ("AuditDateStartRange", lAuditDateStartRange);
    lCriteriaMap.put ("AuditDateEndRange", lAuditDateEndRange);
    lFilterableQueryDescriptor.setFilterCriteria (lCriteriaMap);
    }



    Here's the column I'm filtering where it's useful.


    < af:column sortProperty = "CrtdDttm" sortable = "true".
    headerText = "Date".
    ID = "crtDate" align = "center" width = "260".
    filterable = "true" >
    < f: facet = name 'filter' >
    < af:panelGroupLayout id = "pgl1" layout = "horizontal" >
    < af:panelLabelAndMessage label = "" to: ""
    ID = "plam1" >
    < af:inputDate id = "id1".
    value = "#{vs.filterCriteria.AuditDateStartRange} '"
    clientComponent = "false" >
    < af:convertDateTime pattern = "#{bindings." CsgAudit2.hints.CrtdDttm.format}"/ >
    < f: validator binding = "#{bindings." CrtdDttm.validator} "/ >"
    < / af:inputDate >
    < / af:panelLabelAndMessage >
    < af:spacer width = "5" height = "5".
    ID = "s5" / >
    < af:panelLabelAndMessage label = "" to: ""
    ID = "plam2" >
    < af:inputDate id = "id2".
    required value = "#{vs.filterCriteria.AuditDateEndRange}" = 'false' "
    clientComponent = "false" >
    < f: validator binding = "#{bindings." CrtdDttm.validator} "/ >"
    < af:convertDateTime pattern = "#{bindings." CsgAudit2.hints.CrtdDttm.format}"/ >
    < / af:inputDate >
    < / af:panelLabelAndMessage >
    < / af:panelGroupLayout >
    < / f: facet >
    < af:inputDate value = "#{row.bindings.CrtdDttm.inputValue} '"
    required = "#{bindings." CsgAudit2.hints.CrtdDttm.mandatory}.
    shortDesc = "#{bindings." CsgAudit2.hints.CrtdDttm.tooltip}.
    ID = "id3" readOnly = "true" >
    < f: validator binding="#{row.bindings.CrtdDttm.validator}"/ >
    < af:convertDateTime pattern = "#{bindings." CsgAudit2.hints.CrtdDttm.format}"/ >
    < / af:inputDate >
    < / af:column >

    Can you try to remove the validator and convert date time to the side of the filter and check.
    I had a similar problem with my custom filter and the filter facet did not. I discovered that it was because I had created a property my filter component (selectonechoice) bean binding.
    I used version Jdev 11.1.1.4.

    Thank you
    Rakesh

  • When I export the report to EXCEL files and filter the data, it will display incorrect data

    Hi experts,
    In OBIEE 11.1.1.6, when I export the report to EXCEL file and open this file to view all the data, it is correct.
    However, as the amount of data is so, so I add filter for each column (click on the sorting-> filter filter)
    When I select data in the filters, I'm afraid that I find the value of 'White' in the last line in the filter area, but in the table, there no null data. Why? Are you facing the same issue?
    Secondly, when I select a value, it will generate a data line.

    For example:
    2008 - Region1
    -The region.2
    -Elle3
    2009 - Region1
    -The region.2
    -Elle3


    When I select 2008 data in EXCEL, it will display unexpected data, as below:
    2008 - Region1

    Exactly... If you export to the format you will not face question of null data or incorrect when filtered.

    Kind regards
    DpKa

  • Guests of the date to a Date column

    Hi gurus,
    I'm trying to get the Date of application for a Date column. This is the approach that I took from the previous post.

    Re: How to get the date of request for a date column

    My approach
    (1) in the report, I put the filter on the Date column with variable presentation as startdate with a date by default, and in the window of fx, I applied
    CASES WHERE 1 = 0 THEN the picture. Table of date ELSE. END date
    (2) I repeated the same thing by getting the same column with Variable presentation date as Enddate with a date by default and in the fx I applied
    CASES WHERE 1 = 1 THEN table. Table of date ELSE. END date
    (3) in the dash prompt, I had the same date twice column by applying the same formulas in fx, default sysdate - variable Server - and variable adjustment Set - variable of presentation - startdate and same with Enddate.

    The report works well, but the report does not all records. I mean that I have given 12:04:36 am but report draws from 12:37:53 am. So, I'm missing some documents. I don't know where I am doing mistake.

    Could someone help me please

    Thank you

    Published by: 792011 on September 14, 2011 11:00

    792011 wrote:
    Hi gurus,
    I'm trying to get the Date of application for a Date column. This is the approach that I took from the previous post.

    Re: How to get the date of request for a date column

    My approach
    (1) in the report, I put the filter on the Date column with variable presentation as startdate with a date by default, and in the window of fx, I applied
    CASES WHERE 1 = 0 THEN the picture. Table of date ELSE. END date
    (2) I repeated the same thing by getting the same column with Variable presentation date as Enddate with a date by default and in the fx I applied
    CASES WHERE 1 = 1 THEN table. Table of date ELSE. END date
    (3) in the dash prompt, I had the same date twice column by applying the same formulas in fx, default sysdate - variable Server - and variable adjustment Set - variable of presentation - startdate and same with Enddate.

    The report works well, but the report does not all records. I mean that I have given 12:04:36 am but report draws from 12:37:53 am. So, I'm missing some documents. I don't know where I am doing mistake.

    Could someone help me please

    Thank you

    Published by: 792011 on September 14, 2011 11:00

    From what you say, as you did, it should not work. Investigation of the CASE, you have stage 1) and (2) that you put in the window fx in two columns, is indeed the same thing that just have 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/

  • How to get the date of request for a date column

    I have a requirement where I need to filter the data between two guests to date. I have only a single column of date and the date in the guests should be chosen by the calendar.
    I saw may approaches to do this, and I have one where two columns of fictitious date must be declared in the repository and used to define the guests of the date.

    but by using other methods I couldn't schedule option in the command prompt.

    but y at - it another way to get the guests with calndar selection without set dummy columns in the repository

    Thank you

    Try adding a column of similar date first and then edit the formula in the column

  • Index on the date column

    Hello

    I have a behavior when running a table with an indexed column date that seems a bit away from me.

    I have a table with many columns and rows 4.8 million (Oracle 11 g 2). One of his columns is of data type Date. This column is indexed using a b-three index.

    Consider the select statement. It returns only 32 thousand rows (less than 1% of the number of rows in the table). Oracle did a full scan to run the query.

    Field2 can be any column of the table that is not part of the index (for example, a column which is varchar2 (14)).

    As the used filter has a high selectivity, I expect Oracle to use the index on the date_field when executing the query. Have no idea about it? Is there a rule on the date columns indexing?

    Select Field2
    TABLE
    WHERE date_field > = TO_DATE('13/09/2010','DD/MM/YYYY')
    and date_field < TO_DATE('14/09/2010','DD/MM/YYYY')

    user492400 wrote:
    The clustering_factor is not too high?

    OBJECT_TYPE-> INDEX
    BLEVEL-> 2
    LEAF_BLOCKS-> 14796
    DISTINCT_KEYS-> 3249780
    AVG_LEAF_BLOCKS_PER_KEY-> 1
    AVG_DATA_BLOCKS_PER_KEY-> 1
    CLUSTERING_FACTOR-> 3620372
    NUM_ROWS-> 4823298

    If you look at your plan, it has a cost of 11156.

    The CBO estimated 29446 lines will be returned. It's a selectivity of 29446/4823298, which represents 0.61%.

    Therefore, the cost of using the index is approximately:

    2 (blevel) + 0.61% of the 14796 (pads of sheets) + 0.61% 3620372 (clustering factor) which is about 22195 (assuming that CBO based default settings).

    22195 is superior (so much) than 11156 so Full Table Scan WINS.

    See you soon

    Richard Foote
    http://richardfoote.WordPress.com/

  • Filter current Date

    Hi all

    I have a request with columns C1, C2

    C1 is a Date column
    C2 is a measure
    Now I want to apply a filter on C1 C1 = todays date (sysdate)
    Can it be done

    Thank you

    Hello

    go to advanced in filters in advanced, select convert this sql filter and who write the condition like that

    Date = current_date

    hope this helps you

    Concerning

    NGO

  • Is it possible to filter against data Points?

    First post, so please let me know if I'm not following the correct format.

    I have a report to the discoverer who shoots in 2 data points, the first is of $ gross turnover and the second is of $ turnover. For each data point, we have 2 different columns, one for direct sales and a column for the indirect sales. The report ends by displaying 4 columns of data.

    Gross direct sales | Indirect gross sales | Net direct sales | Indirect net sales

    I want to filter the report to show only 2 columns of data Indirect gross sales & Direct sales.

    What is the best way to apply some type of filter to the data points? I tried to create a named calculation, but I was not able to produce the desired results.

    Thanks for any help you may be able to provide.
    I tried to search, but I was not able to locate a similar question.

    Looks like you want to have 2 columns of 4 columns based on the data.

    If so, what you were doing was OK IMO you want to create 2 calculations with each calculation using the CASE statement.

    However, make sure that in the condition that you always keep it bring back the original 4 data columns.

    On the first assumption, you might want to use the concept of this all about the entire CASE statement.

    So, something like:

    1 calc_direct

    SUM (CASE source WHEN = "Direct" THEN END Net sales REST 0)

    2 calc_indirect

    SUM (CASE source WHEN 'InDirect' = THEN any OTHER gross sales 0 END)

    Make sense?

    Russ

  • How to calculate the difference between a Date column and the Date yesterday in the analysis (in the formula in the column)

    . For example, I need to calculate the difference between a date column, 'Table_Name '. "' Column_Name ' and (Current_Date-1). I tried different ways to do this. But nothing seems to work.

    Try the below formula.

    Replace "Time". "" Date "with your column.

    TIMESTAMPDIFF (SQL_TSI_DAY, "Time". "Date", TIMESTAMPADD (SQL_TSI_DAY-1, CURRENT_DATE))

    Thank you!

  • need to get only one line when you use between (date columns)

    Hi all

    create the table SAMPLE_ITEMS

    (ITEM_NO, varchar2 (10))

    Date DELIVERY_DATE,

    Number of QTY_SUM1

    Number of QTY_SUM2

    Number ITEM_QTY,

    Number ORDER_QTY,

    Number ITEM_AMOUNT,

    Number of SALES_AMOUNT

    );

    insert into SAMPLE_ITEMS values ('AAA', ' 28 / 04/2014 ',-88, 0,475,262,-123.45,-1188);

    insert into SAMPLE_ITEMS values ('AAA', ' 28 / 05/2014 ', 0, - 122, 475, 262, - 10.234,-1647);

    insert into SAMPLE_ITEMS values ('AAA', ' 16 / 06/2014. ', 0, 0,475,262,-80.59,-135);

    insert into SAMPLE_ITEMS values ('AAA', 19 December 2014 ', 0, 0,475,262,-42.29,-67.5);

    Setting out with my own query,

    ITEM_NOTRUNC (DELIVERY_DATE)QTY_SUM1QTY_SUM2ITEM_QTYORDER_QTYITEM_AMOUNTSALES_AMOUNT
    AAA28/04/2014-880475262-123.45-1188
    AAA28/05/20140-122475262-10.234-1647
    AAA16/06/201400475262-80.59-135
    AAA19/12/201400475262-42.29-67.5

    Every time I question as code

    Select * from SAMPLE_ITEMS

    where DELIVERY_DATE between April 28, 2014 ' and 19 December 2014 '-> they must pass as a parameter

    I need to get only one line

    AAA-88-122475262-256.564-3037.5

    Database 11.2.0.1.0

    Note; Please do not use MAX for Date and do not want to display Date columns in the result

    Note 1: I want to choose DELIVERY_DATE in select it also and only get a line like above the expected result

    SELECT item_no

    SUM (qty_sum1),

    SUM (qty_sum2),

    SUM (DISTINCT item_qty),

    SUM (DISTINCT order_qty),

    SUM (item_amount),

    SUM (sales_amount)

    OF SAMPLE_ITEMS

    WHERE the DELIVERY_DATE BETWEEN TO_DATE (28 April 2014 ', "dd/mm/yyyy")

    AND TO_DATE (19 December 2014 ', "dd/mm/yyyy")

    GROUP BY item_no;

    I will get

    ITEM_NO Trunc (DELIVERY_DATE) QTY_SUM1 QTY_SUM2 ITEM_QTY    ORDER_QTY TTEM_AMOUNT SALES_AMOUNT        

    AAA             12/19/2014                         -88                 -122                475                262                       -256.564              -3037.5

    OK fine, I want to choose DELIVERY_DATE as if so I'll have all the lines, but I want to only show one as shown above

    Because I do report discoverer in Oracle Apps, without taking the DELIVERY_DATE of the select query, it is not possible to move the date as a parameter

    Can you please help me how to do this?

    Thank you

    Post edited by: Rajesh123 NOTE added in the body of the Message

    Post edited by: added test Rajesh123 messages

    Maybe you want a single line in all cases

    Select si.item_no,

    start_date min (d.start_date),

    min (d.end_date) end_date,

    min (si.qty_sum1) qty_sum1,

    min (si.qty_sum2) qty_sum2,

    min (si.item_qty) item_qty,

    min (si.order_qty) order_qty,

    Sum (si.item_amount) item_amount,

    Sum (if. Sales_Amount) sales_amount

    of (start_date select to_date(:date_from,'dd-MON-yyyy'))

    to_date(:date_to,'dd-mon-yyyy') end_date

    of the double

    ) d

    left outer join

    TR sample_items

    on the si.delivery_date between d.start_date and d.end_date

    Group of item_no

    ITEM_NO START_DATE END_DATE QTY_SUM1 QTY_SUM2 ITEM_QTY ORDER_QTY ITEM_AMOUNT SALES_AMOUNT
    - 01/01/1900 31/12/2000 - - - - - -

    Concerning

    Etbin

  • Concatenate the date and time that are stored in two different date columns

    Hello

    I have to select date two columns from two different tables a date and another over time.

    I want to concatenate these two columns and format the result form dd/mm/yyyy hh24

    But I get error invalid number

    For example

    create table as datetime

    (select to_date (' 21/01/2014 ',' dd/mm/yyyy') as dt, to_date('08:00','hh24:mi') like double MC

    )

    Select to_char(dt||) TM, "dd/mm/yyyy hh24") of datetime

    I use oracle 10 g

    Help, please.

    Hello

    Roger wrote:

    ... If you need to take the party date to a date column and the time of anonther part, then you must first convert them to a string, concatenate them and convert them to date.

    You don't need to do this.  What you have described is a way to do it, but this isn't the only way.

    If d1 and d2 are the two DATEs, you can get year, month and day of d1 combined with hours, minutes, and seconds from d2 liike this:

    TRUNC (d1) and (d2 - TRUNC (d2))

    Nesting TO_DATE and TO_CHAR in Oracle, is almost never the best way to do anything.  Oracle provides many functions (for example, TRUNC) to manipulate dates, but also of DATE arithmetic.

  • Number data type used on a date column

    Hi Forum,

    I have a table with one column defined as number type.

    This column contains the date information and has an index defined on it.

    When I issue a select statement on this table based on this column for over 5 years of data, the query takes a long time.

    Select count (*) in x if date = 20070411

    The query takes a long time.

    such a situation is causing a problem when the where clause on a date, but the field filters is defined has a number type.

    All the columns in this table are defined as non-unique, but the date column seems to be more selective.

    Just curious to know if this type of data can have any impact IE do not provide the correct information to the optimizer etc.?

    Thanks for any help or advice

    Hello

    user3206995 wrote:

    Hi Forum,

    I have a table with one column defined as number type.

    This column contains the date information and has an index defined on it.

    When I issue a select statement on this table based on this column for over 5 years of data, the query takes a long time.

    Select count (*) in x if date = 20070411

    The query takes a long time.

    such a situation is causing a problem when the where clause on a date, but the field filters is defined has a number type.

    Yes; You can count on having a lot of different problems, if you are storing information on dates in NUMBER of columns.  The columns DATE to the date information.

    DATE is also a keyword from Oracle, so it's a very bad name of a column.  Use a column name as entry_date or date_column instead of just date.

    All the columns in this table are defined as non-unique, but the date column seems to be more selective.

    If

    date_column = 20070411

    is the only requirement, and it is slow, then it seems that you do not have an index on date_column, and you need to create a.

    For all performance issues, see the FAQ forum:

    Re: 3. how to improve the performance of my query? / My query is slow.

    Just curious to know if this type of data can have any impact IE do not provide the correct information to the optimizer etc.?

    It doesn't look like this problem is caused by using the wrong type of data.  Many others will, however.

Maybe you are looking for

  • I need common Module and Power Saver for Satellite L100-117

    My sister has an older model L100 and I can't find the drivers on the official website of Toshiba.The energy saver is installed, but it reports an error message (+ cannot run, because you do not have access rigts... +.)

  • 15 HP notebook

    I have in the past two weeks, been suffering with my network card... it works either or is not... My Device Manager, everything works fine, but the pc will not pick up my router wifi signal. tonight I've resorted to pluging my ethernet cable, my son

  • Data of Downcasting DMA from U8 to U16

    Hello world I have a situation that I hope someone can shed some light on. Currently I have a FPGA design that collect data highspeed made some treatment on it and spits the results on DMA to read out and record the host TDMS files. Currently I read

  • My restoration of systems said that it cannot restore the dates, I've tried. What could be the problem?

    I played Solitaire Easter when my XP screen turned blue with the notice of a serious error had occurred.  One proposed remedy has been remove recently installed software and that was AVG Linkscanner and use the systems I tried using two different dat

  • Hardrive cleaned

    How can I reinstall Windows 7 Professional Upgrade after washing my hard drive? The erased all scrub. I have the disk to start Windows 7 installation disks, repair disk. and the product key. I failed to realize until at the end I got the upgrade inst