Filter for rolling week column on # of opportunities

Hi all - I am trying to create a report that shows the # of projects for the last 13 weeks with a column for each week.
I can get the filter correct for the current week, but am not sure how to revise my sql expression for the previous weeks.
I am using the "In between" operator on the created by date column 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 current week's data. Does anyone know how I would revise this to look at the week prior or two weeks prior?
Thanks for any help!
Lacey

Hi !
As I understand, you want a report showing the # of project per week for the current week and the 12 weeks before ? But based on which date ? The project creation date (I assume you have a field like this) ?
In this case, you will have to put a filter saying something like :
Where "Creation Date" beetween "Current Date" and "Current date - 12 weeks".
*"Date Opened".Date BETWEEN TIMESTAMPADD(SQL_TSI_WEEK, -12, CURRENT_DATE) AND CURRENT_DATE*
I assume you'll have to use the TIMESTAMPADD function with SQL_TSI_WEEK interval, the current date and the 12 value.
I tested it on service request creation date to have the # of service request for the last 5 weeks, it worked...
Hope this will help, feel free to ask more !
Max

Similar Messages

  • Set filter for only one column in tableview

    Hi
    i am using in MVC a htmlb:tableview with filter in only one column of 8.
    This is all working fine, except that the user can enter a searchsting in the filterfield for all columns, but in handle_event (of the controller) ; i only react to a text in the filterfield of column 4 and ignore all other filtertext , which were maybe entered in the other columns.
    My question:
    how can i  enter the filter only for one column, in a way that the user cannot enter any text in the filterfield of the other columns, only in column 4 ?
    my view:
    <htmlb:tableView id             = "requirements"
                     table          = "//model/pdst_reqs"
                     filter         = "APPLICATION"                
                     keyColumn       = "EXTID"
                     iterator        = "<%=model%>"
                     footerVisible   = "FALSE"
                     encode          = "TRUE"
                     visibleRowCount = "<%=model->rowcount%>"
                     width           = "100%"/>
    Best Regards
    Britta

    You can disbale the Filter for the particular column by setting the DISABLE_FILTER in the Iterator method IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS. Here is the sample code
    method IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS .
      CLEAR p_column_definitions.
      CLEAR p_overwrites.
      data tv_column TYPE TABLEVIEWCONTROL.
      tv_column-COLUMNNAME          = 'FLDATE'.
      tv_column-SORT                = 'X'.
      tv_column-EDIT                = 'X'.
      tv_column-ONCELLCLICK         = 'MyCellClick1'.
      tv_column-title               = 'Date '.
      APPEND tv_column TO p_column_definitions.
      CLEAR tv_column.
      tv_column-COLUMNNAME          = 'PRICE'.
      tv_column-horizontalAlignment = 'right'.
      tv_column-verticalAlignment   = 'middle'.
      tv_column-ONCELLCLICK         = 'MyCellClick2'.
      tv_column-title               = 'Currency'. 
      tv_column-EDIT                = 'X'.
      tv_column-DISABLE_FILTER      = 'X'.    " <-------Like this
      APPEND tv_column TO p_column_definitions.
    endmethod.
    Hope this will solve your problem.
    Raja

  • Filter for a Particular column in obiee 11g

    Hi,
    I have created an report having 10 measure columns and filter by month i.e., less than (particular month ) which is working perfect.Actually my requirement is to one column to be filter by equal to particular month. if is it possible kindly tell me how to do. thanks in advance!

    Hi,
    Goto Edit formula for that particular column.
    and use FILTER(measure_column USING (condition)).
    eg:
    FILTER("XXXXX"."measure_column" USING ("OBIA"."D5.Times"."Month" =particular_month ))
    Try this... This will work fine.

  • Filter for rolling CMOS rolling shutter flash frames?

    I seem to recall stumbling upon a filter that removed offending frames from footage shot with a rolling shutter camera during flash photography. I didn't download it- but now I need it.
    Is there a easy fix or plug in that will remove the rolling flash frames from a clip?

    - ability to choose deletion of an email on handset only
    - desktop software working with all older BB's allowing drag and drop type of transferring data, contacts etc. (BB link doesn't recognize my old Storm) 
    - auto power on/off
    - contacts syncing with yahoo & Outlook (almost two weeks trying to work around it and no luck)

  • OBIEE Answer : SQL Filter for one column of the Dashboard sample : 201301

    I need to filter the report on the basis of one of the filter on the column which is created by custom calculation :
    YEAR ("Order Header Attributes"."Status Date" ) * 100 + WEEK("Order Header Attributes"."Status Date" )
    and this in the Number format.
    I need the filter as : 2013 + Week(CurentWeek) -1 = 201302
    Please help me create a custom SQL filter for the same.

    Anitha ,
    I am getting the error while doing it with Prompt :
    I went to the Dashboard on top Left next to results there is a Prompt there i clicked a new prompt i gave a name , description selsected my column in Filter on Column
    Operator : = is equal to / is in
    How should the user choose a value or values?
    * Select it from a drop-down list
    Browse through choices and/or type in directly
    * Single Value Only
    What values should be shown to the user?
    None
    All Values
    Limited Values
    * SQL Results (year("Status Date")*100) + WEEK_OF_YEAR("Status Date")-1)
    (The values returned by this SQL statement)
    Other options
    Choices per page
    (leave blank for automatic setting)
    Allow user to constrain choices
    Allow user to skip prompt
    I am doing correctly please help me in case i am not doing it correctly
    Regards ,
    Nidhi

  • Library Filters: Filter for multiple values in a single column and Wildcards

    If you have a multi-value column in a library, can you filter to show only results where two (or more) specific values (terms) are applied? E.g. Year 2014 and Month January? Seems this would be particularly useful for Enterprise Keywords columns.
    Similarly, is there any way to filter on one value OR another value in a single column (e.g. Document Type Memo OR Fax)?
    Any way to use wildcards in searches (would be REALLY useful in the Title and Name columns when naming conventions have been followed).
    I'm guessing the answer is going to be 'move to SharePoint 2013' - if that is the case, please confirm whether all the scenarios mentioned above are catered for.

    Thanks for your replies !
    Is there any other way to achieve this ?
    There is 1 InfoObject which has 2 fields Employee and Department.
    Employee     Department
    001                A
    001                B
    001                C
    In the report there should be 1 row for Employee 001 with all the Departments displayed in the same cell separated by commas.
    Can this be done in the backend through a ABAP code?

  • How to apply Filter condition for a specific column but not to the report?

    Hi,
    I am having a issue in applying a filter condition to one of the column.
    I have a schema with one fact table and around 10 dimension tables. My requirement is to bring a count on the fact table with related to some other columns from the dimension tables.
    Lets consider a scenario with tables like Sales (Fact), Region (Dimension), Year(Dimension), Sale Type (Dimension).
    Now my requirement is to bring out the fields
    City(Region) --City                                   
    Year -- Year
    Sales Count(Sales table) ---Count of all sales from the fact table
    Sales Count(Sales table) -- Count of all sales from the fact table where sales type is 'CASH'
    Here my issue is how do I apply the filter condition of Sales Type='CASH' only on one of the Sales Count column which is from the fact table. I want the filter condition to be imposed only for the fourth column.
    Can anyone let me know how to achieve this?
    Thanks

    This is quite simpe. Edit the column formula for the 4th column and put something like this. I am doing this from memory so the syntax might need checking:
    Case When "Dimension Table"."Sales Type"='CASH' Then "Fact Table"."Measure" Else Null End
    You could also consider making this a permanent addition to your RPD if this measure will be used again and again. You would add a new logical column and use the expression builder to arrive at the same result.

  • Mac Book Pro just got it, all was well for 2 weeks now Finder window does not fill whole screen, there is an 1 1/2" space of black on the right side and the Finder window had a 1" section that flipped like a rolling tv now it is a white bar! Help!

    Mac Book Pro just got it, all was well for 2 weeks now Finder window does not fill whole screen, there is an 1 1/2" space of black on the right side and the Finder window had a 1" section that flipped like a rolling tv now it is a white bar! Help!

    Bad video card, call Apple, get a case number and return it.

  • Interactive report filter for date not working correctly

    Hi,
    I am having an interactive report. I tried to give a filter for a column(created_on) as created on>29-oct-2009 17:17
    but i am getting the row containing created on as *29-oct-2009 17:17* in the report result. How can i correct this
    problem
    Thanks,
    TJ

    Hi,
    I think it is because seconds.
    So it is 29-oct-2009 17:17:00 and your record is e.g. 29-oct-2009 17:17:02
    br, Jari
    Edit
    You can use trunc function in your select so that it round date to minutes
    TRUNC(created_on,'MI') AS created_onBr, Jari
    Edited by: jarola on Nov 5, 2009 3:02 PM

  • How to use the filter facet on af:column

    I have a column in my VO that is defined as a boolean and that shows as a selectBooleanCheckbox in my table. My table has filters on but above the boolean column it shows a regular input field.
    I checked the filter facet and i also put a selectBooleanCheckbox in it but i don't know how to set the values so the data will be filtered when the value of the checkbox changes.
    <f:facet name="filter">
                        <af:selectBooleanCheckbox id="cbFilt"/>
                      </f:facet>

    For an example that uses a selectOneChoice, easily adaptable to a selectBooleanCheckbox solution, please see:
    Re: how create selectOneChoice in filter facet of af:column _ jdeveloper11g.
    Regards,
    Matthew

  • Hi ,How can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm or poerwshell . i have struggled for a week.

    Hi ,how can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm
    or poerwshell . i have struggled for a week
    tchocr

    Hi,
    There is no such PowerShell command can achiev this. Maybe you can use a script to get the user name with folder redirection enabled. However, I am not familiar with writing script, and it would be better for you to ask in script forum below for professional
    assistance:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
    Best Regards,
    Mandy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm or poerwshell . i have struggled for a week.

    How can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm or poerwshell . i have struggled for a week.

    Hi,
    There is no such PowerShell command can achiev this. Maybe you can use a script to get the user name with folder redirection enabled. However, I am not familiar with writing script, and it would be better for you to ask in script forum below for professional
    assistance:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
    Best Regards,
    Mandy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How to clear alert when a null value is returned for a metric column?

    Hey all,
    Recently, I've encountered a problem about clearing alert when a null value is returned for a metric column. From Oracle official doc, it seems that NO_CLEAR_ON_NULL could be used for this propose. However, it doesn't.
    Here is the line from doc, you can see when NO_CLEAR_ON_NULL is set as FALSE, the null value will clear alert, and the default value for NO_CLEAR_ON_NULL is FALSE.
    NO_CLEAR_ON_NULL: This attribute is used to control severity clearing when a null value is returned for a metric column. It defaults to FALSE with the behavior that a null value ends up clearing previous alert severities. With a TRUE value for this attribute, null values will be skipped in severity evaluations without clearing the severity.
    TRUE | FALSE (default)
    STATELESS_ALERTS: This attribute if set to TRUE indicates to EM that alerts on this
    column will not have corresponding clears. This allows the UI to decide whether to
    allow users to manually clear alerts on this column.
    TRUE | FALSE (default)Here is my code for the metric,
    -- meta definition
      <Metric NAME="Flushing_Table_Overtime" TYPE="TABLE" HELP="NO_HELP">
        <Display>
          <Label NLSID="mmd_ip">Flushing Table Overtime</Label>
        </Display>
        <TableDescriptor>
          <ColumnDescriptor NAME="State" TYPE="STRING" IS_KEY="FALSE">
            <Display>
              <Label NLSID="mmd_rc_State">State</Label>
            </Display>
          </ColumnDescriptor>
          <ColumnDescriptor NAME="Time_Seconds" TYPE="NUMBER" IS_KEY="FALSE">
            <Display>
              <Label NLSID="mmd_fto_Time_Seconds">Flush Table consume Seconds</Label>
            </Display>
          </ColumnDescriptor>
        </TableDescriptor>
        <ExecutionDescriptor>
          <GetTable NAME="MysqlProcessAggregate"/>
          <GetView NAME="v_flushing_tables" FROM_TABLE="MysqlProcessAggregate">
            <Column NAME="State" />
            <Column NAME="Time_Seconds" />
            <Filter COLUMN_NAME="State" OPERATOR="EQ">Flushing tables</Filter>
          </GetView>
        </ExecutionDescriptor>
      </Metric> 
    -- coll definition
      <CollectionItem NAME="Flushing_Table_Overtime">
        <Schedule>
          <IntervalSchedule INTERVAL="10" TIME_UNIT="Min" />
        </Schedule>
        <MetricColl NAME="Flushing_Table_Overtime">
          <Condition COLUMN_NAME="Time_Seconds"
                     CRITICAL="30" OPERATOR="GT"
                     MESSAGE="There is a Flushing Table command has exceeded %critical_threshold% seconds."
                     MESSAGE_NLSID="msg_Flushing_Table_Overtime" />
        </MetricColl>
      </CollectionItem>If this feature can not be achieved by coding XML, then is there a way to clear alert with Oracle Package? I have confirm neither sysman.em_severity.delete_current_severity nor sysman.em_severity.clear_alerts could do it.
    Would anyone give me a hint?
    Thanks in advance!
    Best wishes,
    Satine

    > I am executing in this manner
    var RESULT BOOLEAN;
    BUT I am unable to create variable with boolean data type.
    WARNING. Do not confuse SQL*Plus with PL/SQL.
    There is no variable command in PL/SQL. PL/SQL does support the boolean data type.
    There is a variable command in SQL*Plus. It allows one to define bind variables. It is limited in the data types it supports. It does not support boolean as a bind variable type.
    SQL*Plus is a CLI (Command Line Interface) client tool. It has a very limited vocabularly, allowing you to (primarily):
    a) configure its local environment (e.g. size of the terminal ito number of characters per lines)
    b) configure its bevahiour (e.g. spooling data to a file)
    c) defining substitution and bind variables
    And that's it. It is not PL/SQL. It is not SQL. It takes the PL/SQL and SQL you enter, and submit that to the Oracle server. (it does some basic parsing of the data to substitute variables and bind variables where applicable)
    Do not confuse this CLI client tool with the server side PL/SQL or SQL languages.

  • How do you filter for photos with develop adjustments?

    I wanted to put this information out there, because it was difficult for me to find an answer to the question of "how do you quickly filter for photos that have develop adjustments?"
    Some earlier posts in this forum observe that a smart collection has the ability to filter files wherein "has adjustments" is "true." Yes, it can do that. And it can also add in a "date" parameter for more specific targeting. But it cannot simply say, "in the current folder," or "in the selected folder." And frankly, that's the exact situation when I need to filter down to the files I want: I'm in a folder—typically the current folder that I've just imported—and I've done a smattering of develop adjustments. Now, I want to quickly select just those images for export. Can't be done, not with a Smart Collection, anyway.
    But Lightroom is nothing if not deep, and if you approach the problem from a filtering standpoint, it will eventually get you there—but the solution is very non-obvious. Expose the filter bar, with your favorite preset: camera info, default columns... it doesn't really matter. Hover over the header bar and to the far right will become visible the "add column" widget. Add a column. From the pop-up menu on the name will come a long list of options, the second-to-last of which is "develop preset." Once that's in place, click on "custom." Save your current settings as a new preset and give it a descriptive name like "adjusted images."
    Now, when you're in your current—or any—folder, just click on "metadata" in the filter bar, and your custom preset will be in effect: any images that you've worked on will be selected. It's a fast, one-click selection.
    If there's another way of doing this (keep in mind it's for the selected or current folder only), let me know. It's such a seemingly desirable action that I'm kind of astounded there's no built-in or easy or obvious way to do it... or that no photographer has requested it.

    I am honored to have a response from Rikk "MVP" Flohr, and I do readily agree that your approach is one way to approach the issue. It puts the relevant images in a discrete area that is easy to access. However (this is where I look a gift horse in the mouth) I find "sorts" a bit underwhelming in comparison to "filtering." Two problems: first, the sort still does not 'clear your deck' of unwanted images. You still have to squint at the badges and carefully select the range at the top (or bottom). Mistakes can be made (and I would be the first to make them). Second, the sort command is "sticky," meaning that folder will always have that sort unless you undo it. In general, I think most photographers want to see a folder's images sorted by capture time, so they can easily glance to the beginning, middle, and end of the shoot. With my method, once you click out of the folder, the filter is taken away and you're back to normal.
    I do understand that Lightroom wants me to flag my images with rankings or stars or colors or dancing beavers or what-have-you. But in this particular situation, that's an extra step. If I've applied development adjustments, it's already done. Why shouldn't I be able to choose "Select Developed Photos" from the Edit menu, right under "Select Flagged Photos"?

  • Download Mask/Filter for BLOB

    Hi,
    I use APEX: 4.2.
    I have got a problem to display the Download link (button) in a classic report to open the uploaded file. I have got two columns in the report: FILENAME and ATTACHMENT. The second is the BLOB type column in my table.
    My Report query is: select FILENAME, ATTACHMENT from QTMT_TICKETS where TICKET_ID = :P10_TICKET_ID The report display the name of the uploaded file and the second column display: [datatype].
    I added a Mask/Filter to the second column in my report: DOWNLOAD:QTMT_TICKETS:ATTACHMENT:TICKET_ID::MIMETYPE:FILENAME:ATTACH_LAST_UPDATE::Attachment:Download But then I got error: report error: ORA-01403: no data found , the Column Attributes is set to: Standard Report Column.
    The upload looks good. I got populated in my table all four mandatory fields for the BLOB (ATTACHMENT, MIMETYPE, FILENAME, ATTACH_LAST_UPDATE).
    Could you please let me know what I do wrong?
    Thank you and best regards,
    Vladimir

    Vladimir Bartos wrote:
    I have got a problem to display the Download link (button) in a classic report to open the uploaded file. I have got two columns in the report: FILENAME and ATTACHMENT. The second is the BLOB type column in my table.
    My Report query is: select FILENAME, ATTACHMENT from QTMT_TICKETS where TICKET_ID = :P10_TICKET_ID
    As described in the documentation, the download link column in the report must provide the length of the BLOB:
    >
    To facilitate the inclusion of a download link in a report, the report includes the selection of the length of the BLOB (for example, dbms_lob.getlength(RESUME)). If the length is 0, the BLOB is NULL and no download link is displayed.
    >
    The report query should therefore be something like:
    select FILENAME, dbms_lob.getlength(ATTACHMENT) attachment from QTMT_TICKETS where TICKET_ID = :P10_TICKET_ID

Maybe you are looking for

  • Printer problem- on new cartridge- repeats alignment test and later repeats documents

    I replaced the black ink cartridge on my HP PSC 1410 All IN ONE.  Often it then repeats the alignment test each time, I turn it on.  The second problem is that when I print a document and indicate ONE copy, it continues printing multiple copies.  Do

  • How to search contacts ?

    I am having an N73 Music Edition. The problem I face is that when I want to get a particular contact person, I can not access it easily with typing the first Letter of that name. For example: If I want to call George, and I go to Contacts and type th

  • Trouble with bridge and CS3

    I had a problem with bridge and now it says to repair the problem i have to reactivate my software.  When I go to do that it say I have to take it off another computer before I activate it.  But it is not nor has it ever been on another computer.  Ca

  • Trying to find a CS3 installer

    Why does the folder at ftp://ftp.adobe.com/pub/adobe/photoshop/mac/cs3/ contain an installer for CS2 but not one for CS3? The folder for CS4 does not have and installer for CS3. THe folder for  CS2 does not have an installer for CS. But the folder fo

  • IPad and iCloud downloads

    Have original iPad.  Updated iTunes (10.5) and IOS 5. When selecting single TV season in "purchased" to download to iPad video, all content on iCloud moves to download.  ???