Group the financial year

Can any body help me to write a query to get the sum of the amount for each financial year.

Thanx for the reply here i am sending the sample data and output
eg: Desc of the table
CDate Date
Amount number(10,2)
The following is the sample data for the above table
CDATE           Amount
04-01-2005     3000
05-01-2005      3000
06-01-2005      3000
07-01-2005     3000
08-01-2005     3000
09-01-2005      3000
10-01-2005      3000
11-01-2005     3000
12-01-2005     3000
01-01-2006      3000
02-01-2006      3000
03-01-2006     3000
04-01-2006     4000
05-01-2006     4000
06-01-2006     4000
07-01-2006     4000
08-01-2006     4000
09-01-2006      4000
10-01-2006      4000
11-01-2006     4000
12-01-2006     4000
01-01-2007      4000
02-01-2007      4000
03-01-2007     4000
Output should be like this:
Financial Year          Sum Amount
April 2005 to March 2006     36000
April 2006 to March 2007     48000

Similar Messages

  • RetrorespectiveActivation of Multiple Form 16 in mid- of the financial year

    Hi All,
    We have mainatined TAN as per the company Code in feature 40ECC. Now we want to have multiple Form 16 if there is change in company Code of an employee for the financial year 2009.
    We have not activated Multiple Form 16 Switch so far. Now in the last month of financial Year 2009 that in March'2010 (period 12/2009) we want to activate Multiple Form 16 switch from 01.04.2009. After activation Multiple form 16 Switch, we are planning to trigger retro for all employees from 01.04.2009.
    But we are not very much sure what will be the impact of activating Multiple Form 16 switch now in the last period of the financial year.
    Required your valuable inputs on this.
    Thanks,
    Ravinder

    Hi,
    Check whether multiple Form 16 switch is active or not.
    In case this is active, then the Form 16 will be generated as under:
    Company A - showing earnings from 01.04.08 to 31.12.08 only
    Company B - showing earnings from 01.01.09 to 31.03.09 as current earnings and from 01.04.08 to 31.12.08 as income from previous employment.
    In case multiple Form 16 is not active, then the Form 16 that you are getting is correct. However, in this case you need not print the Form 16 of company A. Only the Form 16 from the company code where the employee belongs to as on 31.03.2009 (i.e. last day of the FY) will be printed. And in this case the Form 16 will include complete earnings from 01.04.2008 to 31.03.2009 as current earnings.
    Hope this clarifies your query.
    VK

  • Depreciation for the Financial Year 2007-08

    Dear All,
    How to run  the Depreciation for the Financial Year 2007-08, without disturbing the Depreciation of Financial Year 2006-07.
    kindlly send me details desprications
    Regards
    Pritpal

    Posting Depreciation is a periodic activity. Depreciation is posted every priod by AFAB by aseet accountants. However it is not necessory that you need to run AFAB when you are in the current period. You can run it any time; subjected your financial accounting is open for that period. In your case you need to run AFAB for every priod from 2006 to 2007. After each year is completed, you may need to run ASKBN for APC periodic posting and cose that FY in Asset account by AJAB open new FY by AJRW (Eg. 2008).

  • PY-India: What are the implications of changing the financial year?

    Hi All,
    I am working on Payroll India.
    the client i am working for has a financial yr from March to Feb.
    What would be the implications in terms of changes required if I change the usually followed Apr - Mar financial year in SAP to Mar - Feb in Payroll? And what implication will this have on all the legal reports provided by SAP like form 16 etc.
    Specifically I wish to ask should I ask the client to change his financial yr to Apr - Mar or should I change financial year in SAP to Mar - Feb?
    Amit Upadhyay

    it would be better to go for mar to feb as per our inidan fin year
    there will be implications in tax related issues pls check those things before changes the fin year
    Edited by: Sikindar on Jan 25, 2008 4:22 PM

  • Quarter of the financial year

    hello friends
    is their any function module to calculate the quarter of the financial year

    hello,
    use fm HR_99S_GET_QUARTER
    greetings
    Andreas

  • 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

  • Is the CURRENT_YEAR variable based on our systems Financial Year?

    Hi,
    I have a report that uses the CURRENT_YEAR variable to filter data. The value of that variable is currently 2010, but our financial year starts on 1 October, so we are still in the 2009 finacial year?
    My question is: Is the CURRENT_YEAR variable based on the Financial Year start date configured in our CRM instance? or is it a "global" variable which is the same for everyone regardless of their financial year start date.
    Thanks.

    In my customer, CURRENT_YEAR and CURRENT_MONTH returns the fiscal year and month...
    Antonio

  • Selecting Invoice (OINV) records from the current financial year

    Hi Everyone,
    I would like to select Invoices (OINV) from the current Financial Year. I am located in Australia and our financial year is measured from the 1st of July to the 30th of June.
    Here is a pseudo - code sample -
    SELECT T1.DocEntry, T1.DocNum, T1.DocDate
    FROM AU.dbo.OINV T1
    WHERE "CURRENT FINANCIAL YEAR"
    Notice above that I would like to replace "CURRENT FINANCIAL YEAR" with an SQL code snippet that selects all dates from the beginning of the financial year (1/07/xx) to the current date.
    Any help here will be greatly appreciated.
    Kind Regards,
    David

    Hi Everyone,
    Here is a code snippet that permits returning only values from the current financial year -
    DECLARE @day nvarchar(2) = DAY(GETDATE())
    DECLARE @currentMonthAndDay INT = CAST(CAST(MONTH(GETDATE()) as nvarchar(2)) + (REPLICATE('0', 2 - LEN(@day)) + @day) as int)
    DECLARE @StartOfFinancialYear DATETIME
    SET @StartOfFinancialYear = CAST(YEAR(GETDATE()) - CASE WHEN @currentMonthAndDay<701 then 1 else 0 end as nvarchar(max)) + '0701'
    SELECT *
    FROM AU.dbo.OINV T0
    WHERE T0.DocDate >= @StartOfFinancialYear
    AND T0.DocDate < DATEADD(yy, 1, @StartOfFinancialYear)
    Many thanks to Faheem for providing the answer to returning only results from the current financial year, in this thread: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/2edbe630-faca-4f94-a014-04f5a832f81d/returning-results-that-fall-within-the-current-financial-year?forum=transactsql
    Kind Regards,
    David

  • Require two different Financial Reports for the Same Financial Year - 2011

    Hi Experts,
    The financial Year of the client is from jan-Dec.The client needs different financial reports (P&L , B/S), one from Jan-Aug and another from Sept-Dec for the FY 2011 since the management of the company has changed from Sept-2011 onwards.  So when tried to generate the financial reports from Sept-Dec , system shows the carry forward opening balances of income and expenses from Aug 2011 which they do not want.  Since we have not done any closing activities at the end of aug-2011 this figure is bound to come.  So in this scenario is there any possibilities to get a fresh financial reports from Sept to Dec 2011 where there should not be any opening balances of expenses and incomes for Sept 2011.
    Since transferring of balances from income and expenses to retained earnings accounts has done yearly basis , how can we do this for the periods also or any other method to sort out this issue.
    Hope my question is clear. if not pls revert with the queries.
    Thanks in Advance,
    Arabinda

    Hi RP,
    I have checked F.54 . Everything is ok in that report expect the Profit and Loss which are two differnt line item in that report and also calculated fields do not display in this report. But anyway this report meets most of the requirements.
    Thank you very much.
    regards,
    Arabinda

  • Is there a way of adjusting WEEKNUMs to match a financial year?

    Hi
    I am wondering if there is a way to have Numbers 09 adjust the WEEKNUMs so that they match the financial year, starting in the first week of April (UK). Given that I will have to do tax returns which match the financial year, it makes sense to match my accounts/Numbers files with the financial year.
    Thanks
    Nick

    nick_harambee wrote:
    I am wondering if there is a way to have Numbers 09 adjust the WEEKNUMs so that they match the financial year, starting in the first week of April (UK). Given that I will have to do tax returns which match the financial year, it makes sense to match my accounts/Numbers files with the financial year.
    I guess the place to start here is 'Which numbering system do you want to modify for this?'
    1) ISO Week: The International Organization for Standardization (ISO) ISO8601:2000 Standard
    All weeks begin on a Monday. Week one starts on Monday of the first week of the calendar year with a Thursday.
    2) (Not included as week starts on Sunday. Otherwise same as #3)
    3) Excel(and Numbers) WEEKNUM function with an optional second argument of 2.
    Week one begins on January 1st; week two begins on the following Monday.
    4) Simple week numbering.
    Week one begins on January 1st, week two begins on January 8th, and week 53 has only one or two days(for leap years).
    For modified system 1 (ISO), replace "calendar year" with "financial year". For modified WEEKNUM and Simple Week Numbering systems, replace "January" with "April"
    The nice thing about #4 is that it is "simple", and that simplicity extends to the ease of starting with any specific date. No correction factor is needed for the transition from one calendar year to the next.
    The shifting start dates of Week 1 of #1 and of Week 2 of #3 add a complication, but if these can be determined, the rest of the year can easily be numbered using the same formula as #4.
    Here are the three choices, with formulas below.
    SWN
    Start Date: April 1, constructed from A1.
    Table 1::B2: =INT(DATEDIF(DATE($A$1,4,1),A, "D")/7)+1
    (Results modeled on) WEEKNUM
    Start Date: Monday preceeding April 2
    Table 2::B2: =(DATE(Table 1 :: $A$1,4,1)-WEEKDAY(DATE(Table 1 :: $A$1,4,1),3))
    Table 1::C2: =INT(DATEDIF(Table 2 :: $B$2,A, "D")/7)+1
    (Modeled on) ISO
    Start Date: Monday preceeding first Thursday in April
    Table 2::B2: =IF(WEEKDAY(DATE(Table 1 :: $A$1,4,1),3)<4,(DATE(Table 1 :: $A$1,4,1)-WEEKDAY(DATE(Table 1 :: $A$1,4,1),3)),(DATE(Table 1 :: $A$1,4,1)+7-WEEKDAY(DATE(Table 1 :: $A$1,4,1),3)))
    Table 1::D2: =IFERROR(INT(DATEDIF(Table 2 :: $C$2,A, "D")/7)+1,53)
    Note: IFERROR traps the error that occurs when April 1 falls on a Friday, Saturday or Sunday, and assigns the days before the first Monday to Week 53. You may prefer to consider (and label) this Week 0. To do so, replace the 53 at the end of the formula with 0 (zero).
    None of the formulas will give 'correct' results beyond one year after the starting date.
    Regards,
    Barry
    EDIT: Noting your newest post, I think you may want to consider the Simple Week Numbering system, using a starting date of April 6.
    Barry
    Message was edited by: Barry

  • Change the default year Begining from 'January" to "June"

    Hi all,
    One of our requirements is:
    The Financial year starts from June 1st and ends in May.
    So If the user selects 02-Jun-2010, Week_of_Year Function should show him as
    *'1'*
    Can you please tell me where these default values for Year are stored?
    Can they be changed as per the requirement like this?
    Thanks,
    Suma

    We have a period dates table which has the date as the primary key ( 01/03/2010 ), then various other columns representing other aspects of that date, for example:
    01 - Day of month
    03 & MARCH - Actual Month Number & Name
    2010 - Actual Year
    Q1 - Actual Quarter
    2009 - Fiscal year
    10 - Fiscal period
    Q4 - Fiscal Quarter
    Day of week number
    You could also include things like :
    Week Number
    Julian day of the year
    To allow you to sort/sequence the data June to May if you ordered by fiscal year & fiscal day of year.

  • How to create opening balance (financial year - inclusive) as calculated column

    Hi all
    i'm trying to add a opening balance (financial year) column to a table.. Or i guess it's more of a summed balance for a specific date, and repeated for a defined date range.
    The financial year is 1-july to 30-june. the desired output column below is what i'm trying to get. It's the sum of balance as at the 1st of july for that year
    Date |balance|desired output
    1-Jul-2014| 10| 11
    1-Jul-2014| 1| 11
    1-Aug-2014| 400| 11
    .... 11
    1-Jun-2014| 50| 11
    1-Jul-2015| 7| 7
    etc
    I tried using startofyear() with lookupvalue() but that errors out if there are two or more rows for the start of the period (like 1-jul-2014).. Everything else i've tried either gives me the wrong number or #errors
    Thanks
    Jakub @ Adelaide, Australia Blog

    Jakub, is this still an issue?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • 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

  • Financial Year Wrongly defined in SAP-B1

    Hello Experts,
                              In SAP-B1, We have Wrongly defined Financial year  i.e(01 January 2011to 31 Dec2011) Instead of (01 April 2011 to 31 March2012). Now, System not allow to chnage the financial year, because the end date  automatically gets disabled.
    I have tried two solutions for this as bellow,
    1)Tried to end this 2011 year by extending the year by (01 Jan-2012 to 31 March 2012), but it fails because end date automatically become 31 Dec2012 and get disabled When i enter start date 01 Jan 2012.
    2)Then, I tried to Close this year by defining new financial year as (01 April 2011 to 31 March 2012), but it gives error as, 'Financial year Overlaped'.
                       Please, hepl me for this problem and provide solution. it is very urgent.

    Hi suhas,
    Welcome To SAP Community Network Forum
    You have to create new period From 01-Jan-2012 To 31-Mar-2012 with Sub period define with month and No of period define 3.
    Thanks,
    Srujal Patel

  • How to define financial year to start in November and end  in October

    Hi,
    I am trying to build a report with following columns
    Resort, Month, YTD Rooms, LY YTD Rooms.
    Filter on Year==2010
    The above measures
    YTD=Year to date rooms
    LY YTD = Last Year Year To Date Rooms
    The results would be
    AF, Jan-10, 300, 350
    AF, Feb-10, 200, 280
    Now for this client the financial year, starts in November, therefore their year should be Nov-09 till Oct-10.
    How can set the Year to be from november to October with a timestamp function?
    Thanks and Regards
    Giuliano

    Here's an idea you might want to try in the Presentation Layer base solely on what you shared so far:
    Assuming that the report will always be run in the "current year" as you have in your example, than this should work:
    1) Put a dummy column in your report with this CASE statement:
    CASE WHEN Table.Month ((LIKE 'JAN%' OR Table.Month LIKE 'FEB%' OR Table.Month LIKE 'MAR%' OR Table.Month LIKE 'APR%' OR Table.Month LIKE 'MAY%' OR Table.Month LIKE 'JUN%' OR Table.Month LIKE 'JUL%' OR Table.Month LIKE 'AUG%' OR Table.Month LIKE 'SEP%' OR Table.Month LIKE 'OCT%') AND (Table.Year = CURRENT_YEAR)) OR ((Table.Month LIKE 'NOV%' OR Table.Month LIKE 'Dec%') AND (Table.Year = CURRENT_YEAR - 1)) THEN 1 ELSE 0 END
    Put a filter on this column and set it to 1.
    2) Add another filter on CURRENT_YEAR and CURRENT_YEAR -1.
    NOTE: In my example, CURRENT_YEAR is a repository variable you should have (name could be different, but it should be in number format).
    The way this works is that the second filter filters your report overall on all data for "this year" and "last year." The first filter works with the data within this potential two-year period. Within this time frame, you want the data, for the months of Jan - Oct, where the year = current year and (which in logic, uses the logical operand "OR"), you want the data for the months of Nov - Dec when the year = current year minus 1. This filter will filter out Jan - Oct of "last year" and Nov - Dec of "this year," leaving you with the time period you are looking for.
    Play with the syntax, cause I didn't build this one, but it should work.

