Need a formula for 12 months data, 6 months data and 3 month

Hi All Crystal Experts,
In my report, data is grouped by months and I have monthly view of data. I have three prompts- Year, Startdate and Enddate. If I give 2013 as year, 1/1/2013 as start date and 05/01/2013 as end date then report shows monthly view of data for Jan-13, feb-13, Mar13, Apr-13 and May-13. Now in report, for each month, I want three additional columns, I want to show last 12month, 6 month and 3 months view. Like for Jan-13 month, in column 6 months, I want to show data for last 5 months including current month i.e. Jan-13+Dec-12+Nov-12+Oct-12+Sep-12+Aug-12 and in Column 12months view, I want to show accumulated data of last 11 months(+ current month) and in 3 months view, data for last 2 months(+ current month).
I had tried creating Sub report for 12 months view and created Running total formula  but it is not showing any value in report. It is blank. I have created running total like this way:
(1) "Running total formula" (which I am using and placing on group footer):
(I) Field to summarize- @Cash_total
(ii) Evaluate (use a formula):
WhilePrintingRecords;
NumberVar Cash_total_12 months;
If Month ({@Month_PostDate}) In [(Month {?StartPostDate} - 11) to Month
{?StartPostDate}] Then
   Cash_total_12 months :=  Cash_total_12 months + {@Cash_Total};
(iii) Reset (use a formula):
WhilePrintingRecords;
NumberVar Cash_total_12 months=0;
When I placed this formula in group footer, it is showing nothing.
Please suggest me formula. Quick help would be much appreciated.
Thanks,

Hi Remi,
Please do not post multiple threads for the same issue.
Continue discussion on this thread:
How to calculate last 12 months, 6 months, 3 months data in report
-Abhilash

