Filter for the bearing column week on number of possibilities

Hi all - I am trying to create a report that shows the number of projects for the past weeks 13 with a column for each week.

I can get the correct filter for the current week, but I don't know how to revise my expression sql for the previous weeks.

I use the 'In between' operator on the column of date with the following sql expressions:

TIMESTAMPADD (SQL_TSI_DAY,-(DAYOFWEEK (CURRENT_DATE)-1), CURRENT_DATE)
and
TIMESTAMPADD (SQL_TSI_DAY, 7-DAYOFWEEK (CURRENT_DATE), CURRENT_DATE)

As I said, this works to get the data for the current week. Does anyone know how I would revise to search beforehand for the week or two weeks earlier?

Thanks for any help!
Lacey

Hello!

If I understand correctly, you want to get a report showing the number of project per week for the current week and 12 weeks before? But according to what date? The date of project creation (I guess you have a field like that)?

In this case, you will need to place a filter by saying something like:

Where "Date of creation" between "Current date" and "Date of the day - 12 weeks.
* Date Opened. Date BETWEEN TIMESTAMPADD (SQL_TSI_WEEK-12, CURRENT_DATE) AND CURRENT_DATE *.

I guess you'll have to use the TIMESTAMPADD function with interval SQL_TSI_WEEK, the current date and the value 12.

I tested the service request creation date to have the number of service request for the last 5 weeks, it worked...

I hope this will help, do not hesitate to ask for more!

Max

Tags: Oracle

