Searching by a single date or date range.

I would like to be able to search by a single date, @StartDate, or by a date range , between @StartDate and @EndDate. I am having a hard time with the logic on this for a report in SSRS.

Hi MJohnson629,
According to your description, you want to use @StartDate and @Enddate parameters to filter report, right?
In your scenario, you could create two report parameters (@StartDate and @Enddate), then specify a filter as date field between @StartDate and @Enddate in main dataset. Please refer to steps below:
1. Create two parameters, select the Date/Time for Data type. You could specify the date field as available values or not give available values.
2. In main dataset, specify the filter like below:
3. Preview the report, select values for parameters.
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support

Similar Messages

  • 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

  • Data fetch for range of value inside an assistance class

    I want to create an assistance class where I can fetch data for the range of values selected ( basically when I select a range of sales order ).
    I was only only successfully in creating parameters, passing single values.
    Regards,
    Krishna.

    Hi Krishna,
    Logic to fetch the data of range ( implement in the method  )
       data : lv_matnr TYPE string VALUE 'MATNR',
                lr_matnr TYPE REF TO data.
    FIELD-SYMBOLS : <lr_matnr> TYPE ANY TABLE.
    ************ Method to call range of data ************************
    CALL METHOD wd_this->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD
      EXPORTING
        I_ID               = lv_matnr
      RECEIVING
        RT_RANGE_TABLE     = lr_matnr.
    ASSIGN lr_matnr->* to <lr_matnr>.
    *************** call the method of the assistance class
    wd_assist->GET_DATA( EXPORTING IR_MATNR = <lr_matnr> ).
    ****************** parameters of the method in the assistance class ********************
    Hope this helps you
    Thanks & Regards,
    Sankar Gelivi

  • In CQ 5.4 how to read search trends(keywords) with in specific date (like last week, 30 days...)?

    I have a requirement to display popular search key words with in specific date range. Like search key words searched in last week/ in last 30days/in 90 days.
    how to get date range searched keywords from Search Trends?? is there any other way to get these??

    Issue was due to a syntax error. Case closed.
    Thanks!
    -OS

  • Media Reconnection Issues (search problems); 1 project file, two data sets

    Ok, here goes folks!
    We have:
    Mac Pro, 6tb MaxxDigital RAID
    MacBook Pro, 3x 1tb GRAIDs
    The data on the Gtechs's is the same as the data on the Maxx tower- the file structure is different.
    Whenever the project file is updated on the main MacPro it is moved via USB key to the macbook pro, at which time media needs to be reconnected (to the graids).
    Recently the search in a single location feature had not been working in the reconnect dialog- we select the drive (any of the three) and are given the nope tone. This is a huge project- long form doc with 30+ hours of footage. It is killing us having to manually specify each folder in the drive depending on the file. Previously just selecting the root drive would start the search and all would be well.
    Here are my questions:
    Is there something we can do to restore the reconnect search functionality?
    Could we alleviate this by getting a large enough SATA raid and express card adapter to make an exact copy of the main Maxx Raid? Would it be easier to reconnect?
    Can anyone offer any workflow tips for our situation?
    Generally I am over on the main box doing composites, graphics, spit and polish, etc, while the Director is on the MBP roughing segments. Soon we will be moving to me doing spit and polish on the MBP and color grading on the main box.
    I hope there is enough information here for anyone with advice to offer, please dont hesitate to ask for more info if needed. Thanks for taking the time to read this and I look forward to hearing what you guys think.
    -Kevin

    "Everybody's lookin for answers......."

  • Can date search help start from a particular date?

    Hi All.
    We have an application where there are 4 date fields.
    These dates can range in past as well as future.
    After selecting one date, others should start from that date.
    But by default, it always takes the system date as starting point.
    Can the date search help start from a particular date?
    Thanks in adv.

    Hi ,
    u can set the initial dates u want by setting the attributes values to which it is bind  . for eg in WDDOINIT of the view..
    hope this will help u ..
    Regards
    Yash

  • Batch search strategy based on goods receipt date

    Hello,
    Can some one help me with setting up Batch search strategy based on goods receipt date currently is on batch number.
    Thanks a lot
    Thanks!
    Best Regards
    Srw

    Hi
    If you want to set up Batch search strategy based on goods receipt date......then you have to create GR Date as one charecteristics in T.Code: CT04 and assign this charecter in Class with respect to class type  023
    Then assign this class in Material Master Classification view..
    Make sure in Material master, Purchasing view...you have activated Batch management active check box....
    Then when ever you do GR in MIGO, In batch tab, In classification field maintain the GR Date..
    Then Create sort sequence in  T.Code: CU70 and you can maintain in what basis ie)in assending or desending GR Date you have to search the batch..
    And then Create Batch Search Statergy in MBC1 and there you assign the sort sequence in Details...
    Now  you do your regular procedings.....the material Batch will be searched based on GR Date...
    Reward if useful
    Regards
    S.Baskaran

  • Multiple clobs in a single row of data

    I have several clobs in a single row of data and have created a procedure where I attempt to display the first 4k of each clob.
    using a for loop cursor I select all of the clobs in a row at the same time and then I use dbms_lob.read to get the first 4k of data.
    For the first lob of each row everything works fine but when I attempt to dbms_lob.read the second one I get an "ORA-06502: PL/SQL: numeric or value error: invalid LOB locator specified: ORA-22275" and I'm not sure why?
    does anyone know of an example where two or more clobs are selected and then converted to 4K varchars?
    sample columns for the table:
    SPECIALREQUIREMENTSS     CLOB
    REFERENCERANGE     CLOB
    ALERTVALUE     CLOB
    REFERENCELAB     VARCHAR2(50 CHAR)
    TESTINCLUDES     CLOB
    LASTUPDATE     DATE
    sample code (I removed some code for clairity - this produces the same error):
    create or replace
    procedure test_lobs as
    v_lab_blob blob;
    v_lobamt binary_integer := 32767;
    v_lobpos pls_integer := 1;
    v_labrec labman.lab_testingdata%rowtype;
    v_buffer varchar2(32767) :='';
    v_start_left number;
    begin
    -- *** housekeeping
    dbms_lob.createtemporary(v_labrec.testincludes,TRUE);
    dbms_lob.createtemporary(v_labrec.specialrequirementss,TRUE);
    Plpdf.init;
    Plpdf.NewPage;
    Plpdf.SetColor4Drawing(66,66,66);
    Plpdf.SetColor4Filling(180,180,180);
    v_start_left := Plpdf.GetPageWidth-Plpdf.GetPageRightSpace;
    -- *** select the test name for shaded printing
    for x in (select indexnumber, test from labman.lab_testingdata where test like 'A%') loop
    -- *** select the test data for printing
    select * into v_labrec from labman.lab_testingdata where indexnumber = x.indexnumber;
    -- *** test includes
    if dbms_lob.getlength(v_labrec.testincludes) > 0 or v_labrec.testincludes is not null then
    Plpdf.SetPrintFont('Arial','B',8);
    Plpdf.LineBreak(.1);
    Plpdf.PrintCell(25,5,'Test Includes:',0,0,'R',0,null,0);
    Plpdf.SetPrintFont('Arial',null,8);
    if dbms_lob.getlength(v_labrec.testincludes) > 32767 then
    v_buffer := '*** error - text is greater than 32k ***';
    else
    v_lobamt := 32767;
    v_buffer := '';
    dbms_lob.read(v_labrec.testincludes,v_lobamt,v_lobpos,v_buffer);
    end if;
    Plpdf.SetLeftMargin(Plpdf.GetCurrentX);
    Plpdf.PrintFlowingText(5,v_buffer,null,0);
    Plpdf.SetLeftMargin(v_start_left);
    Plpdf.lineBreak;
    end if;
    -- *** special requirements
    Plpdf.SetPrintFont('Arial','B',8);
    Plpdf.LineBreak(.1);
    Plpdf.PrintCell(25,5,'Special Requirements:',0,0,'R',0,null,0);
    Plpdf.SetPrintFont('Arial',null,8);
    if dbms_lob.getlength(v_labrec.specialrequirementss) > 32767 then
    v_buffer := '*** error - text is greater than 32k ***';
    elsif dbms_lob.getlength(v_labrec.specialrequirementss) = 0 then
    v_buffer := '';
    else
    v_lobamt := 32767;
    v_buffer := '';
    dbms_lob.read(v_labrec.specialrequirementss,v_lobamt,v_lobpos,v_buffer);
    end if;
    Plpdf.SetLeftMargin(Plpdf.GetCurrentX);
    Plpdf.PrintFlowingText(5,v_buffer,null,0);
    Plpdf.SetLeftMargin(v_start_left);
    Plpdf.lineBreak;
    commit;
    end loop;
    Plpdf.SendDoc(v_lab_blob);
    -- store the PDF document
    delete from store_blob;
    commit;
    INSERT INTO STORE_BLOB (blob_file, created_date)
    VALUES (v_lab_blob, SYSDATE);
    COMMIT;
    end test_lobs;

    didn't think that checking for a length of zero and null would produce two different results - should have known better.
    Thanks for your help!
    elsif dbms_lob.getlength(v_labrec.specialrequirementss) = 0
    or v_labrec.specialrequirementss is null then

  • How to find date in a range

    Hi,
       Is there any way or function module to find if a given day is falling between a date range.For example if I give 20.02.2007 as input and 01.02.2007 as start date and 28.02.2007 as end date. It should return yes. At the same time if i give 01.01.2007 & 31.01.2007 as start & end it should return no.
    Regards,
    Karthik.k

    Execute the code with ur inputs .
    REPORT zex13 .
    parameters : st_date like sy-datum,
                 ed_date like sy-datum modif id abc.
    parameters : p_date like sy-datum.
    data : date like sy-datum,
           date1 like sy-datum .
    at selection-screen output.
    loop at screen.
    if screen-group1 = 'ABC'.
    screen-input = '0'.
    modify screen.
    endif.
    endloop.
    at selection-screen on ed_date.
    if st_date ne '00000000'.
    CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
      EXPORTING
        day_in                  = st_date
    IMPORTING
       LAST_DAY_OF_MONTH       = date1
    EXCEPTIONS
       DAY_IN_NO_DATE          = 1
       OTHERS                  = 2.
       ed_date = date1.
    endif.
    at selection-screen on p_date.
    if p_date ne '00000000'.
    if p_date < st_date or p_date > ed_Date.
    message e999(zxx) with  'Date out of range'.
    else.
    message i999(zxx) with 'Date in the range'.
    endif.
    endif.
    better we give the start date and allow the system to set the end date .
    i hope this will do
    regards,
    vijay

  • How can I filter to find photos NOT pinned to a map? I have 28,000 phots with many mapped and many not. The Search function does not include GPS data. I haven't found  way to search metadata inside or out of Elements.

    How can I filter to find photos NOT pinned to a map? I have 28,000 phots with many mapped and many not. The Search function does not include GPS data. I haven't found  way to search metadata inside or out of Elements.

    How can I filter to find photos NOT pinned to a map? I have 28,000 phots with many mapped and many not. The Search function does not include GPS data. I haven't found  way to search metadata inside or out of Elements.

  • Function Module to Compare Date within date Range

    Hi All,
            Does anyone know Function Module to Compare Date within date Range...For example i need to find whether 08/02/2006 falls in between 07/15/2006 and 09/15/2006......

    data: datum type sy-datum value '20070802',
          datum_low type sy-datum  value '20070730',
          datum_high type sy-datum value '20070930'.
    If datum between datum_low and datum_high.
    Endif.
    Regards,
    Rich Heilman

  • CAML query to select data in specfic range

    CAML query to select data in specfic range.
    I have a list-A and it has a column 'Col1' which has thousands records, I want to fetch data in a specific range as:
    select Col1,Col2 from list-A where Col1 > 100 and Col1 < 600

    Hi,
    The following code with the CAML query for your reference:
    using (SPSite site = new SPSite("http://spsite/"))
    using (SPWeb web = site.OpenWeb())
    string sQuery = @"<where><and><gt><fieldref name='Col1' /><value type='number'>100</value></gt><lt><fieldref name='Col1' /><value type='number'> 600 </value></lt></and></where>";
    string sViewFields = @"<fieldref name='Col1' /><fieldref name='Col2' />";
    string sViewAttrs = @"Scope='Recursive'";
    var oQuery = new SPQuery();
    oQuery.Query = sQuery;
    oQuery.ViewFields = sViewFields;
    oQuery.ViewAttributes = sViewAttrs;
    SPList oList = web.Lists["ListName"];
    SPListItemCollection collListItems = oList.GetItems(oQuery);
    foreach (SPListItem oListItem in collListItems)
    More information about the CAML:
    http://msdn.microsoft.com/en-us/library/office/ms467521(v=office.15).aspx
    http://msdn.microsoft.com/en-us/library/office/ms462365(v=office.15).aspx
    Here is a tool will help you to build and test SharePoint CAML Queries:
    https://spcamlqueryhelper.codeplex.com/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to stop auto from-feed on a dot matrix printer for printing only a single line of data at a frequency of 30 seconds

    Hello friends
    In a particular application, it is required to print a single line of data on a dot matrix printer (continuous sheets) at a frequency of 30 seconds. That is printing is to be carried out line-by-line on the same form without a form feed.
    We are facing a problem of a form feed after printing of each line. Kindly help me to solve this problem of auto form-feed. How to continuously print at a regular interval without from-feeding.
    Shahid Baig

    Is this printer connected to a network?
    You may need to look at the printer manual to see if there is a setting for a form feed.  I remember when we had a dot matrix printer on the network about 12 years ago, there would be a network timeout setting of something like 30 seconds.  So if you didn't continue to send data, the network will end the print job and send the file to the printer which would auto form feed at the end.  Many of our basic programs had to be rewritten because they would do an LPRINT periodically, if you took along time progressing through the inputs, you would easily hit the 30 second timeout.  So all the programs had to be rewritten to save the data to be printed to a file, and only once you execute a print command, it would read the file back in and Lprint it (or a Print#1) to the LPT port.
    Since the printer was on the network, and basic could only print to LPT's, we had to use a net command to capture the LPT1 port and direct it to the network queue.
    I don't remember all the details, but those are the bits and pieces I do remember.  I think the answer to your problem lies in there somewhere.
    Namely:
    1.  Printer setting to auto form feed.
    2.  Network setting that closes print job after timeout period.

  • How to loop through a single row of data?

    What I'm trying to do is use a cursor to loop through a clob. When I create my cursor I get the an error telling me that the table does not exist. Which implies that I have an implicit cursor. Is there a way to get around this?

    > How to loop through a single row of data?
    By not looping as there is only a single row?
    > What I'm trying to do is use a cursor to loop through a clob
    Processing (looping through) a CLOB has nothing to do with a cursor.
    > When I create my cursor I get the an error telling me that the table does
    not exist. Which implies that I have an implicit cursor.
    Incorrect. It simply means that
    a) you do not have permissions to access that table from within the current context
    b) it does not exist (e.g. you have misspelled the object name, you have not qualified it properly within the current scope, etc)

  • Split dates into date range windows

    Hi,
    I have a peculiar requirement to create windows for different dates.
    For example I have two date ranges (two rows in the table column
    Start Date End Date
    01-Jan 28-Feb
    15-Jan 14-Feb (this starts between the previous date range i.e. 01-Jan to 28-Feb)
    I have to split dates in a way so that it creates different windows with start and end date i.e.
    Start Date End Date
    01-Jan 15-Jan (15Jan because it comes before 28 Feb)
    16-Jan 14-Feb ( 14Feb as it comes before 28 Feb)
    15-Feb 28-Feb
    Is there any sql function which can be used to achieve this? or any help you can provide? Thanks.
    -Salman

    Welcome to the forum!
    Unfortunately you posted to the wrong forum. This forum is for sql developer only.
    Repost you question in the SQL and PL/SQL forum and you will get help there.
    Please mark this question ANSWERED to people will follow up in the other forum.

Maybe you are looking for

  • Is there any Labview program to read pusle width or jitter on Agilent54622d

    I want to test the real width a clock signal by Labview6.1/Agilent54622d/GPIB-USB-B. Is there any way to control the oscilloscope to the state i required and get the result? Thanks.

  • Change log-in image

    Hi experts i'd like to know the way to change the standard SRM-EBP image of the log-in. It is via se80 but i don't remember if i've to search into MIME repository or so on... Can u help me? thanks regards ab

  • No login via Web Interface possible

    Hello, after installing iFS (version 9.0.1.1.0) access via Windows Network-neighborhood makes no trouble. Using the Web Interface iFS doesn't authenticate login and password although this user exists. The default system/manager has also no chance to

  • HT1386 Syncing error message

    I tried to sync my Iphone 4S and my ipad mini to my computer.  I got a message telling me I did not have enough access privledges for this operation.  What does that mean?  Never had an issue before? 

  • Close a stream for System.IO.Copy

    Hello I have this code. I want close this stream, because I have this Error in another place of my program. ERROR: word cannot save this file because it is already open elsewhere string sourceFile = richTextBox_I.Text; string destFile = Application.S