Accumulate Values Per month in a Financial Year

Hello All,
I want to be able to accumulate all values in a financial year progressively each month and then begin again as a new financial year has been reached.
eg This is the table values
Month______ Value
May-08_____ 123
Jun-08______ 432
Jul-08_______12
Aug-08______76
Sep-08______122
Oct-08______433
Nov-08______165
Dec-08______232
Jan-09______211
Feb-09______365
Mar-09______122
I would like the following results
Month______ Value___YTD Total
May-08_____ 123_____123
Jun-08______ 432_____555
Jul-08_______12______12
Aug-08______76______88
Sep-08______122_____210
Oct-08______433_____643
Nov-08______165_____808
Dec-08______232_____1040
Jan-09______211_____1251
Feb-09______365_____1616
Mar-09______122_____1738
I tried to use the SUM(Values) over (order by Month) but not sure how to cater for the changes for each start in the financial year (July)
Hope you can help
Frank
Edited by: Species 5618 on Mar 6, 2009 10:51 AM

Hi Frank,
WITH TABLE_A AS (SELECT 123 Month_Value, TO_DATE('01/05/2008') Month_Fiscal_Year FROM DUAL UNION ALL
                 SELECT 432 Month_Value, TO_DATE('01/06/2008') Month_Fiscal_Year FROM DUAL UNION ALL         
                 SELECT  12 Month_Value, TO_DATE('01/07/2008') Month_Fiscal_Year FROM DUAL UNION ALL         
                 SELECT  76 Month_Value, TO_DATE('01/08/2008') Month_Fiscal_Year FROM DUAL UNION ALL
                 SELECT 122 Month_Value, TO_DATE('01/09/2008') Month_Fiscal_Year FROM DUAL UNION ALL
                 SELECT 433 Month_Value, TO_DATE('01/10/2008') Month_Fiscal_Year FROM DUAL UNION ALL         
                 SELECT 165 Month_Value, TO_DATE('01/11/2008') Month_Fiscal_Year FROM DUAL UNION ALL                   
                 SELECT 232 Month_Value, TO_DATE('01/12/2008') Month_Fiscal_Year FROM DUAL UNION ALL                   
                 SELECT 211 Month_Value, TO_DATE('01/01/2009') Month_Fiscal_Year FROM DUAL UNION ALL                   
                 SELECT 365 Month_Value, TO_DATE('01/02/2009') Month_Fiscal_Year FROM DUAL UNION ALL                   
                 SELECT 122 Month_Value, TO_DATE('01/03/2009') Month_Fiscal_Year FROM DUAL)
   SELECT TO_CHAR(Month_Fiscal_Year, 'MON-YYYY') As Month_Fiscal_Year, Month_Value, YTD_Total
     FROM(SELECT Month_Value, Month_Fiscal_Year
            FROM TABLE_A)
    MODEL
DIMENSION BY(Month_Value, Month_Fiscal_Year)
MEASURES (0 YTD_Total)
    RULES (YTD_Total[ANY,ANY] = SUM(Month_Value) OVER (PARTITION BY TRUNC(ADD_MONTHS(Month_Fiscal_Year,6),'YYYY')
    ORDER BY Month_Fiscal_Year))result
MONTH_FISCAL_YEAR MONTH_VALUE  YTD_TOTAL
MAI-2008                  123        123
JUN-2008                  432        555
JUL-2008                   12         12
AGO-2008                   76         88
SET-2008                  122        210
OUT-2008                  433        643
NOV-2008                  165        808
DEZ-2008                  232       1040
JAN-2009                  211       1251
FEV-2009                  365       1616
MAR-2009                  122       1738Regards,
Christian Balz
Edited by: Christian Balz on 05/03/2009 17:02