Maybe you are looking for

  • External screen resolution "defaults" to low-rez (T510, docked; Samsung SyncMaster 730b monitor)

    I have a T510 Thinkpad with docking station (Windows XP) with Samsung SyncMaster 730b monitor. Every time I start up, it defaults to low resolution and I need to manually increase the screen resolution. Is there a way to make the default setting for

  • Javac *\*.java doesn't work for me?

    D:\Apps\Eclipse\eclipse\Workspace\Hola>dir *.java Volume in drive D is Things Volume Serial Number is 2C7C-0D4D Directory of D:\Apps\Eclipse\eclipse\Workspace\Hola 06/20/2007  02:54 PM               146 Hola.java                1 File(s)            1

  • I have a question about SQLLDR

    Hi all, Alongwith the data in the INFILE, I want to load the name of the INFILE too in a column of the table. How can I do that... The file name is going to be different everyday... I want to have the filename in a column of the target table to make

  • Namespaces question

    I have been converting some code I had over to the new ExtensibleEnvironment stuff and this has been going quite well. Everything I have done so far has been to configure stand-alone things like message listerners etc. What I cannot figure out is how

  • Time stamp changes when exporting...

    Hi, I sometimes want to export an Aperture album to iPhoto so I can then send it to iDVD as a slide-show. I sometimes use Photoshopped jpeg diagrams (not photos) mixed in with my raw originals in the Aperture album as well. I've altered their time st