Similar Questions

  • How do I display values skyrocket in the IR filter for the joined table columns?

    Hello

    I have a problem in the IR the query is based on a table, joined with other tables. I would like to provide users the ability to use IR filter search bar in the joined table columns. The problem facing on this filter, the Expression field, by pressing the arrow button displays values for the fields in the primary table, but not for fields that come from joined tables. Have you experienced this behavior in your reports? Is this normal?

    TIA

    Hello

    Correlated subqueries can improve performance - but it does not depend on the involved tables, the number of columns and the existence of indices. As far as I know, the optimizer has problems with them. You could try to explain the Plans on the two statements to verify that.

    In any case, I created a new test page with the SQL for IR:

    SELECT E.EMPNO,
    E.ENAME,
    D.DEPTNO,
    D.DNAME,
    E2.EMPNO "EMPNO2",
    E2.ENAME "ENAME2"
    FROM EMP E, EMP2 E2, DEPT D
    WHERE E.EMPNO = E2.EMPNO(+)
    AND E.DEPTNO = D.DEPTNO(+)
    AND E2.PRIMARY_EMPLOYEE(+) = 'Y'
    

    http://Apex.Oracle.com/pls/OTN/f?p=267:226

    As far as I can see, it works properly - except that if I do a filter on the ename column, when I try to create a second filter, drop-down lists ename all the values, while the other columns list only the available values after having applied the first filter. Which seems strange that the filters are applied as ANDS. But it does the same thing for other areas - IE, the field used in a filter is not filtered for the second filter - so I guess this is normal, but only a person in Apex could probably explain why it is so.

    Otherwise, everything seems to work as I expect and the above page works the same as my test page, which uses external joins http://apex.oracle.com/pls/otn/f?p=267:224

    Andy

  • For the last few weeks, after that I closed 19.0 FF, I can't open it. I resorted to having to re - install FF each time so that it can open. What should do?

    For the last few weeks, whenever I close Firefox 18 (and more recently 19.0), I can't reopen the browser again. The application runs as if it is going to open, then stops and sits there. I had to resort to the re - install the browser every time now, very irritating. He remembers my tabs as they had been, that I want to. I used to open up to 40-50 tabs, but now made an effort to keep them below 20, thinking that it would help work more optimally. I'm tired of re - install the browser all the time. What should I do? Thank you

    When this happens, check the Windows Task Manager to see if there is a hidden window or the firefox.exe process is at a standstill?

    To open the Windows Task Manager, press Ctrl + Shift + Esc

    On the Applications tab, look for any window with the icon of Firefox. See something wrong here? In another thread, users have reported finding what seems to be a rogue process. If you find something, try to select and killing using end task.

    Under the processes tab, look for firefox.exe. According to the displayed columns, you can often see that the program is reading, writing, communicate or simply sitting there, doing nothing. If you have allowed time to stop Firefox and it crashes, you can select firefox.exe and click on end process.

    After that, Firefox expected to start normally.

    Please see this article for troubleshooting suggestions for when Firefox crashes out. https://support.Mozilla.org/en-us/KB/Firefox-hangs-or-not-responding#w_firefox-hangs-when-you-quit-it

    A little luck?

  • Use of the filter for the simplest needs Expression

    On the project I'm working on, I use rule Manager to evaluate hundreds of rules against the simple events based on a table alias (a line at a time, as the documents are). However, my needs are evolving to support multiple sets of rules that would be assessed against incoming data conditionally. It will also be managing versions of rulesets.

    These requirements do not appear to correspond to the way that rules Manager stores its rules, where all rows in a table of the Rule are always evaluated, and any creation of a new category of rule requires a new table, recall stored proc etc... I am mainly concerned about the proliferation of tables of the class rule I added new sets of rules. Given that I don't use any of the advanced features that offers of management rules on the Expression of basic filter functionality (for example the complex events), I'm looking for in a simple ExpFil of installation and use of the EVALUATION operator. This will allow me to store several rulesets in the same table of expressions (separated by a field of type or ruleset_id) and does not require as much structural work to add new sets of rules.

    Things seem to work very well in my first attempts, but I think that my main question is proc PROCESS_RULES of RM doesn't on the optimization of the assessment of the rules in the rule Manager - no additional optimization which is not offered by the basic functionality of ExpFil? Everything I do is a simple query to find the rules corresponding to a specific document:

    SELECT cr.*
    OF COMP_RULE_TEST cr, doct DOC_TABLE
    WHERE doct.doc_id = 123
    AND EVALUATE (cr. RULE_COND, FApprcomp.GetVarchar (doct.rowid)) = 1;

    Thank you!

    Hello

    Simple rules, there no notable performance only difference between Manager rules and filter expression. Please ensure that the indexes are created for the Expression column (they are automatically created for the rule Classes).

    Just to be complete: If you want to use several data structures and to define simple rules on the structures of the individual event, you can set a rule to structure class composite event and not really to define complex rules. For example, a rule configured for the table attributes class two alias, po and if maybe two simple rules that are associated with the simple event matching.

    Rule condition 1:
        
              itemName = 'Router' 
        
    
    Rule condition 2:
        
              destState = 'CA' 
            
    

    For a new line in the associated table of attribute "po", rules defined with the name of the corresponding event are evaluated.

    Hope this helps,
    -Aravind.

  • button refresh Foxfire did not work when clicked on for the past two weeks

    button refresh Foxfire did not work when clicked on for the past two weeks

    Hi, see controls customize Firefox, buttons and toolbarsand click on restore default settings.

    If this does not help, Try Firefox Safe Mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    If Firefox does not work, you can start Firefox in Mode safe as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • How can I make a cell formula will apply for the entire column? For example D2 appears B2 - C2. How can I copy this formula for each cell in the column?

    How can I make a cell formula will apply for the entire column? For example D2 appears B2 - C2. How can I copy this formula for each cell in the column?

    If you want the formula is the same (B2 - C2) in the cell of each column you must change it as ($B$ - 2$ C$ 2). Then copy it, select the whole column and paste.

  • For the last two weeks, I was unable to open all the emails that are in my Windows Live Hotmail folders.

    FOR THE LAST TWO WEEKS IVE HAS BEEN IMPOSSIBLE TO OPEN ANY EMAIL WHICH IS LOCATED IN ANY OF MY HOTMAIL FOLDERS. ALSO, I CAN NOT OPEN HOTMAIL WHICH IS IN THE AREA SENT, WHENEVER I TRY THE SERVER BRINGS BACK ME TO THE HOTMAIL INBOX.
    original title: I CANT ACCESS ANYTHING THAT HASBEN PLACE IN MY RECORDS or IN THE SENT BOX IT JUST FLIPS BACK to MY RECEIVING HOTMAIL Inbox

    Hello

    Given that the problem is related to hotmail, I suggest you to post the question in the forums and check them off below if it helps:
    http://windowslivehelp.com/solutions.aspx?ProductID=1

    It will be useful.

  • Could not mount the file. It has not been possible to find a filter for the requested command.

    Get the error message:

    Could not mount the file. It has not been possible to find a filter for the requested command.

    Why is - this happens when I open documents using Mac advertising agency and I'm on PC?

    Hi Mikael,

    files have been archived in archive zip-file when transferred via the ftp protocol? I guess, not.

    If the files were already placed in a document, InDesign on the agency side the following workflow might be the solution:

    Office on Mac OSX:

    1 package the InDesign document, as well as placed images and fonts of the necessary document with InDesign packing device.

    2. the folder packed in a zip zip file.

    3. download the zip file to an ftp server

    You on Windows:

    1. download the zipfile to your own workload.

    2 unzip the zip on your workload. Do not delete the zip file.

    3. rename the folder of the package to fit your scheme of naming of jobs (option)

    4 rename the InDesign document to adapt to your schema naming of jobs (option)

    5. open the InDesign file in the packed file.

    Do not move or save somewhere else.

    Alternative:

    Work with Dropbox to share documents on a shared volume of Dropbox, if documents must move forward and backward between you and the Agency.

    Uwe

  • Where is the installer for the Source column of the command in other tab of orders?

    Hello!

    I would like to ask where to find the installer for the Source column of the command in other tab of orders. I saw internal and online, I think it's always external.

    Thank you.

    Jon

    Order header Source is the origin of the order-using the OM Super user responsibility, see Setup-> controls-> import Sources.  I think that external is a Source Type on the command line that indicates if the line item will be provided by your org or bought.

  • InDesign doesn't let me place an eps file... gives an error "cannot place this file. No filter for the requested operation. »

    InDesign doesn't let me place an eps file... gives an error "cannot place this file. No filter for the requested operation. »

    This happens with a particular .eps file or many .eps files?

    • The EPS files from Illustrator? What parameters are used when files are saved?
    • Also this happens for all files created in Illustrator EPS (even one you create brand new, with just a few text and simple work in it).
    • Where are stored the EPS files that you place in InDesign?  If there is a form of corruption of files on the hard drive? (Maybe need repair file permissions?).
    • If you work on a network: can the files when they are saved as EPS files on your hard drive?

    CARI

  • 5.7 Lightroom will not import. I get this message: the instruction at 0x17f3f885 referenced memory at...  Memory could not be read.  This program has been flawless for the past 3 weeks.

    5.7 Lightroom will not import. I get this message: the instruction at 0x17f3f885 referenced memory at...  Memory could not be read.  This program has been flawless for the past 3 weeks.

    Hello

    You really need a little more information such as operating system, memory, etc.

    Usually a mistake like this happens because a background process is running and interfere with the available RAM, not enough virtual memory (Windows), drivers of HW obsolete or just an incomplete installation.

    Or, one of the biggest problems is add-ons in internet browsers.

    Alternatively, another problem of Lightroom, no sufficient permissions on the directory where you import image files.

    Please provide a little more information.

  • I had the 'CSXS Infrastructure 4.0.2' update even for the last two weeks

    Every day for the last two weeks, when I came in the creative work cloud tells me that I need to download the new updates. The update is always the same, "assuming CSXS 4.0.2.

    Is what happens to everyone and it is an ongoing update in accordance with or it is download but not really updated the creative cloud?

    Hi Matsonjones,

    This could be a problem that needs to work with our support to resolve. They are accessible via this link http://adobe.ly/yxj0t6

    Hope that helps,

    -Dave

  • The class I'm teaching starts Monday and I can't wait for the return of my serial number snail mail. M

    The class I'm teaching starts Monday and I can't wait for the return of my serial number snail mail. My product code is < removed by mod, kglad >. What help can you give me?

    Contact adobe support, http://helpx.adobe.com/contact.html?product=flash&topic=using-my-product-or-service

  • Multiple values for the same column in the columns of diffétent in the same row?

    Hi all
    I wonder how you can display different values for the same column in different columns on the same line. For example, using a CASE statement, I can:

    CASE WHEN CODE IN ('1 ', ' 3') THEN COUNT (ID) AS 'Y '.
    CASE WHEN CODE NOT IN ('1 ', am') THEN COUNT (ID) AS "N".

    Yes, that will produce two columns but will produce null values to empty and also two separate registers.


    Any ideas?

    Thank you

    Are you sure that this code works for you?

    Select ID
             ,CASE WHEN MODE_CODE IN ('1', '3') THEN COUNT( No) END as "Fulltime"
             ,CASE WHEN MODE_CODE NOT IN ('1', '3') THEN COUNT( No ) END  as "Other"
    From table
    group by ID
    

    I guess the code above fails because MODE_CODE is not in your group by?

    My suggestion would be to put the CASE in the COUNT:

    Select ID
             ,COUNT(CASE WHEN MODE_CODE IN ('1', '3') THEN No END) as "Fulltime"
             ,COUNT(CASE WHEN MODE_CODE NOT IN ('1', '3') THEN No END)  as "Other"
    From table
    group by ID
    

    CASE expressions return no. when the respective conditions are true and NULL otherwise.
    COUNTY will have non-null values.

  • Interactive reports - width of filter for the column title dialog

    Hello

    I have a question about interactive reports and filter functionality, you can use column headers in the apex 4.0.2.00.07.

    When I click on a column header in my interactive report, I will be presented with a list of possible filter values for this column. Unfortunately this filter dialogue seems to have a fixed width and be independent of the overall column width. Columns with entries of data any longer, I can't see the entire string.

    Is it possible to change the width of the dialog, for example the s.t. it automatically adapts to the width of the selected column? But it would be useful even if I could apply the same width for all columns in a report.

    Thank you very much
    Martin

    Hello

    Seems 20 theme page templates are missing doctype and IE use quirks mode.

    You can try to add to the header of the template page as the first line

    
    

    and see that it does not break anything.

    Kind regards
    Jari

Maybe you are looking for

  • Bluetooth devices will not connect after a long period of absence

    It started in the last 3 months, I'm not sure of that OS upgrade specifically.  I currently have Version 10.11.3.  I have a MBP late 2011.  I use a keyboard, trackpad and bluetooth magic, bought the same time as my mac. Whenever I come back from a bu

  • Re: Satellite A205-S5859 - where to find Windows XP drivers

    I recently got new toshiba Satellite A205-S5859 computer laptop (PSAE3U-076023), with Vista Home Premium.I want to downgrade to Windows XP, but I'm not sure if Toshiba have all the XP drivers for this model.I checked the site of toshiba for the drive

  • Restore the photos to iphoto on El Capitan

    I just did a clean install of El Capitan and am running into all kinds of questions restore my files.  In my view, there is a new application 'Photos' in El Capitan and not iPhoto.  How to restore my iPhoto on El Capitan library?  I had copied to my

  • Best practices of revision control

    I use the full Version of Labview 14 and trying to set up a system for a computer in test-lab. Currently, I want to have our published versions of test programs easily accessible to everyone while I work for my own use, the development versions. I am

  • icon editor sneaks to the 2nd monitor

    A Windows XP installation with main monitor in portrait and secondary as the orientation is landscape. But in LabVIEW 2009, the icon editor always appears on the 2nd screen.  Most of the time as my 2nd monitor is turned off, but fortunately, I turned