Similar Messages

  • I have lightroom.  My photos are stored on an external disk drive with a backup disk.  With iCloud, will all of my photos go to the cloud?  Will I still need the external drives? Is the $9.99 per month for just one year or for always?

    I am an amateur photographer and have lightroom.  My photos are stored on an external disk drive with a backup disk.  With iCloud, will all of my photos go to the cloud?  Will I still need the external drives? Is the $9.99 per month for just one year or for always? 

    If the iTunes database files are on that drive, launch iTunes with the Shift key(Windows) or Option key(Mac OS X) held down, select Choose Library, and navigate to it. The computer may need to be authorized to play protected content, and if the library contains rented movies, those won't play.
    If not, import the content to an iTunes library.
    (100371)

  • Display the value of stocks per month

    Dear all,
    A user asked me if it was possible to display the values of stocks or the quantity of stocks per month for the current year?
    I tried MB52, MMBE, MB53 but there is no field to select a period, MC.B, MC.9 but the results can not be displayed by month.
    My company doesn't have WM.
    Thanks a lot for your help.
    Olivier

    HI
    Using T-code MB5B - Stock on Posting Date, the following input data to be given as follows.
    Company Code : ______
    Plant : _______
    Storage Location : ______ if required to be selected
    Selection Date : _________ to ___________ (01.05.2010 to 31.05.2010-Month)
    Stock Type - selected Valuated Stock
    List of Scope click category and following options to be tick marked
    With Opening Stock Without Closing Stock
    With Opening Stock With Closing Stock, Changed
    With Opening Stock With Closing Stock, Unchanged
    Settings - Totals Only - Non Hierarchical Representation Layout /ZMB5B tick marked
    The above input data given & options are tick marked, Executed the report shown opening, Receipt,Issues,Closing stock, UOM, Opening value, Receipt Value, Issue Value, Closing Value, Currency in columnar (like Excel format).
    Hope, it is very useful for you.
    Regards,
    K.Rajendran

  • HT1349 i want to cancel icloud $25.00 charge per month for itunes. my 12 year old applied without my permission

    I want to cancel my 25 dollar amount per month fee. my 12 year old applied without my permission

    Are you sure its for itunes? Not aware of any service thats $25/month. Itunes match is that price for a year.
    Anyway, you should contact itunes store support
    iTunes store support
    http://www.apple.com/support/itunes/

  • Input query with dynamic actual & forecast values by month per year

    Hello,
    I am working on a Input ready query for a forecasting application which shows both actuals and forecast numbers and the user will revise the forecast numbers by month
    Requirement: I want to build a Input query for monthly forecasting for the current year. It will be dynamic rolling of months with actuals & forecast data.
    E.g. My report has 12 months for the current year
    and if run the report in May, the months before May has to show the actuals and the months after May has to show the old forecast data so that the user will revise the numbers again in each month and save the data to the real time cube.
    Jan.Feb.Mar.Apr.May.Jun.Jul.Aug.Sept.Nov.Dec
    Act Act  Act Act Act  Old frcst for the remaining months
      user will revise forecast for these months
    So, i am able to create Input query with all restricted key figures( plan kf has change mode set to change, actual kf are not set change) and calculate key figures and all the logic is done on dynamically moving/rolling the data based on the input month of the year.
    But the problem is that i am using cal kf to dynamically roll months, i was not able to set the change option for the cal kf.
    So, how can i make sure that the dynamically changed plan months will open for entering forecast and the actuals months not to change?
    Do you guys have any better solutions in implementing it?
    I really appreciate it your input....:)
    Thanks,
    Srini

    Hi,
    Please look at the following DOC which may be useful to you and if so please grant me point.
    Regards,
    SUbha'
    Input-Ready Query
    Use
    You use input-ready queries to create applications for manual planning. These can range from simple data entry scenarios to complex planning applications.
    Integration
    You define a query that you want to use for manual planning in the BEx Query Designer (see Defining New Queries).
    In the Web Application Designer or the BEx Analyzer, you can combine the input-ready queries with other queries and planning functions to create complex planning applications.
    Prerequisites
    You can define an input-ready query on any of the following InfoProviders:
    ●     Aggregation levels (see Aggregation Levels)
    ●     MultiProviders that include at least one simple aggregation level
    The aggregation levels are created in the planning modeler; MultiProviders are defined in the modeling functional area of the Data Warehousing Workbench.
    Features
    Definition of an Input-Ready Query
    Once you have defined a query on an InfoProvider, you see the Planning tab page under the Properties of structural components (for example, in key figures or restricted key figures). The options provided there allow you to determine which structural components of an input-ready query are to be input ready at runtime and which are not. With structural components that are not input ready, you can also determine whether these components are viewed as reference data or are just protected against manual entry.
    For the structural components, you also have the following options:
    Input readiness of structural components of a query
    Option
    Description
    Not input ready (reference data)
    If they are being used as reference data, the structural components are not protected by data locks to ensure exclusive access for one user because this data serves as a reference for many users.
    This is the default setting.
    Not input ready (no reference data)
    If you want to protect structural components against manual entries but allow changes by planning functions, you can use locks to protect this data for one particular user. In this way you can ensure that the planning function works with the displayed data only and not with data that has been changed by other users.
    Input ready
    You can also determine whether an input ready query is to be started in change mode or in display mode. You find this property in the Query Properties on the Planning tab page. If there is at least one input-ready query component, the query (as long as it has not been determined otherwise) is started in display mode.
    In BI applications that use input ready queries as data providers, you can enter data manually at runtime. For more information, see Performing Manual Planning and Creation of Planning Applications.
    Example
    You want to create an input-ready query for manual planning for a plan-actual comparison of revenues for a set of products. You want the plan data in a real-time-enabled InfoCube and the actual data in a standard InfoCube.
           1.      Create a MultiProvider that includes the InfoCubes for the plan and actual data.
           2.      Define an aggregation level on the MultiProvider which contains the characteristic Product and the key figure Revenue.
           3.      On the aggregation level, create two restricted key figures Plan Revenue and Actual Revenue. For restriction, choose the characteristic 0INFOPROV and restrict it to the plan or actual InfoCube.
           4.      Add the restricted key figures to the key figure structure. Insert Product into the rows. For Plan Revenue, choose Input Ready for the input-readiness option. For Actual Revenue, choose the option Not Input Ready (Reference Data).
           5.      In the query properties, set the indicator that determines whether the queries are started in display or change mode as required.
    Example of an input-ready query
    Product
    Plan Revenue
    Actual Revenue
    P01
    20
    P02
    30
    If you want to keep actual and plan data in a real-time enabled InfoCube, you do not require a MultiProvider for the task described above. Create an aggregation level on the InfoCube and define the input-ready query for the aggregation level. In the example above, a version characteristic acts as the InfoProvider. Create restricted key figures with the plan or actual version and proceed as in the previous example.

  • SSRS Line graphs, change the axis maximum and minimum by month, and change data series from calendar year to financial year

    I am using SSRS and I cannot access SQL server to answer my problem, so the solution needs to be done via SSRS only.
    I am currently trying to graph some data. The problem is, the months on the X axis are aligned by calendar year. I need the first month to commence with July, with the last month on the axis to be June. This also means that the year series need to be changed
    from calendar year to Australian financial year.
    Screenshots are provided in the comments.

    Hi Northern,
    Per my understanding that you want to show the month in the x axis as the order of the financial year(7,8,9,10...4,5,6) and also display the year in the series group as the financial year, right?
    I have tested on my local environment and we can modify the query in the sql to get the financial year value based on the fields of Calendar year, details information below for your reference:
    1. Modify the query as below:
    SELECT
    Calendar_Date,CASE WHEN MONTH(Calendar_Date)>=7 THEN
    YEAR(Calendar_Date)+1
    ELSE YEAR(Calendar_Date) END AS Financial_Year,
    MONTH(Calendar_Date)as Financial_Month,
    Billing_Amount
    FROM TableName
    order BY
    Calendar_Date
    2. Add the "Billing_Aomount" in the Value area, "Financial_Month" in the Category group area and "Financial_Year" in the Series group area.
    3. Right click the  "Financial_Month" under the Category group to select the "Category group properties",click the sorting and add below expression in the Sort by to specify the order for the month in the x-axis:
    =switch(Fields!Financial_Month.Value="7",1,Fields!Financial_Month.Value="8",2,
    Fields!Financial_Month.Value="9",3,Fields!Financial_Month.Value="10",4,
    Fields!Financial_Month.Value="11",5,Fields!Financial_Month.Value="12",6,
    Fields!Financial_Month.Value="1",7,Fields!Financial_Month.Value="2",8,
    Fields!Financial_Month.Value="3",9,Fields!Financial_Month.Value="4",10,
    Fields!Financial_Month.Value="5",11,Fields!Financial_Month.Value="6",12)
    4. Preview you will get the sample chart display as below according to my sample data:
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • When I pre ordered my iphone 6 i was told I was going to get an additional 1 gig of data per month for a year.  It even shows it on the receipt i received with the phone.  When will I see that reflected on my account.  I have had my new phone for a week a

    When I pre ordered my iphone 6 i was told I was going to get an additional 1 gig of data per month for a year.  It even shows it on the receipt i received with the phone.  When will I see that reflected on my account.  I have had my new phone for a week and used tons more data than usual and am hoping that will save me this month.

    concretedonkey, I'm glad you were able to take advantage of this offer when you ordered your new iPhone 6. I can certainly review your account to ensure this was added for you. Please reply to the direct message I have sent you.
    AndreaS_VZW
    Follow us on Twitter @VZWSupport

  • SQL Query to find cumulative values for a Financial Year

    Dear users,
    My requirement is to create a SQL query for a table/view where I have day-wise data. I want to find out cumulative values for financial year by giving any date. It should add the values from start of financial year till that date in the financial year.
    I think creating a view of such type will post heavy burden on resources since accuimulation will be done for each day upto that day.
    Thanks

    Dear users,
    My requirement is to create a SQL query for a
    table/view where I have day-wise data. I want to
    find out cumulative values for financial year by
    giving any date. It should add the values from start
    of financial year till that date in the financial
    year.
    I think creating a view of such type will post heavy
    burden on resources since accuimulation will be done
    for each day upto that day.
    ThanksKumar's solution will serve yours purpose but m not agreed
    I think creating a view of such type will post heavy
    burden on resources since accuimulation will be done
    for each day upto that day. Khurram

  • Chart: amount (count) of records per month (and year). How?

    I need to create a chart eventually. Can't get what formula to use. The data is:
    1 | 15 Jan
    2 | 20 Jan
    25 | 14 Mar
    26 | 16 Mar
    28 | 20 Mar
    The chart should show amount(count) of records per month(and year). So in this example:
    Jan: 2
    Mar: 3
    Hm... totally lost. Any tips?

    To do this it would be best to add a column in which you isolate the month from the rest of the date information. Here's an example:
    You may hide the Month-Isolated column if it impacts your presentation.
    The Month-Isolated formula is: =IF(ISBLANK(B), "", (MONTH(B)))
    The formula for the count in the Summary table is: =COUNTIF(Data Table :: $C, COLUMN())
    Hope this gets you on your way.
    Regards,
    Jerry

  • Changing Financial Years by 1 Month

    Hi,
    A client has asked for advice regarding changing the financial year from March/February to April/March and the implications of, say, creating a new year consisting of a single month or simply leaving the current year "open". I've got as much assistance as I can from Oracle Support (via
    metalink.oracle.com) regarding how to actually do the changes - but they appear to suggest a complex solution involving creating a new set of books which the Institutes were not keen on, and were not forthcoming regarding the possible implications of making any changes.
    Core Financials are currently implemented, together with CE and Assets.
    Has any one done this, and could you share your expertise? I am particularly keen on the implications of doing it.
    Regards
    Uwem

    Hi,
    We are also facing the same issue. If you have some knowledge can you pls share it?
    Regards....Saugata
    [email protected]

  • How to pay for iCloud not per month but per year

    Is there a way I can pay iCloud storage once a year instead of per month. If so, how?
    Many thanks for your attention
    Mark

    Unless you're currently on a yearly plan, no. Apple no longer offers them to new subscribers.
    (126392)

  • How many hosted web response forms allowed per month or per year with monthly and yearly plans?

    I am trying to pick out the right membership plan for us and the monthly plan and yearly plan allow a ceretain number of forms, however the membership materials do not clearly state how many hosted web response forms are allowed in each plan whether it is monthly or yearly? I need the answer before we decide

    With the Basic plan you can have up to 5 online forms at any given time. There is no quota per month or per year. If you need to create a another form after your reached the quota then just delete one of the other form first. There is no quota for the Plus plan.
    Same is true for the maximum responses. You can always export and delete responses to receive more if you have reached the maximum number of responses the plan allows.
    Not that the Plus plan comes cheaper per month than the Basic plan but this is because you get a discount for commiting for the whole year.
    Gen

  • I have just purchased the cloud illustrator yearly contract at £17.58 per month...

    I have just purchased the cloud illustrator yearly contract at £17.58 per month... buy my 30 day trial of illustrator expired 5 days ago. I paid the monthly start payment buy the trial download program has not reset to the new yearly membership... please help and let me know what to do next to start my new illustrator yearly contract?

    Sign out, Sign in | Creative Cloud Desktop app
    Cloud app > gear icon > Preferences > General > Account

  • Data per month and previous year

    Hi all,
    I have a requirement that is to show 2 columns, one for the actual data for a month and the other one to show the data for the same month of previous year.
    For example:
    Month   Profit_Center Actual Previous_Year
    08.2010 10000           10.25  12.50
    I know that I can create the second column filtering by same month-12, but when i show the Month,the result is:
    Month    Profit_Center Actual Previous_Year
    08.2009 10000            10.25   0
    08.2010 10000             0         12.50
    We want to show just one row with the actual month and both columns. How can I do it, without change the backend. I would like to do it in front end (in query designer).
    Regards, Federico

    Hi Sukhi,
    Thanks for your answer. I have tried with offset also, but the data is filled in 2 rows cause of i am doing a drill down by Calmonth.
    Year/Month | Actual Data | Data of previous year
    (08.2010) | 150 | 0
    (08.2009) | 0 | 80
    And I want to show just one row, like this:
    Year/Month | Actual Data | Data of previous year
    (08.2010) | 150 | 80
    The idea of this is to compare the data between the month that i put in the preselection and the data of same month but the previous year.
    Thanks in advance for your help, Federico

  • Date Range according to Financial year-end

    Hi
    I'm building this Discoverer report and one of my parameters is a LoV date field, which gives me a date range from Jan to Dec each year. Now my problem is, I want my date range to be as per our Financial Year End, which is from 01-Oct-03 to 30-Sep-04.
    You'd find "<All>" amongst the range. This "All" currently indicates date between Jan 2003 - Dec 2003. Now I need to write a query/trigger that will put my date range to be between 01-Oct-02 to 30-Sep-03 recurring automatically after each Financial year-end.
    Thanks

    Hi,
    Although I haven't tried it, you should be able to use a combination of hierarchies and alternative sorts to accomplish this.
    How have you created your list of values? If your LOV is a list of months and years e.g. JAN-2003, FEB-2003 etc, you can create a alternative sort which will make OCTOBER the first month of the year - i.e. with value 1, and NOVEMBER = 2 and so on...
    Sorry this is a bit vague. I will try and test tomorrow and see if it works, but this should be enough to give you an idea of how to progress.

Maybe you are looking for