Dynamic Date Range Filter - Rolling 15 Months

Hello All,
I'm having an issue with the below report filter:
Date.Date >= (TIMESTAMPADD(SQL_TSI_MONTH, 0, CURRENT_DATE)) AND Date.Date <= (TIMESTAMPADD(SQL_TSI_MONTH, 14, CURRENT_DATE))
The aim is for the above to return 15 months of data, today's date being 31/07/08 I would like all data to be returned from the 01/07/08 - 30/09/2009. The above filter however returns everything from the 31/07/2008 - 30/09/2008.
I have seen similar posts but never but have not come across a solution, any ideas?
Thanks
Innoveer

Ok.. Sorry guys, I found the post. For all who are interested:
Date.Date >= TIMESTAMPADD(SQL_TSI_MONTH, 0, TIMESTAMPADD(SQL_TSI_DAY, -(DAY(CURRENT_DATE)-1), CURRENT_DATE)) AND Date.Date <= TIMESTAMPADD(SQL_TSI_MONTH, 15, TIMESTAMPADD(SQL_TSI_DAY, -(DAY(CURRENT_DATE)), CURRENT_DATE))

Similar Messages

  • Scheduling WebI reports for Dynamic Date Ranges

    Hello Everyone,
    Our Env is BOBJ XI 3.1 SP2 FP2.5 integrated with SAP NW  BW 7.02 EPH1
    We are trying to schedule few WebI reports which can be used on ad-hoc basis as well. Some reports need to get data from starting of the month to today (like MTD) and few are with dynamic date ranges.
    In case of relational universes i used to do Magic Date as mentioned here :  http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts
    But for OLAP Universes i have written a MDX filter prompt as :
    <FILTER KEY= "@Select(Debit Memo Date\Debit Memo Date LOV)">
    <CONDITION OPERATORCONDITION= "Between">
    <CONSTANT CAPTION= "IIF (@Prompt('Enter\Select DM Start Date: ','D','First day of Current Month\First day of Current Month',mono,free,not_persistent,{'First Day of Month'},,User:0)='First Day of Month','First day of Current Month\First day of Current Month',@Prompt('Enter\Select DM Start Date: ','D','First day of Current Month\First day of Current Month',mono,free,not_persistent,{'First Day of Month'},,User:0))"/>
    <CONSTANT CAPTION= "IIF (@Prompt('Enter\Select DM End Date: ','D','Date2\Today',mono,free,not_persistent,{'Today'},,User:0) > '1/1/2100 12:00:00 AM',''1/1/2010 12:00:00 AM'',(@Prompt('Enter\Select DM End Date: ','D','Date2\Today',mono,free,not_persistent,{'Today'},,User:0))"/>
    </CONDITION>
    </FILTER>
    We are getting MDX erros because IIF can only return numeric values. So are there any other approaches for dynamically scheduling the reports or can the above MDX prompt be modified to make it work ?
    - Vamsi Ch

    Ingo,
    When we schedule the WEBI report we use the BEX query with a variable based on a customer Exit .
    There are good examples in
    https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    In order to avoid providing a hard coded date restriction in the BEX query we want to have a flexible date range solution (e.g. data from 1.1.2011 until yesterday).
    Is the folloing scenario possible:
    Scheduled webi report with a hard coded date e.g. 1.1.1900 (for the BEX variable)
    The BEX query should return the data from 1.1.2011 until yesterday (dynamically)  if date = 1.1.1900
    else it should return the data (for the e.g. adhoc reporting)
    Is a customer exit like this possible ?
    Pseudo code:
    IF date = 1.1.900 then return sysdate-1 else return entered date
    For a relational universe I always used a magic date condition

  • Getting Error in Infoview while using Date Range Filter in SAP BW Universe

    Hi,
    I have created a date range Filter in My Universe
    <FILTER KEY= "@Select(Debit Memo Date\L01 Debit Memo Date)">
    <CONDITION OPERATORCONDITION= "Between">    
    <CONSTANT CAPTION= "[ZFDAY_MTH].[LEVEL01]"/>
    <CONSTANT CAPTION= "[ZCBDATE].[LEVEL01]"/> </CONDITION></FILTER>
    It was Parsed "OK" without any errors.
    When I used this filter in my report it does not return any records, while there are some records which I had verified earlier. When I include the two fields "[ZFDAY_MTH].[LEVEL01] and "[ZCBDATE].[LEVEL01] in My Report with the filter I am getting the following error -
    A database error occured. The database error text is: A pointer intended for use is NULL. pConstantOperand is NULL in SAPSQLExpressionEvaluator::getOperandsFromCondition, exception raised at line 125 of file source/sofasqlexpressionevaluatorbase.cpp. (WIS 10901)
    If I remove the filter and run the report , it gives me the expected results.
    Please help me if anyone has faced this issue earlier.
    Thanks ,
    Pankaj Goswami

    Hi,
    How about using this code.
    I have not tested but I think if we follow this syntax pattern, it might work
    <FILTER KEY="[Debit Memo Date\L01 Debit Memo Date].[LEVEL01].[TECH_NAME]"><CONDITION OPERATORCONDITION="Between"><CONSTANT TECH_NAME="@select(ZFDAY_MTH.LEVEL01','D',,mono,free)"/><CONSTANT TECH_NAME="@select(ZCBDATE.LEVEL01','D',,mono,free)"/></CONDITION></FILTER>
    Regards,

  • Dynamic date range

    I'm on ECC6.0, and looking to set up a dynamic date range in a variant.
    The date range is a select-option on my selection screen.
    I can easily setup the dynamic date for the 'low' value in the range,
    but I can see no way to also declare a dynamic date in the 'high' value.
    I also looked in TVARV maintenance and it doesn't seem possible there
    either, as there's no way to declare variable values.
    If I can't resolve this, I will have to change my program to include a
    default high date and use that.
    But even that may not work if we call the variant, which may overwrite
    my default in the high value of the range with a blank value.
    Does anyone know how to do this?
    Thanks in advance for your help.

    Hi Jagan,
    If you save the variant you can choose some options for the select-option. If you choose selection variabel type D (dynamic date calculation) you can choose out of several Names of Variables that provide for a LOW and HIGH value.
    If you use type T, you can choose a variable that is stored in tabel TVARVC. You can add your own variable to table TVARVC using SE16.
    Regards........
    Chaitanya.

  • Dynamic date range in the variant

    Hi,
    We have a background job that is scheduled to run on every 25th. One step of the job has a selection screen which has a Payment date range which is to have the dates 25th of previous to the 24th of the current month.
    So every month this needs to be updated dynamically. For ex: If I look at the variant of the step of the job in period 04 the date should be "03/25/2010 to 04/24/2010". If I look in Period 05 then it should be "04/25/2010 to 04/25/2010".
    Can anyone tell me if this can be achieved through a variant or does this have to be put in the code?
    Regards,
    raj/

    You can create a dynamic variant using STVARV following the steps in the given link...
    http://wiki.sdn.sap.com/wiki/display/ABAP/Creatingdynamicvariantusingtable+TVARV
    Now, the values in TVARVC need to be updated for each period. It can be done scheduling a separate BDC program, which runs for each period and updates the values. So, your date values will be changed for a new period by the background job and program variant wil pick up automatically the values from TVARVC. Check this link, which depicts a similar kind of requirement.
    Re: Update TVARVC Table Dynamically
    You can also calculate the values in intialization event each time the program runs as suggested by Sumit. But, if you need a variant then it won't help. The advantage with TVARVC is you can maintain different set of variants with different values.

  • Conditional Sum... dynamic Date range MDX

    Hi
    i had question just now and got the right answer for it. That was great. However, I ran and the result was not right.
    It turned out I can not just sum up sales from the current date to the last date of sales but add one extra condition.
    I have three dimensions: Invoice Date, Licence Start Date, Licence End date. I need to add a condition saying only sales with licence start date is equal or early than current licence end date for the below query.
    I am looking at Filter function in MDX book right now. ahh It's been too long since I used the MDX last time. This is kinda urgent. Any help would be appreciated.
    I have added the condition as follows. It is not right because I got the same result as the first one. It should be less.
    And I think it's because the current member of licence start date for the expired month invoices are not applied right. 
    With member MEASURES.ActiveLicences as 
    sum ( 
    Filter(
    {[License Expiry Date].[FinancialYear].CurrentMember: null },
    ([Licence Start Date].[Financial_Year].CurrentMember <= [License Expiry Date].[FinancialYear].CurrentMember)
    [Measures].[No of Students]
    select {
    MEASURES.ActiveLicences,
    [Measures].[No of Students] } on columns, 
    [License Expiry Date].[FinancialYear].[YY-MMM].members on rows 
    from [Sales];
    from 
    With member MEASURES.ActiveLicences as 
    sum ( 
    {[License Expiry Date].[FinancialYear].CurrentMember: null },
    [Measures].[No of Students]
    select {
    MEASURES.ActiveLicences,
    [Measures].[No of Students] } on columns, 
    [License Expiry Date].[FinancialYear].[YY-MMM].members on rows 
    from [Sales];
    Kind regards

    Hi Sqlma,
    According to your description, you are going to sum the measure for the members with the dondition that licence start date is equal or early than current licence end date for the below query, right?
    In this case, you need filter out the members that licence start date is equal or early than current licence end date for the below query. And then sum the total measures using sum function. I have tested it on my local environment, here is a sample query
    for you reference.
    with set [aa]
    as
    filter
    ([Product].[Product Categories].members,
    [Measures].[Internet Sales Amount]>30000)
    member [measures].[b]
    as
    sum([aa],[Measures].[Internet Sales Amount])
    select {[Measures].[Internet Sales Amount],[measures].[b]} on 0,
    [aa] on 1
    from [Adventure Works]
    where [Date].[Calendar].[Calendar Year].&[2008]
    Regards,
    Charlie Liao
    TechNet Community Support

  • Dynamic date range creation for WebI query

    Hi
    I have a webi query where I need to provide a date range as selection.  But the from date will be based on number of days that user will provide during query execution. For e.g. user will give no of days as 10 so the date range need to be created as  (system date -10) to (system date).
    I am not sure how to provide the option for user to input no of days and then calculate the date range.
    Could you please help me here.
    Regards,
    Amit

    Amit.
    it can be done but by creating multiple objects.
    create Obj1: @prompt("Enter Number Of days",N,Mono,etc..) and capture the number of days in it.
    Create your second object infact a filter object: Obj2: Sysdate
    Third Object(filter) Obj3:  (Sysdate-(@select(class\Obj1)))
    give the between condition in webi using these two objects
    between Obj2 and Obj3

  • How to set variant which gives date range of last month for sel.scr field

    Hi All,
    I want to set a variant which can do dynamic date calculation, need get last month period i.e when i select a variant it should always pick last month start date & end date for the period selection field. How can i achieve that. Please help me to know that.
    Thanks in advance.
    Regards
    Vishal

    I think in the date selection you can put in the calculations last month start date and end date, did you see what options you are getting in the variant? I am not in front of the system, so can't see.
    <b>I just looked up and found that you can specify the first and last day of the last month in the variant dynamic value setting.</b> When you saving the variant, select the check box for the SELECTION VARIABLE and then click the dynamic value calculation second traffic light. Then you will get drop down where you can select the values.
    Regards,
    Ravi
    Note : Please mark all the helpful answers
    Message was edited by: Ravikumar Allampallam

  • Break Date Range by Week / Month

    I have an ArrayCollection which is made up of Objects in the following form:
    AC = { site='abc.com' date="2009-10-01" visits="2000" ...},
         { site='abc.com' date="2009-10-02" visits="2000" },
         { site='abc.com' date="2009-10-03" visits="2000" },
         { site='abc.com' date="2009-10-04" visits="2000" },
         { site='abc.com' date="2009-10-04" visits="2000" },
         { site='abc.com' date="2009-10-05" visits="2000" },
         { site='abc.com' date="2009-10-06" visits="2000" },
         { site='abc.com' date="2009-10-07" visits="2000" },
         { site='abc.com' date="2009-10-08" visits="2000" },
         { site='xyz.com' date="2009-10-01" visits="2000" },
         { site='xyz.com' date="2009-10-02" visits="2000" },
         { site='xyz.com' date="2009-10-03" visits="2000" },
         { site='xyz.com' date="2009-10-04" visits="2000" },
    I'd like to break up this ArrayCollection into Weeks and Months. As in, group them into an Advanced Datagrid by Group Week.
    I imagine I should be adding a key to each object that specifies Week 1, Week 2, etc; by getting the getDay() to being 1 (for Mondays), and the result would be:
    AC = { site='abc.com' date="2009-10-01" visits="2000" week="Week1"},
         { site='abc.com' date="2009-10-02" visits="2000" week="Week1"},
         { site='abc.com' date="2009-10-03" visits="2000" week="Week1"},
         { site='abc.com' date="2009-10-04" visits="2000" week="Week1"},
         { site='abc.com' date="2009-10-04" visits="2000" week="Week1"},
         { site='abc.com' date="2009-10-05" visits="2000" week="Week1"},
         { site='abc.com' date="2009-10-06" visits="2000" week="Week1"},
         { site='abc.com' date="2009-10-07" visits="2000" week="Week1"},
         { site='abc.com' date="2009-10-08" visits="2000" week="Week2"},
         { site='abc.com' date="2009-10-09" visits="2000" week="Week2"},
         { site='abc.com' date="2009-10-10" visits="2000" week="Week2"},
         { site='xyz.com' date="2009-10-01" visits="2000" week="Week1"},
         { site='xyz.com' date="2009-10-02" visits="2000" week="Week1"},
         { site='xyz.com' date="2009-10-03" visits="2000" week="Week1"},
         { site='xyz.com' date="2009-10-04" visits="2000" week="Week1" },
    Anybody got any other ideas?

    Hi,
    here's one way:
    WITH     params          AS
         SELECT  DATE '2012-08-01'     AS p_from_date
         ,     DATE '2012-09-19'     AS p_to_date
         FROM     dual
    ,     end_points     AS
         SELECT     TRUNC ( p_from_date + 4
                    , 'IW'
                    ) + 3          AS first_thursday
         ,     TRUNC ( p_to_date + 4
                    , 'IW'
                    ) - 5          AS last_wednesday
         FROM    params
    SELECT     first_thursday + (7 * (LEVEL - 1))     AS week_start_date
    ,     first_thursday + (7 * LEVEL) - 1     AS week_end_date
    FROM     end_points
    CONNECT BY     LEVEL     <= ( last_wednesday
                      + 1
                      - first_thursday
                      ) / 7
    ;TRUNC (dt) is the beginning of the ISO week that contains the DATE dt.
    The "magic number" 4 is used because the ISO week begins on Monday, 4 days later than your week begins, so
    TRUNC ( dt + 4
          , 'IW'
          )is the Monday in the same Thursday-Wednesday week as dt.

  • Dynamic Date range validation

    Hi all,
    I have 2 date fields in a page: Start Date, End Date. The Start Date should not be later than End Date.
    I don't know how to write a validation to control TWO fields. I cannot use the built-in ADF declarative validation at Entity Level, since I want to set the autoSubmit=true to do validation at realtime.
    What I have done is I created validator function for both fields, the function works fine except this:
    1. user input 1-1-2000 to Start Date, user input 1-1-1999 to End Date. the invalid dialog appears for end date
    2. user input 1-1-1990 to Start Date, but the End Date is still Invalid.
    Is there anyway to fix this problem?
    I am using Jdeveloper 11.1.1.2 with ADF BC.
    Regards,
    Samson Fu

    I found the solution for this, post here for anybody have the same problem.
    http://jdevadf.oracle.com/adf-richclient-demo/faces/feature/interfieldValidation.jspx
    Regards,
    Samson Fu

  • Creation of Dynamic Date Variables to be used in WebI reports

    What we are trying to achieve is to create 4 optional filters (Current Day, Current Week, Last Week, Last Month) on 4 different dates which will allow the users to use them in WebI reports.
    When using an optional SAP Customer Exit variable in BEx and creating a Universe on top, the filter becomes mandatory (i.e. the whole Universe is filtered by the SAP Exit, irrespective of whether the filter is used in the WebI report). Even if the filter is flagged as optional at the Universe level, it still behaves as mandatory.
    If each filter becomes mandatory then we'll have to create 16 different Universes (for each optional filter and date combination)! This is not feasible.
    I've seen in other posts that MDX Statements are not currently supported for Universes base on BW and SAP Exit should be utilized.
    So with the existing BO version, is it possible to create optional dynamic date variables or is that a product limitation?
    We are on XI3.1 SP3 FP3.1
    Thanks

    Hi Adam,
    In BEx, I would create this query very easily using the "Amount" key figure twice in my results and restricting each with a different SAP standard out-of-the-box delivered variable. For your reference, the variables in BEx are: 0FPER and 0FYTLFP.
    If I expose these variables in my OLE DB for OLAP query, they are not transfered into the universe, but rather act as filters on the entire universe. I've seen in documentation that only "Ready for Input" variables can be transfered as options into the universe which is not something that I have seen mentioned in this thread.
    >> In the BEx Query you have the option to either make the variable "ready for input" or not. The behavior is the same in Bex or in the Universe / Web Intelligence. "Ready for input" means the user can actually provide an input and without the flag the user can not provide an input. Yes those variables are supported in the Universe.
    Why this is a problem: I can't create separate universes based on potential variable periods that users might want to see. Additionally, many financial reports require concurrent use of these measures in the same report. Also, in reality it's not 2 variables, but dozens.
    >> Which is a decision you make already on the BEx query level. if you decide that the variable is not ready for input then the user can change the timeframe in BEx either.
    Also, I don't have a good way to mimic the standard out-of-the-box functionality given with BEx in BO. If I custom create all my variables in the universe, how do I do a lookup from the system date to the fiscal calendar that is stored on the BW server? In other words, how does BO know which date belongs in which period? (the same would be true with factory calendars for a different functional area).
    >> Variable are created in the BEx query and the Universe will leverage those.
    If you want a dynamic date range then EXIT variable as part of the BEx query - ready for input or not - is the solution.
    regards
    Ingo Hilgefort
    The only work around I can see is to require users to enter the current fiscal period and have the BO reports filter based off that user entered value. This is unfortunate as the entire purpose of SAP Exit variables is to avoid having to require user input at report time.

  • Date range

    Hi,
    How do I group by to have a date range count and it will sum up the letter1 that is obtained from that one month.Currently i knwo how to run it daily but summarizing by one month of teh postcodes, i am not too sure.
    This is table counters.
    Date Postcode Letter1 Letter2
    31/05/2009     810     MOM MOM
    1/01/2009     810     MOM MOM
    1/02/2009      810     MOM MOM
    29/05/2009     812     DAD DAD
    30/04/2009     832     DAD
    31/05/2009     835     DAD
    29/05/2009     812     MOM
    29/05/2009     812     MOM MOM
    DDL
    create table counters
    (DATETIME date,
    Postcode number,
    letter1 varchar2(5),
    letter 2 varchar2(5));
    Query I have tried:
    <pre>
    SELECT TO_CHAR(DATETIME, 'DD/MM/YY'),POSTCODE,
    count(letter1) as letter1_TOTAL,
    count(letter2) as letter2_TOTAL,
    sum(case when letter1 ='MOM' then 1 else 0 end) as "MOM",
    sum(case when letter2 ='DAD' then 1 else 0 end) as "DATE"
    FROM counters
    WHERE DATETIME >= (sysdate -180)
    GROUP BY TO_CHAR(DATETIME, 'DD/MM/YY'),POSTCODE
    ORDER BY TO_CHAR (DATETIME,'DD/MM/YY') DESC;
    </pre>
    Not sure how to do this month based.
    Liek my expected results should be
    Date Postcode letter1 letter2
    1/01/2009 -1/02/2009 810 2 null --------->MOM occured twice in that month
    1/03/2009 -1/04/2009 810 null null
    1/05/2009 -1/06/2009 810 1 null
    1/01/2009 -1/02/2009 812 null null
    1/03/2009 -1/04/2009 812 null null
    1/05/2009 -1/06/2009 812 1 1
    At that one month how many times MOM/DAD has summed up in that postcode.
    Edited by: CrackerJack on Jun 3, 2009 10:30 PM

    Still not very clear about our requirement.
    SQL> WITH counters AS
      2       (SELECT TO_DATE ('31/05/2009', 'DD/MM/YYYY') datetime, 810 postco
      3               'MOM' letter1, 'MOM' letter2
      4          FROM DUAL
      5        UNION ALL
      6        SELECT TO_DATE ('1/01/2009', 'DD/MM/YYYY'), 810, 'MOM', 'MOM'
      7          FROM DUAL
      8        UNION ALL
      9        SELECT TO_DATE ('1/02/2009', 'DD/MM/YYYY'), 810, 'MOM', 'MOM'
    10          FROM DUAL
    11        UNION ALL
    12        SELECT TO_DATE ('29/05/2009', 'DD/MM/YYYY'), 812, 'DAD', 'DAD'
    13          FROM DUAL
    14        UNION ALL
    15        SELECT TO_DATE ('30/04/2009', 'DD/MM/YYYY'), 832, 'DAD', NULL
    16          FROM DUAL
    17        UNION ALL
    18        SELECT TO_DATE ('31/05/2009', 'DD/MM/YYYY'), 835, 'DAD', NULL
    19          FROM DUAL
    20        UNION ALL
    21        SELECT TO_DATE ('29/05/2009', 'DD/MM/YYYY'), 812, 'MOM', NULL
    22          FROM DUAL
    23        UNION ALL
    24        SELECT TO_DATE ('29/05/2009', 'DD/MM/YYYY'), 812, 'MOM', 'MOM'
    25          FROM DUAL)
    26  SELECT * FROM COUNTERS
    27  ORDER BY datetime
    28  /
    DATETIME    POSTCODE LET LET
    01-JAN-09        810 MOM MOM
    01-FEB-09        810 MOM MOM
    30-APR-09        832 DAD
    29-MAY-09        812 MOM MOM
    29-MAY-09        812 DAD DAD
    29-MAY-09        812 MOM
    31-MAY-09        835 DAD
    31-MAY-09        810 MOM MOM
    8 rows selected.I changed your group by clause to include the date range. However if you want month wise you should understand that 01-Jan-2009 to 31-Jan 2009 is considered as one month. So the date range for one month you specified in your expected result was wrong. (01-Jan-2009 to 01-Feb-2009) .
    Hope the following code helps:
    SQL> WITH counters AS
      2       (SELECT TO_DATE ('31/05/2009', 'DD/MM/YYYY') datetime, 810 postco
      3               'MOM' letter1, 'MOM' letter2
      4          FROM DUAL
      5        UNION ALL
      6        SELECT TO_DATE ('1/01/2009', 'DD/MM/YYYY'), 810, 'MOM', 'MOM'
      7          FROM DUAL
      8        UNION ALL
      9        SELECT TO_DATE ('1/02/2009', 'DD/MM/YYYY'), 810, 'MOM', 'MOM'
    10          FROM DUAL
    11        UNION ALL
    12        SELECT TO_DATE ('29/05/2009', 'DD/MM/YYYY'), 812, 'DAD', 'DAD'
    13          FROM DUAL
    14        UNION ALL
    15        SELECT TO_DATE ('30/04/2009', 'DD/MM/YYYY'), 832, 'DAD', NULL
    16          FROM DUAL
    17        UNION ALL
    18        SELECT TO_DATE ('31/05/2009', 'DD/MM/YYYY'), 835, 'DAD', NULL
    19          FROM DUAL
    20        UNION ALL
    21        SELECT TO_DATE ('29/05/2009', 'DD/MM/YYYY'), 812, 'MOM', NULL
    22          FROM DUAL
    23        UNION ALL
    24        SELECT TO_DATE ('29/05/2009', 'DD/MM/YYYY'), 812, 'MOM', 'MOM'
    25          FROM DUAL)
    26  SELECT      TO_CHAR (TRUNC (datetime, 'MONTH'), 'DD/MM/YYYY')
    27           || '-'
    28           || TO_CHAR (LAST_DAY (datetime), 'DD/MM/YYYY') date_range,
    29           postcode, COUNT (letter1) AS letter1_total,
    30           COUNT (letter2) AS letter2_total,
    31           SUM (CASE
    32                   WHEN letter1 = 'MOM'
    33                      THEN 1
    34                   ELSE 0
    35                END) AS "MOM", SUM (CASE
    36                                       WHEN letter2 = 'DAD'
    37                                          THEN 1
    38                                       ELSE 0
    39                                    END) AS "DAD"
    40      FROM counters
    41     WHERE datetime >= (SYSDATE - 180)
    42  GROUP BY    TO_CHAR (TRUNC (datetime, 'MONTH'), 'DD/MM/YYYY')
    43           || '-'
    44           || TO_CHAR (LAST_DAY (datetime), 'DD/MM/YYYY'),
    45           postcode
    46  ORDER BY    TO_CHAR (TRUNC (datetime, 'MONTH'), 'DD/MM/YYYY')
    47           || '-'
    48           || TO_CHAR (LAST_DAY (datetime), 'DD/MM/YYYY')
    49  /
    DATE_RANGE              POSTCODE LETTER1_TOTAL LETTER2_TOTAL        MOM         DAD
    01/01/2009-31/01/2009        810             1             1          1           0
    01/02/2009-28/02/2009        810             1             1          1           0
    01/04/2009-30/04/2009        832             1             0          0           0
    01/05/2009-31/05/2009        810             1             1          1           0
    01/05/2009-31/05/2009        812             3             2          2           1
    01/05/2009-31/05/2009        835             1             0          0           0
    6 rows selected.Regards,
    Jo
    Edit: Added code tags

  • Project Online - offline project plan prompts for date range to be entered when accessing Resource Usage view

    When I save a project plan to my local computer from Project Online and open it up in an offline mode and access Resource Usage view I get prompted with Date Range dialog boxes with the first one saying "Show resources/assignments that start or finish
    after:" and the second one with "And before:".
    I don't have any filters that are setup in Project Online that are not available in offline mode to trigger these prompts.
    Please let me know what could be causing the date range prompts. Thanks.

    Hi,
    You probably retrieve an enterprise filter into your local file. Just open the organizer from MS Project, go to the filter tab (be sure to have your project selected in the drop down menu at the top left of right of the organizer) and delete the date range
    filter.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Ms Project 2013 report for resource name, tasks less than 100% complete within a date range I can set each time

    I have seen I can create a report for a resource name with a specified date range, and one that can show me for a resource name any incomplete tasks, but I want to do the following and cant work out how to state it in the report constructor:
    resource name equals - {I want to set a given resource in here}
    % complete is less than 100%
    start - date range is between [today -7 days] and [today +7 days]
    Please can someone show me how this is possible, I know it will be and it is me that has been defeated!!

    workspacedesign,
    Oops, my bad. I missed the point that the Name field for assignment rows will be the task name and that's not what you want. There is also a glitch in the date range filter. So, here's how to fix that.
    First, in the Resource Usage view, copy the Name field to Text1. Now select the resource line and do a fill down for all assignments under that resource. Do that for each resource. This could be automated with VBA, but for now, a manual setup should work
    fine.
    Second, instead of testing for the Name field in the filter, test for the Text1 field.
    Third, change the Finish test to be "less than or equal to".
    Now when you apply that filter, enter beginning date of your range and then the ending date of your range followed by the resource name. You should get the data you want.
    Unfortunately formulas in custom fields are not as flexible in Project as they are in Excel. For example, in Project a formula can only operate on data for that row. Further, even if you use the formula Today() +7 for your filter criteria, the first time
    the filter is used, Project will hard code today's date into the filter. The normal way around both of these shortcomings is to use VBA.
    Hope this helps.
    John

  • Restrict Query Data based on Date range and Users

    Hi All,
    I have a few web reports that I need do restrict data based on Users.
    In all the queries i have an infoobject 0CALDAY, and  a User Entry range variable on it. Because of performance issues  I need to restrict the range of dates a User can see. Typically most of users could go to a max date range of 1 month back. But some others would need the ability to see data for much bigger range of dates.
    Pls suggest how should i go about with this. Should I have to enforce this at Variable level(user exit).... but then i might have to maintain a table for the users.. Is there any other way of doing it.
    thanks
    Raj

    Any thoughts ?

Maybe you are looking for

  • How to save a SVG File in full black

    Hello guys, i have a problem. there are some vector ai icons that i have and its needed to be saved as a svg file. the problem is that the icon must be saved as c-0 m-0 y-0 k-100 and its seems every time is save the file and reopen it to check it or

  • Reports in .pdf , .xls files....

    Hi, I have a requirement that the reports should be extracted/printed in .pdf and/or .xls files.... I know that these types of files can be generated via the use of XML Publisher... So , do i have to develop the reports using the XML Publisher only(w

  • Active Directory Binding Problems

    Hi all, I'm trying to bind to Active Directory but keep on getting the "unknown error occurred" at step 5. I captured the adplugin debug log, the only error I can see is the following: 2006-03-30 15:53:48 BST - ADPlugin: Setting Computer Password FAI

  • Billing Output fails as no Communication type from srategy

    Dear Experts, I am trying to process two billing output types on maintaining  condition records ( for a debit memo type)for table 916. I can see these output types are defaulted in the debit memo output screen but they are becoming red and the proces

  • FM to Create or Cancel Delivery?

    Dear All, Is there any function module or BAPI to Cancel Delivery, and Create Delivery? Regards, Dharmesh