Similar Messages

  • Need a link for PS CS6 Extended Student and Teach

    Need a link for PS CS6 Extended Student and Teacher's Edition.  My copy fried on my laptop and I need to re-install or do a repair install.  The adobe site is trying to force me into this cloud product world.  The links here:
    http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
    Are broken --- I won the product - just need install files again without being assimilated into a whole new cloud platform.  Why break the old links?  I  have had this about 20 months....

    Manning777 you should be able to download the software from the page you referenced.  I would recommend trying a different web browser or perhaps checking the security settings on your browser.

  • I need a refund for storage charges I bought and did not need for iCloud!

    I need a refund for storage charges I bought and did not need for iCloud!

    You only have 15 days to cancel and get a refund.
    In the UK click on this link:
    HT4874 iCloud Storage Upgrade refund

  • Formula for totaling $ Amount per Category per Month

    I'm doing a Numbers spreadsheet similar to a check register and one page is a budget where I'm trying to keep track of how much money was spent on each category compared to a set amount I'm trying to budget for. I have a separate table for each month of the year. I know how to make it work with a fixed range of cells, but the problem with that is its too labor intensive having to go back and forth and change those at the end and beginning of each month.
    My current formula that works is: =−SUMIF(Personal::Transactions::D407:D485,D1,Personal::Transactions::E407:E485)
    I have the minus SUMIF because I enter debits as negative numbers and credits as positive numbers. D407:D485 is the arbitrary range I've set it at for now, at the end of the month I'll shorten that.
    If someone could guide me to a formula that would allow me to accomplish the same thing but fixed at, say, for July, where it would total all $ Amounts where the date is greater than or equal to July 1, 2014 and less than or equal to July 31, 2014, with the category of Groceries, that is what I'm looking for.
    Any help would be appreciated.
    Thanks!

    My spreadsheet is the exact same concept as the Personal Budget template, which when opened says "Monthly Budget". The difference being I don't want a spreadsheet for every month, I want one spreadsheet for an entire year, then I have a Budget tab within the spreadsheet for planning purposes. With one spreadsheet for the entire year, I just want to adjust my formula to be able to search the entire table, exclude all data not within the parameters of a given month, July for instance, should only include data where the Date field is >= July 1, 2014 and <= July 31, 2014, and then from there broken into the categories entered. All I'm looking for is the specific language to put in my formula to make it hunt down only data that meets those parameters, rather than having to manually go in and select the cells that make up the month. The laborious part of that is you have to set an arbitrary number of cells as a guestimate up front, then at the end of the month you have to adjust it. I'd rather automate the formula if possible, I just don't know how.
    If you look at the table on the template (below), what I want to do differently than this, is have the formulas in the Actual column, pull for only a specific month. Then, I essentially have 12 of these tables on one spreadsheet tab to summarize each month's budget, actual, and difference numbers.
    Sorry for my confusion. I really do appreciate your time and effort.

  • Date Formatting - Day and Month Switching Places

    I am starting to get really frustrated with this problem; at first it was just a nuisance, but now when I actually want and need to do something important with Numbers it has become a major headache.
    When I first select a formatting and enter a date it works fine. I enter, e.g., "1 Aug 2009" and Numbers formats it "1 August, 2009" as per my formatting selection. However, when I go to change the formatting to, e.g., "day of week, day month, year" my "1 August 2009" suddenly becomes "Thursday, 8 January, 2009" - it switches the day and month values around! This happens no matter which format I choose, and no matter what I do - whether I enter the day first or month first, American or European - it always switches them around when I go to change the format. It's infuriating!
    Does anyone have any suggestions? What am I to do?

    Welcome to Apple Discussions
    I believe the problem is that you have US formats for dates. Select the cells/columns that you want your date format to apply to then click the cell format inspector (the 42 in a box icon) & choose Custom… from the cell format drop-down. You will be presented with a box that allows you to make your own format. Click & hold on any of the little "lozenges" in the input bar & move them around. You may need to add a space to get the proper result.

  • Need a FM for gettng starting & ending date based on the settlement period

    Hi,
    I have to filter a database table based on the settlement period( IDENT3 ) and the field available is of date field. Can anyone give me a function module by which can calculate the starting date and ending date by providing the settlement period ( eg. AM- Monthly, AQ- Quarterly, AJ- Annually,  etc ) and date.
    Thanx in advance.
    Regards,
    Sumanth.

    Hi Sumanth,
    Please use the function module 'DATE_CONVERT_TO_FACTORYDATE' to get the start date and end date for the particular factory calender.
    For end date:
    CORRECT_OPTION                  +
    DATE                                       sy-datum
    FACTORY_CALENDAR_ID        Aq(quaterly)
    For start date:
    CORRECT_OPTION                  -
    DATE                                       sy-datum
    FACTORY_CALENDAR_ID        Aq(quaterly)
    According to sy-datum, it will calculate the Extreme  interval .
    Thanx,
    Zenthil.

  • Need Solution/Workaround for Note 947081: SG dates in MMDDYYYY

    We are implementing ESS for Singapore. Dates are being shown in MMDDYYYY format - we need DD.MM.YYYY, which is the Singapore standard.
    Our large user base all have language EN, country SG.
    With reference to Note 947081, dated 07.09.2006, I'd like to enquire if there is a solution or workaround to the limitation given in the Note:
    "Known Limitations
    10. Calendar date formatting for Singapore
    The calendar date formatting for the locale "en_SG" Singapore is MM/DD/YYYY similar to the US American date format.
    This is a feature of the SUN Java JVM. It is not possible, by means of
    SAP NetWeaver, to change this behaviour."
    SAP informs us there is no update from them overcoming this problem.
    Changing the user master for the entire user base is not feasible.
    System details: We are running on Unix Server, Java from IBM.
    Inconsistencies: Any MESSAGES containing dates from R/3 come in DD.MM.YYYY
    From the ESS portal some links point to ITS sub-screens - which are in DD.MM.YYYY

    Hi Chopper,
    How to change the standard behavior internally...?
    Thanks in advance.

  • What is the formula for automatically entering todays date into Numbers.  In Quattro, it was '@today', but I cannot find it in numbers.  Thx

    What is the formula to automatically enter 'current date' into spreadsheet?  In Quattro, it was '@today', but I cannot find it in the Numbers spreadsheet.  Thx

    201,
    Do you want it to update or always show the date when entered?
    For updates, use the TODAY() function.
    For a static date, use Insert > Date and Time.
    Regards,
    Jerry

  • Need a formula for Annual increase

    Hi everyone,
    I have a requirement, where lets say, something costs $1000, and annually increases 10%. What would be the formula to use here?
    Thanks
    Umair

    Hi,
    960361 wrote:
    Ok what I need, exactly, is this...
    I have a product that costs $1000, and annually increases 10%. I need to show on one side, the year and on one side, the price of the product, as it increases... e.g.Do you want a 10% increase, or an increase of 100?
    1000 2012
    1100 2013
    1200 2014
    .....If the price changes from 1000 to 1100, that's a 10% increase.
    If the price changes from 1100 to 1200, thats (roughly) a 9.09% increase.
    If the price changes from 1200 to 1300, thats (roughly) a 8.33% increase.
    If the price changes from 2000 to 2100, thats a 5% increase.
    If the increase is always 100, it may start at 10%, but the percentage will get smaller every year.
    If the increase is always 10%, it may start at 100, but the amount will get larger every year.
    Choose which one you want. The query below displays both:
    `     YEAR UP_10_PCT     UP_100
          2012   1000.00       1000
          2013   1100.00       1100
          2014   1210.00       1200
          2015   1331.00       1300
          2016   1464.10       1400
          2017   1610.51       1500
          2018   1771.56       1600
          2019   1948.72       1700
          2020   2143.59       1800
          2021   2357.95       1900As Justin said, there's no need for PL/SQL, but you can use it if you want to.

  • Need SQL code for this logic - -  From Serial and To serial no.

    In Forms 4.5 Screen I have two text boxes where i will be entering From Serial No
    and to serial no.
    I want the code which will check whether any number in between these from and to serial exists in a table or not ?
    For Example
    Select * from t; -- contains
    serial number
    321-456-789
    123-456-654
    321-569-986
    321-569-987
    When I enter from Serial no 321-456-789 and to serial no as 321-456-789.. I should get a message sayinig that 321-456-789 exists.
    When I enter from Serial no 321-569-986 and to serial no as 321-569-988.
    I should get a message sayinig that 321-456-986 exists.
    I should get a message sayinig that 321-456-987 exists.
    I should get a message sayinig that 321-456-988 not exists.
    is it possible with a SQL query or do we need to go for procedure or temp table ?
    If anybody ahving similar code please post it here.
    Thanks in Advance
    Devender

    Hi Devender,
    Try this :
    SQL> select * from t;
    SN
    321-456-789
    123-456-654
    321-569-986
    321-569-987
    SQL> var sn1 varchar2(11)
    SQL> exec :sn1 := '321-569-986'
    Procédure PL/SQL terminée avec succès.
    SQL> var sn2 varchar2(11)
    SQL> exec :sn2 := '321-569-988'
    Procédure PL/SQL terminée avec succès.
    SQL>1  select a.sn, decode(t.sn,null,'does not exists','already exists')
      2  from
      3  (select substr(replace(:sn1,'-','')+rownum-1,1,3)||'-'
      4        ||substr(replace(:sn1,'-','')+rownum-1,4,3)||'-'
      5        ||substr(replace(:sn1,'-','')+rownum-1,7,3) as sn
      6  from (select level
      7        from dual
      8        connect by level <= (replace(:sn2,'-','')-replace(:sn1,'-',''))+1
      9       )
    10  )a,
    11  t
    12* where a.sn=t.sn(+)
    SQL> /
    SN                            DECODE(T.SN,NUL
    321-569-986                   already exists
    321-569-987                   already exists
    321-569-988                   does not exists
    SQL> exec :sn1 := '321-456-789'
    Procédure PL/SQL terminée avec succès.
    SQL> exec :sn2 := '321-456-789'
    Procédure PL/SQL terminée avec succès.
    SQL> l
      1  select a.sn, decode(t.sn,null,'does not exists','already exists')
      2  from
      3  (select substr(replace(:sn1,'-','')+rownum-1,1,3)||'-'
      4        ||substr(replace(:sn1,'-','')+rownum-1,4,3)||'-'
      5        ||substr(replace(:sn1,'-','')+rownum-1,7,3) as sn
      6  from (select level
      7        from dual
      8        connect by level <= (replace(:sn2,'-','')-replace(:sn1,'-',''))+1
      9       )
    10  )a,
    11  t
    12* where a.sn=t.sn(+)
    SQL> /
    SN                            DECODE(T.SN,NUL
    321-456-789                   already exists
    SQL> Nicolas.

  • Need help w/ for loop, a do loop, and a do-while loop.

    Hello I have been trying to write a program that uses a for, do, and a do-while loop, but I am having trouble. I need the program that will prompt the user to enter two numbers. The first number must be less than the second number. I need to use a "for loop", a "do loop", and a "do-while loop" to display the odd numbers between the first number and the second number. For example, if the user entered 1 and 8, the program would display 3,5,7 three different times (one for each of the loops). Please help if you can. Thanks.

    boolean2009 wrote:
    Thank all of you all for responding.Youre welcome.
    Yes this is my homework, but my major does not even involve java i just have to take the class.Not our problem.
    And yes we are suppose to have all three in one program I do not know why,So you can learn all three types of loops (there is also an enhanced for loop to learn later on).
    but I just do not understand programming nor do i really want to.Once again not our problem.
    If anybody could help it would be much appreciated. thanks.Yes, a lot of people are willing to help you. No, none of them will do it for you. What you need to do is attempt the code and when you get stuck, post your code using the code button, include error messages, indicate which lines in your code genereate those error messages and ask specific questions.

  • Need a formula for a date in one table to show on a calendar on a "summary" sheet

    Hello,
    I have created a simple table for my daughter to keep track of her monthly bill's due dates which are in one row of the table. I'd like to create a "summary" sheet which consists of a calendar that shows those dates at one look, it would also show which bill that is due.
    I am just beginning to learn about formulas and have created some simple ones, but this is beyond my talents!
    I would TRULY appreciate anyone's help!
    I tried to search for this subject first, so apologies if this has been answered already.

    Here is what I came up with:
    A couple things to remember:
    1. I ended up using a VERY large IF function; you can see the multi-colored line of text at the top of the above screenshot (I hope it comes thru alright)
    2. You will need to change what date is referenced in the first part of the function. In the first line of the calendar you need to reference cell A2 (as in the screenshot), but in others you will need to use the cell that contains the proper date.
    3. This does not work if you have more than one bill due on the same date. I will try and work that out.
    4. iCal would be MUCH easier. Not only can you set these due dates as recurring events, but iCal can keep things color coded, send you reminders, etc.

  • Splitting date into year and month

    Hi,
       I am getting it_final-bedat (dd.mm.yyyy).I need to split month as well as year in separate fields
    in the internal table.tell some ideas.

    hi badri , try this program , hope this is u r requirement
    data : BEGIN OF itab OCCURS 0 ,
           pernr like  pa0001-pernr,
           begda like  pa0002-begda,
          END OF itab .
    data : BEGIN OF itab2 OCCURS 0 ,
           pernr like  pa0001-pernr,
           d_date type c LENGTH 2  ,
           d_month type c length 2,
           d_year  type c length 4 ,
          END OF itab2 .
    select pernr begda from pa0001 into CORRESPONDING FIELDS OF TABLE itab WHERE pernr eq 1000.
    loop at itab WHERE pernr eq 1000 .
    clear itab2[].
        itab2-pernr = itab-pernr.
        itab2-d_year = itab-begda+0(4).
        itab2-d_month = itab-begda+4(2).
        itab2-d_date = itab-begda+6(2).
        append itab2.
        write :/ itab2-pernr,
                 itab2-d_date,
                 itab2-d_month,
                 itab2-d_year.
        endloop .
    regards
    chinnaiya

  • Need a method for importing Palm III data into a Palm Centro

    I just bought a Palm Centro (Verizon), with the expectation of importing data from my old Palm III.  From the Palm III Desktop, I exported Contacts, Calendar, Tasks, and Memos into separate folders (this was done on a Windows XP PC) and copied the resulting folders & files onto a flash drive.  But when I try to import these files into the Palm Centro desktop (on a new Mac Pro with OSX), the backup files are not in a "recognized format."  Does anyone have a process for reliably getting the Palm III data into the Palm Centro?  Also, is there an easy way to purge unwanted Contacts/Calendar events from the Palm Centro handheld?  With all the trial and error, its accumulating a lot of garbage.  Thanks...
    Post relates to: Centro (Verizon)

    Click on the following link for the upgrade guide on kb.palm.com
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=12926
    You will need to hard reset the Centro in order to clear out the Centro before sync'ing. Click on the following link for the hard reset procedure.
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=887
    Click on the following link for the support page for your devices on the kb.palm.com webpage.
    http://www.palm.com/us/support/centro/centro_vzw/
    http://www.palm.com/us/support/palm3/
    There are links on the pages to the user guide, troubleshooting, how to's, downloads, etc.
    You could try to export the data in each category in Palm desktop, save to the flash drive and import the data.
    Click here for the data export procedure.
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=36288
    Make sure you select "ALL" for the range during the export procedure. If you don't, it will only export the currently selected record.
    Post relates to: Palm i705

  • Need a BAPI for FD01(customer Master data creation)

    Hi Experts,
      i want to upload a data from Legacy to sap for FD01 Tcode for Customer master creation, and what is the key points to dev bapi.
    can anyone give me the BAPI for FD01.
    Thanks,
    sudha.

    Hi,
    use bapi 'BAPI_CUSTOMER_CREATE' to create customer and bapi
    'BAPI_VENDOR_CREATE' to create vendor.
    Regards,
    SuryaD.

Maybe you are looking for

  • [PERSISTENCE CLASS] SELECT OPTION in WHERE statement

    Hi Gurus, I would like to know how could I code the WHERE statement with a SELECT OPTION, in Persistence Class ? Currenlty, I would like to code this kind of request :           DELETE FROM      ziTab                          WHERE   zdate IN so_date

  • EyeTV keeps asking for admin login & password!

    I have EyeTV 3.1 installed into my iMac and, as my daily account is a standard user account, everytime I close EyeTV it asks for an admin login and password. How do I solve this please? Thanks in advance!

  • What do I do i

    What do I do if... -the warranty sticker covering one of the screws have come off due to keeping my Zen in areas where it can be scraped off (IE: front pocket of backpack, on top of pens, pencils, keys, etc.) -when one of the screwheads is stripped b

  • Mac itunes temporarily unavailable

    This helped Mac OS X (Lion 10.7): It is recommended you use iTunes from an administrator account. To become an administrator account, from the Apple () menu, choose System Preferences. In System Preferences, click Accounts. You may need to unlock th

  • GL2DW missing GL Libraries

    Somehow nearly all the GVL8 Library items which I used to use, did not end up in Assets/Libraries inside of DW. I had menu items I used which were pop-up menus for various topics on my personal web pages/site. Only three got transitioned over. What c