Macro to Sum up Month's History to 1st Bucket of the Month

Dear Experts,
We have a requirement to Copy entire month's history to the 1st weekly bucket of the Month.
Please note that we have a SCM Calendar that defines what week belongs to which month to accommodate split weeks.
DP Macro is preferable.
Thanks in advance
Regards
JB

Hi Subhan,
Thank you for your reply. But this does not meet my requirement.
For example if there are 4 weeks in the month as per factory calendar, the data might come for W1 and W3. Our requirement is sum all the data in all 4 or 5 weeks accordingly and put in 1st bucket of the month in a different key figure.
Our SCM Calendar looks like this, example: Feb 2 falls in 2013 fiscal year and the posting period is 10 (P.10.2013). Similarly May 4 falls in P01.2014
Month
Day
Period
Year Shift
2
2
10
-1
3
2
11
-1
3
30
12
-1
5
4
1
0
6
1
2
0
6
29
3
0
8
3
4
0
8
31
5
0
9
28
6
0
11
2
7
0
11
30
8
0
12
31
9
0

Similar Messages

  • Schedule: How to Schedule a report to 1st Monday of the Month

    Trying to schedule a report to run every 1st Monday of the Month, using 3.1, what would be the best way to do it?

    Hi,
    1) Click on the schedule report.
    2) In Recurrence Tab select "1st Monday Of Month" from Run Object Drop Down.
    3) Click on schedule.
    Now report will run on the 1st Monday of Each Month.
    Thanks,
    Amit

  • History and Future Bucket of the Data View

    Hi Experts
    As per my Client Requirement Planning for the Next year Jan 2010 u2013 Dec 2010 which Starts in the second Quarter of the Year 2009.
    They need historical data (Historical Time Bucket) of Last 3 years in the monthly bucket and Future bucket for Jan 2010- Dec 2010.
    My query in this regard to design Data view which  need to Show Historical periods of Last 3 yrs from current month and Future Bucket as Jan 2010-Dec 2010 to input the Forecast.
    The next planning Cycle would start in the second Quarter of the 2010 to forecast for the Jan 2011 to Dec 2011. When they plan for the Year Jan 2011 u2013 Dec 2011 the data views should be automatically roll or update with future bucket Jan 2011-Dec2011 and History Bucket with three years in the monthly bucket from the Current Month.
    Please give your Valuable Suggestions with regard to above requirement.
    I tried by Giving Planning Start Date as 01.01.2010 , but it is not fulfilling the above requirement.

    Hi Anuradha
    Thanks for you quick reply.
    Assume that we are in the Month of June 2009, My planners start the planning process  for the Jan 2010 - Dec 2010.
    If i take 1 year it wont help me , Future Buckets will be till May 2010.
    If i take 17 Months as the Future Buckets , Future buckets are displayed till Dec 2010.
    Till June 2010 In between Planners can have Revision , and may again change the Forecast.
    Suppose Assume that we have revision in the month of March 2010 , Here Future Buckets are displayed till October 2011.
    How to make my data view time bucket in the synchronized with future Periods.
    Thanks in Advance
    Mani

  • Issue with date formula when running a report on the 1st day of the month

    We have a formula that compares last month data against last year last month, the report runs on the 1st of every month although the report errors when it tries to run in January being the first month of the new year it tries to look for a month begining with Zero instead of looking back at decemeber which would be 12.
    Does anyone any solutions for this issue?
    Thanks,
    Chris
    Example of some formula's we have tried but none seem to work.
    if {@MonthName} = "December" then year({CDCCHD.CDOPDT}) in year(currentdate)-1 to year(currentdate)-2 else year({CDCCHD.CDOPDT}) in year(currentdate)
    OR
    (if {@Last Full Month Name}= "December" then year({CDCCHD.CDOPDT})= year(currentdate)-2 or
    {CDCCHD.CDOPDT} in lastyearytd else {CDCCHD.CDOPDT} in lastyearytd or
    {CDCCHD.CDOPDT} in yeartodate)
    OR
    ({CDCCHD.CDOPDT} in dateserial(year(currentdate)-1,month(currentdate),01)-1 to dateserial(year(currentdate)-1,month(currentdate)-1,01) or
    {CDCCHD.CDOPDT} in lastfullmonth)
    OR
    if {@monthname} = "December" then {CDCCHD.CDOPDT} in dateadd("m", -28, (currentdate)) to (currentdate)-14 else {CDCCHD.CDOPDT} in dateadd("m", -14, (currentdate)) to (currentdate)

    Chris,
    Give these formulas a try...
    Beg of Last Month
    DateAdd("m", DateDiff("m",#1/1/1900#, CurrentDate) - 1, #1/1/1900#)
    End of Last Month
    DateAdd("m", DateDiff("m",#1/1/1900#, CurrentDate), #1/1/1900#)
    Beg December of Last Year
    IF DatePart("m",CurrentDate) = 1
    THEN DateSerial(DatePart("yyyy",CurrentDate) -2, 12,1)
    ELSE DateSerial(DatePart("yyyy",CurrentDate) -1, 12,1)
    End December of Last Year
    IF DatePart("m",CurrentDate) = 1
    THEN DateSerial(DatePart("yyyy",CurrentDate) -1, 1,1)
    ELSE DateSerial(DatePart("yyyy",CurrentDate), 1,1)
    Note that the "End" formulas produce a value that shows midnight of the following day that you would normally expect to see... For example, if you are expecting to see 12/31/2009, it will show 1-1-2010.
    The reason is that the formulas come out to be midnight of the day shown... So a range of 12/1/2009 - 1/1/2010 will include 12/31/2009's data but none of 1/1/2010... (12/1/2009 - 12/31/2009 would actually cut off 12/31/2009).
    If for some reason your data is stored w/o time values then an adjustment would need to be mande.
    HTH,
    Jason

  • Function to retrieve  first day of the month.

    Select (sysdate, 'IW') from dual
    I know this takes the date to Monday. Is there a function like above which takes the date back to first Monday of the month ??
    Thanks in advance.

    Hi,
    NEXT_DAY is very handy, but it's dependent on NLS_DATE_LANGUAGE, and you can't pass an argument to override that.
    TRUNC (dt, 'IW') does not depend on any NLS settings, so you might prefer this:
    TRUNC ( 6 + TRUNC (SYSDATE, 'MONTH')
          , 'IW'
          )          AS first_mondayThe 1st Monday of the month is the Monday on or before the 7th of the month.

  • Creating new report 1st day of each month

    Hello, all!
    I have a vi that I run to record pressure on test units.  I want to create a new excel report on the 1st day of each month.  If it is not the 1st day of the month I want to just add the data for each test unit as a new worksheet.  I have looked around and can't find a post for what I need to do exactly.  If anyone can help, greatly appreciate.

    Hey END82,
    I agree with RTSLVU's suggestion of using the Seconds to Date/Time vi. From there you can wire the day of the month into a case structure, and have the case for day number 1 to be where you create a new excel report and have the other default case add the data to the report. 
    I attached a VI Snippet which you can drag onto a block diagram to look at.
    Hope this helps!
    Joe S
    Applications Engineer
    National Instruments
    Attachments:
    date.png ‏13 KB

  • Depreciation for the Dep Area 03 is positive for the month of december

    Dear All,
    My client has run the Deprecation for the month of Dec 2011 and for only one asset the value in the depreciation area 03 is become positive. Eg; for 11 months value is credit 1000 and in the month of December it has posted as Debit 1000. And the value of the asset has in the deprication 03 is same as 2011 value because dep. is zero.
    Please assit me in this case as I its financial year close.
    Regards,
    Jayraj

    Hi Jayraj,
    I assume that the DEP KEY might have been changed for the Area 31 to 0000 after running the dep update run for NOV period but before running the DEC dep update run in AFAB/AFABN.
    This could be the only reason, where the whole Dep for the year will get reversed.
    Ex: You might have created an addtional DEPRECIATION INTERVAL for Dep area 31, where the starting date for the the same could have set to FY start date.
    Regards,
    Srinu

  • Hide portlet in between some date of the month

    Hi all,
    I have a requirement to hide a perticular portlet in between some dates in a month.
    Say I want to show portlet from 1st of month to 15th o the month and hide portlet
    for rest of the month.
    How can I achive this.
    Can I do it through portal admin if yes how?
    Or i will have to do it programatically?
    Any help on this will be highly appreciated
    Thanks in advance
    Manish

    Right now, I don't think the entitlements support this type of
    day-of-month checking functionality directly. However, you can use a
    role and entitlement as part of a solution. You could have a servlet
    filter or your portal's skin's jsp or the portlet's backing file
    initialize a request attribute called DayOfMonth to the numeric day of
    the month from a java.util.Calendar. e,g.:
    request.setAttribute("DayOfMonth",
    new Integer(Calendar.getInstance().get(Calendar.DAY_OF_MONTH)));
    Then, in workshop, create a Request Property Set in data/request. Add a
    single-value, unrestricted Numeric property called DayOfMonth. Save the
    Request Property Set. In the admin portal, create a role whose condition
    checks the request's DayOfMonth property to be greater than or equal to
    1 and less than or equal to 15. Entitle the portlet to that role.
    Greg
    Manish wrote:
    Hi all,
    I have a requirement to hide a perticular portlet in between some dates in a month.
    Say I want to show portlet from 1st of month to 15th o the month and hide portlet
    for rest of the month.
    How can I achive this.
    Can I do it through portal admin if yes how?
    Or i will have to do it programatically?
    Any help on this will be highly appreciated
    Thanks in advance
    Manish

  • What is the period of notice for the month-to-month subscription to "Adobe Creative Cloud"?

    For example, can I subscribe for one month only and then terminate my subscription right away without having to pay for more than this one month?
    Thanks a lot!

    You must cancel your month-to-month membership before the end of the month, so you don't incur an additional month's charge. Once charged for the month-by-month membership, the fee is non-refundable. Here is a complete overview of subscription terms: Adobe - Subscription Terms

  • How to sum colmn for evey day in the month

    All if i have a table that has
    username, volume, date
    And i want to sum the volume for everyday of the month, does anyone have an example.

    hehe, losing my head by using analytics when they're not needed... ooops!
    SQL> with t as (select 'USERA' as username, to_date('01/01/2007','DD/MM/YYYY') as dt, 1 as vol FROM DUAL UNION ALL
      2             select 'USERA', to_date('01/01/2007','DD/MM/YYYY'), 2 FROM DUAL UNION ALL
      3             select 'USERB', to_date('01/01/2007','DD/MM/YYYY'), 4 FROM DUAL UNION ALL
      4             select 'USERB', to_date('01/01/2007','DD/MM/YYYY'), 8 FROM DUAL UNION ALL
      5             select 'USERC', to_date('03/01/2007','DD/MM/YYYY'), 16 FROM DUAL UNION ALL
      6             select 'USERD', to_date('01/01/2007','DD/MM/YYYY'), 32 FROM DUAL UNION ALL
      7             select 'USERA', to_date('02/01/2007','DD/MM/YYYY'), 64 FROM DUAL UNION ALL
      8             select 'USERB', to_date('01/01/2007','DD/MM/YYYY'), 128 FROM DUAL UNION ALL
      9             select 'USERC', to_date('03/01/2007','DD/MM/YYYY'), 256 FROM DUAL UNION ALL
    10             select 'USERA', to_date('02/01/2007','DD/MM/YYYY'), 512 FROM DUAL UNION ALL
    11             select 'USERD', to_date('01/01/2007','DD/MM/YYYY'), 127 FROM DUAL UNION ALL
    12             select 'USERA', to_date('03/01/2007','DD/MM/YYYY'), 31 FROM DUAL)
    13  -- END OF TEST DATA
    14  select username, dt, sum(vol)
    15  from t
    16  group by username, dt
    17  order by 1,2
    18  /
    USERN DT                    SUM(VOL)
    USERA 01/01/2007 00:00:00          3
    USERA 02/01/2007 00:00:00        576
    USERA 03/01/2007 00:00:00         31
    USERB 01/01/2007 00:00:00        140
    USERC 03/01/2007 00:00:00        272
    USERD 01/01/2007 00:00:00        159
    6 rows selected.

  • How to change the setting on Iphone to have more call history, i see only 1 week of call history all other android phones support atleast month call history.

    Hello all,
    I need to see more call history on iphone 5 earlier modes were atleast storing  1 month of history but now i am very much looking for more call history, where the call history should be available as a option where user can set when he needs 15 days history some people needs all call history it shoul dhave all call history, this might also be a draw back for apple as android or other phones has much longer call history, hope the ISO 7. would address this and fix to have more call history, Would Apple be considering the call history, if any one know how to configure if atall it is available in iphone please post your comments here.
    it would be really helpful for some many users like me.
    Thanks
    Sreenath

    I archive my call logs using PhoneView (Mac). They are saved in a nice PDF (or text if I wanted) which I then store in Evernote so that it's availble on all my devices. I could also use iBooks or any other PDF app to view them. If you have a PC, look at TouchCopy.
    http://www.ecamm.com/mac/phoneview/
    http://www.wideanglesoftware.com/touchcopy/index.php

  • I want to see the history of the mozilla browser in my computer for the month of November 2013 but I can not be you that there is a solution that is very urgent

    on my browser history are displayed months since December 2013 until now but I want to see the month of November 2013 to help me find the solution that is very urgent

    Hi Maha123,
    If your Firefox history only goes as far back as December, I'm afraid it's unlikely that you'll be able to retrieve information from any earlier.
    It might worth contacting your Internet Service Provider (ISP) as they may have logs of the websites you visited in November.
    Regards,
    Jayelbe

  • I am handling logistics department in a company, i am handling more than 100 calls in a day. But my iPhone 4 have only 100 number call history. How to increase my call log size or kindly suggest a better app for storing 1 month call history..

    I am handling logistics department in a company, i am handling more than 100 calls in a day. But my iPhone 4 have only 100 number call history. How to increase my call log size or kindly suggest a better app for storing 1 month call history..

    Here's one:
    https://itunes.apple.com/us/app/callog/id327883585?mt=8

  • How to generate a Yearly report based on a calculation at the Month level

    Have the need to create a report as follows. Any ideas on how this can be accomplished in OBI is appreciated. I have already tried different ways but non worked for me.
    The data is stored in a table at day level as follows:
    Day Amount_A Amouont_B
    1/1/2008     100     100
    1/15/2008     200     100
    2/1/2008     100     400
    2/15/2008     300     200
    1/1/2009     100     300
    1/15/2009     100     200
    2/1/2009     200     100
    2/15/2009     400     300
    The report should be displayed at Year level. Amount_A is just the summation of Amount_A from the table at daily level rolled up to the Year level in the Time dimension. The same thing for Amount_B.
    The formula for Absolute_Error is Absolute(Amount_A - Amount_B). But the problem is that it has to be calculated at the Month level instead of Day Level. So following is the logic for Absolute_Error:
    Month     Amount_A Amount_B     Absolute_Error
    Jan-2008     300     200     100
    Feb-2008     400     600     200
    Jan-2009     200     500     300
    Feb-2009     600     400     200
    The report should be displayed as follows:
    Year Amount_A Amount_B     Absolute_Error
    2008     700     800     300
    2009     800     900     500
    Note that the calculation of Absolute_Error results in a different value if it is calculated at the Month level and summed up to Year than if it were calculated at the Day level and then summed up to Year. It is required to be based on Month level for this report.
    Is there a way to do this without having to build an aggregated fact table at the Month level?

    Hi.
    Do this:
    1. Create Amount_A and Amount_B in BMM without SUM as default aggregation rule.
    2. Now, just go to Answers and make report with three columns:
    YEAR -- EXPRESSION 1 -- EXPRESSION 2
    EXPRESSION 1 is:
    sum(Amount_A) - sum(Amount_B)
    EXPRESSION 2 is:
    sum
    abs
    sum(Amount_A by MONTH)
    sum(Amount_B by MONTH)
    My example in Answers:
    TIMES.CALENDAR_YEAR
    sum(SALES.QUANTITY_SOLD_NORMAL) - sum(SALES.AMOUNT_SOLD_NORMAL)
    sum( abs(sum(SALES.QUANTITY_SOLD_NORMAL by TIMES.CALENDAR_MONTH_DESC) - sum(SALES.AMOUNT_SOLD_NORMAL by TIMES.CALENDAR_MONTH_DESC) ) )
    This will first summarize amount A and amount B on a month level and then do a difference, after that ABS and then sum on the year level.
    This is workaround to avoid larger RPD changes.
    Regards,
    Goran O
    http://108obiee.blogspot.com/

  • Show or Count info depending on the month on SharePoint

    I have a a custom list that contain several columns with data (numbers). One of the column cotains the Month Name in which the data was entered and another hiden column with the Month Number. In this list I have another column named Pending Cases. his clumn
    only show the informaion of the previous months and nothing else. For example if you had 2 pending cases in November and 2 in December. When creating a report in January, only what was pendng n December maters, because older than that have been solved, or
    are not pending anymore.
    In order to show the data I created a web part showing a table. This table was working beautifully until January. And this s why:
    In order to filter the data the way I wanted to I created a variable called PMonth (for Previous month), which would get the month from the current date:
    <xsl:variable name="PMonth" select="(ddwrt:FormatDateTime(string($Today),1033,'MM') -1)"></xsl:variable>
    Then I created a Total column where I would show only the data from the previous month:
    <xsl:value-of select="sum($Rows[@Month_Number= $PMonth]/@Pending_x0020_Previous_x0020_Yea)"/>
    This would compare the Month_Number column with PMonth, and only would show when True.
    Again, this worked perfectly until now that January is month numnber "1". When I get the current month using ddwrt:FormatDateTime... as previously shown for PMonth, I get a negative number or "zero" when the current month is January
    or February; therefore sum($Rows[@Month_Number= $PMonth]/@Pending_x0020_Previous_x0020_Yea)" would never happen the first months of the year, because it is out of the scope (1 - 12). I been trying to find a way to solve this issue, but no luck so ar.
    I would appfreciate any suggestion using XSLT or jQuery. Thanks in advance.
    EM

    hi
    the issue is caused by month numbering
    create a new calculaated column in your list, which will be used in your forumla
    this calulcated column =
     12 if [Month Number]=1, otherwise
    =[Month Number]-1
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

Maybe you are looking for

  • Where to put my SDN T-shirt picture

    Hi! I have just get my 2K SDN and take a picture with it. Where should I post it? Regards, Ibai

  • PHP. How is execution time calculated?

    As, unfortunately, I am rather good at programming infinite loops, I have set the maximum execution time on the test version of my program to one second. However it usually seems to take anything up to about a minute to time out, after which it annou

  • How to apply Security Patch

    How do I apply the "DOS Attack" security patch for WLS 6.1 on Win2K Please help Thanks

  • Scripting studio questions... - Help!?

    Hello, I've got two questions, both regarding applescript studio. Q1: How can one execute applescript code without pressing a button etc. Easy example: If I would like to display the default dialog with xcode's applescript, I would write "display dia

  • 11i Installation Problems

    Hi I am new to Oracle platform. I am having problems installing Oracle 11.5.8 Apps on Linux AS 3: Linking external procedure agent (extproc) rm -f /OracleCRM/d02/oracle/bcssdb/8.1.7/rdbms/lib/extproc gcc -o /OracleCRM/d02/oracle/bcssdb/8.1.7/rdbms/li