Fiscal year

Hello

I need a calculation that provides the date of beginning and end of the current fiscal year which runs from April 1 to March 31. I used the following calculation, but it breaks at the beginning of January.

The beginning of the fiscal year should be April 1, 2014 and end of the fiscal year should be March 31, 2015. The values must be dynamic, if a new year begins

When case date_a > (WITH t AS

(SELECT sysdate AS double dt

)

SELECT add_months (TRUNC (dt, 'YYYY'), 3) AS start_dt

T)

AND date_a < (WITH t AS

(SELECT sysdate AS double dt

)

SELECT add_months (TRUNC (dt, "YYYY"), 15)-1 AS end_dt

T)

then 'Y' ELSE ' don't END FY_IND

  1  with dt as (select sysdate d from dual)
  2  select to_char(trunc(add_months(d, -3), 'YYYY'), 'YYYY') FY,
  3  add_months(trunc(add_months(d, -3), 'YYYY'), 3) FY_start,
  4  add_months(trunc(add_months(d, -3), 'YYYY'), 15) - 1 FY_end
  5* from dt
SQL> /                                                               

FY  FY_START  FY_END
---- --------- ---------
2014 01-APR-14 31-MAR-15                                             

SQL>

Tags: Database

Similar Questions

  • How to get the fiscal year previous last day?

    I created a line of dashboard with a column of the calendar date. Duty of the user is to display the previous year sales last day i.e. 31 March of the year for the date played.

    How is it achievable? Please answer anyone who implemented logic.

    Fiscal year starts from 01 Apr.

    Dear Philippe,

    Sometimes we are not able to provide a complete solution for you, but we can guide you because we are a busy lot in our own tasks... here, I worked a formula for you...

    -case when Date ' @{PV} {2014-04-04}<=TIMESTAMPADD(SQL_TSI_MONTH, 3,timestampadd(="" sql_tsi_day="" ,="" extract(="" day_of_year="" from="" pv)="" *="" -(1)="" ,="" pv))="">

    TIMESTAMPADD (SQL_TSI_MONTH-9, TIMESTAMPADD (SQL_TSI_DAY, EXTRACT (DAY_OF_YEAR pv) *-(1), pv)) else

    TIMESTAMPADD (SQL_TSI_MONTH, 3, TIMESTAMPADD (SQL_TSI_DAY, EXTRACT (DAY_OF_YEAR pv) *-(1), pv)) end

    I could not test this by obiee. But have a try and let us know if no door.

    Thank you

    AJ

  • Fiscal year / Trim, for the occasion created Date?

    Is there a way to query users for the year and the quarter that will then filter the creation Date in the historic opportunity or sales milestone?

    Thank you!

    You can convert a value of year or quarter according to a formula of column Date created:

    YEAR (possibility." Created Date')
    Quarter_of_year (possibility." Created Date')

    You can then create guests from filter on these columns. Note that this is calendar year, not fiscal year. If you calendar and fiscal quarters differ, you may need to perform a few additional calculations to convert - or just make sure your guests are labeled accurately as "calendar year".

    If you use real-time reporting, there is a dimension "Opening Date" which includes fields of exercise pre-calculated.

    -Louis

  • For the fiscal year non-stop account Tracker

    In the last three days, the exercise tracker keeps track of every move as exercise, then the intermediate ring is enveloping like 4 times.

    Here's the story so far,

    Friday 30/67

    Saturday 574/30

    Sunday 317/30 (it is currently 14:10)

    Looking at the history, this seems start Friday night just after I loaded the watch.  Since then, the historic bar of the year counts on each tick on the time axis as exercise minutes.

    I tried to restart the watch and the iPhone and found the solution.  Also, I've updated the watch Saturday night at 2.1 (S 13, 661).

    Any ideas of the community?  Thank you.

    I * think * it determines exercise based on heart rate (unless you use the application of the training session to initiate a manual exercise).  You might get messages about excessive heart rate and make sure that the watch is comfortably close to the wrist, or loose, or tight.

    Just a couple of thoughts, hope they help or suggest something to another poster.

  • Beginning of the fiscal year

    Hi all

    Sorry to post a question here Essbase. I posted the same on Essbase forum, but I would like to post here thinking that this forum is more active than the other.

    While creating an Essbase application, how to set the beginning of the year and the end? My default application seems to April to March. But I need from July to June. Any idea?

    I have a dimension of years who holds the years. And period dimension has half of the year, quarter, and month, from July. It is an application of Essbase BSO.

    Thank you

    If it's an application pure essbase (not used in planning) you can adjust/recreate the members in the dimension period in order what ever is required.

  • Current fiscal year

    Hello

    There is an oracle function that returns the accounting year (2012-2013) format?

    Thank you
    with xx as(
        select sysdate dt from dual
    )
    select
        CASE
        when to_char(dt,'mm')>= '04' then
            to_number(to_char(dt,'yyyy'))||'/'||to_char(to_number(to_char(dt,'yyyy'))+1)
        else
            to_char(to_number(to_char(dt,'yyyy'))-1)||'/'||to_number(to_char(dt,'yyyy'))
        END CASE
    from xx;
    

    Output:

    2012/2013
    
  • Fiscal year ending the process in GL

    Hi gurus,

    Can someone help me in explaining Year - End - process Oracle General Ledger?

    Thanks and greetings
    Bharath

    You can find all the info on MOS score:

    General accounting year-end closure process [66532.1 ID] Oracle
    What is the behavior of the General Ledger year end closing process general [149999.1 ID]
    Close period advising: E-Business Suite (EBS) [ID 335,1]

    Kind regards

  • How to get the fiscal years

    Hi Experts,

    My query below is beginning of quarter end and previous quarter start and end dates according to the calendar year... Now, I have to get the values accordingly exercise...

    Thanks in advance for the support...
    SELECT   MIN (t)"CURNT_QTR_ST_DT", MAX (LAST_DAY (t))"CURNT_QTR_END_DT", ADD_MONTHS(MIN (t),-3)"PREV_QTR_ST_DT", ADD_MONTHS(MAX (LAST_DAY (t)),-3) "PREV_QTR_END_DT" INTO V_CURRQTD_STRT ,V_CURRQTD_END,V_PRVQTD_STRT, V_PRVQTD_END
    FROM (SELECT ADD_MONTHS (TRUNC(TO_DATE(TO_DATE(V_RPRT_DATE)), 'YYYY'), LEVEL - 1)  t,
          TO_CHAR (ADD_MONTHS (TRUNC(TO_DATE(TO_DATE(V_RPRT_DATE)), 'YYYY'), LEVEL - 1), 'Q')QTD
          FROM DUAL
           CONNECT BY LEVEL <= 12) A
           WHERE A.QTD  = V_QUARTER_NUMBER;

    Hello

    You don't need the double table much in PL/SQL.

    Another thing that makes PL/SQL, SQL different programming, it's that, in SQL, you can assign an alias for a column, but you can only refer to this alias in a Super application (or in an ORDER BY clause). In PL/SQL, you can reference a variable once it is set.

    In PL/SQL, once you have a DATE deadline in t, you can set the 4 variables like this:

    v_currqtd_strt := TRUNC (t, 'Q');
    v_currqtd_end  := ADD_MONTHS (v_currqtd_start, 3) - 1;
    v_prvqtd_strt  := ADD_MONTHS (v_currqtd_start, -3);
    v_prvqtd_end   := v_currqtd_start - 1;
    

    Use SELECT... IN PL/SQL when the data in a table, and you must copy these data in variables. (It seemed that you forgot the INTO clause in your last post).
    However, in this case, no data in a table you need to copy, it is not necessary for a SELECT statement.

  • audit of the fiscal year

    When I select exercise in a field in another area, that I need to enter date of date.so should take only during the exercise.


    column of the year: 2012
    date column:
    year financial-01042012 to 31032013
    If I get 310312 he must raise the error it should be in the exercise

    Try this

    if to_date(:date) between to_date('04/01/'||:year) and last_day(add_months(to_date('04/01/'||:year),11))  then
    ..
    else
    ..
    end if;
    

    My date format is dd/mm/yyyy change according to your

  • How hyperion planning handles April to March fiscal year

    Hello

    Help, please...

    My month of application startup is April and end of the month March. I have a scenarios in 3:
    1A approved Budget (FY09/FY10) (since April to dec Jan Mar in FY10 and FY09)
    2. Project Budget (FY10/FY11)
    3. project approved (FY09/FY11) Vs (to find the variance)

    I entered data in the approved budget and the draft budget, I can't see the difference between the 2. When I see the change to the year FY09 it shows only the data of the approved budget. When I see the variance in FY10 it shows only the data in the proposed Budget. Is it because that the years are different... So how hyperion planning handles April to March years?

    Also when I entered data in the form of draft budget should I enter April to dec data in Jan Mar in FY10 and FY09... please explaing this concept...


    Thank you

    I think you mix data planning planning reports forms.

    To answer your question, the system can manage exercises (something else that from January to December)

    We currently have Oct to Sept. 1 and in our facility, we have

    Estimated current (October to September)
    Final (October to September)

    If I want to compare the difference between the current estimate and Final budget versions I create a report on the financial report and holding out both versions.

    In your case, you have created a third scenario current estimate / Final. It's just another store data or data containers. Unless you fill out the current/Final estimate with data it will not show.

    If you don't want to make a report, you can create a Calc Script for both versions (approved and proposed) and then store the difference in approved/proposed

    You will then see the values.

    I think you're hooked on exercise and is not the problem.

    JTS

  • Order in one quarter (fiscal year) field

    Hello, I'm under 11.2.x on OEL 5 and I wonder if anyone has a solution to this little problem.

    TESTDATA:
    CREATE TABLE  "TESTDATA" 
       (     "ID" NUMBER, 
         "QUARTER" VARCHAR2(30), 
         "VALUE" NUMBER, 
         "REGION_ID" NUMBER, 
       )
    /
    CREATE TABLE REGION_LOOKUP 
       (     REGION_ID NUMBER NOT NULL ENABLE, 
         REGION VARCHAR2(5) NOT NULL ENABLE, 
         PRIMARY KEY ("REGION_ID") ENABLE
       )
    / 
    INSERT INTO REGION_LOOKUP (REGION_ID, REGION VALUES(1,'EMEA');
    INSERT INTO REGION_LOOKUP (REGION_ID, REGION VALUES(2,'LAD');
    INSERT INTO REGION_LOOKUP (REGION_ID, REGION VALUES(3,'APAC');
    INSERT INTO REGION_LOOKUP (REGION_ID, REGION VALUES(4,'NAS');
    INSERT INTO REGION_LOOKUP (REGION_ID, REGION VALUES(5,'JAPAN');
    /
    INSERT INTO TESTDATA VALUES(1,'Q1FY09',53.1,4);
    INSERT INTO TESTDATA VALUES(2,'Q2FY09',46.9,4);
    INSERT INTO TESTDATA VALUES(3,'Q3FY09',41.2,4);
    INSERT INTO TESTDATA VALUES(4,'Q4FY09',49.7,4);
    INSERT INTO TESTDATA VALUES(5,'Q1FY10',45.3,4);
    INSERT INTO TESTDATA VALUES(6,'Q2FY10',42.1,4);
    INSERT INTO TESTDATA VALUES(7,'Q3FY10',13.2,4);
    INSERT INTO TESTDATA VALUES(8,'Q4FY10',30.9,4);
    INSERT INTO TESTDATA VALUES(9,'Q1FY09',6.2,1);
    INSERT INTO TESTDATA VALUES(10,'Q2FY09',3.5,1);
    What I want to do is query the table in testdata, sum the value filed and stopped by the quarter field. The problem is that the quarter field is stored in a varchar2 and I can't seem to find a to_date model that works for me. For example:
    select quarter, sum(value) from testdata group by (quarter) order by (quarter)
    give this following is not ordered in the right way, calendar quarter.
    QUARTER     SUM(VALUE)
    Q1FY09     63.9
    Q1FY10     51.1
    Q2FY09     54.8
    Q2FY10     50.9
    Q3FY09     51.5
    Q3FY10     17.7
    Q4FY09     61
    Q4FY10     36.9
    See you soon,.
    Andy

    Published by: a Tael on August 11, 2010 14:46

    Try something like
    ORDER OF SUBSTR (quarter, 5, 2), SUBSTR (quarter, 2, 1)

  • Use the Quick Date year section in the column header

    Version 11.1.1.7

    I have a dashboard command prompt which invites for a date.

    My analysis is filtered on this prompt.

    My data looks like this:

    Accounting_Date FY1_Data FY2_Data FY3_Data

    31 AUGUST 2014 200 300 400

    AUGUST 31, 2013 275 325 450

    My requirement is to display the exercise as the heading of column (as opposed to FY1_Data, FY2_Data, FY3_Data).

    FY1_Data is the year of the accounting Date - 2.

    FY2_Data is the year of the Date of accounting order - 1

    FY3_Data is the year of the accounting Date

    So, for the first record in my table example, the column headers must be (2012, FY2013, FY2014)

    For the second disc, the column headers must be (fiscal year 2011, 2012, FY2013).

    To do this, I have tried the following to the first column only:

    I put the column header to FY@{Year1}

    Then I put my dashboard accounting cut-off Date prompt to fill a variable presentation (ActPrdDt).

    Then I created another guest of 'Variable' dashboard with a year1 variable name.

    In this prompt, I used SQL results as the default selection:

    Select 'Date_Table '. "' Accounting_Date ' from 'MySubjectArea' where 'Date_Table '. "" Accounting_Date "= @{ActPrdDt}

    The problem is that the full date is displayed in the column header (AFA 08/31/2014).

    I tried to modify the sql statement in my second guest of dashboard for

    Select TO_CHAR ("Date_Table". "Accounting_Date", "YYYY")-2 of... "

    but the column header displays all values in the column, which is usually what it displays when there is an error in the sql statement.

    Is it possible to manipulate the sql statement to get only the year of the accounting Date and subtract 1 or 2 him?


    I changed the sql statement

    Of

    TO_CHAR ("Date_Table". "Accounting_Date", "YYYY")-2 "

    TO

    extract (year of "Date_Table". "Accounting_Date")-2 "

    This solved my problem.

  • Several guests of the year charts

    Hi all

    Please recommend the right way to create graphs multiple selection of guests of the year.

    I have analysis on PivotTable with the years on columns indicating the amount of sales. He is quick for years so that the user can select several years to obtain the return of multiple columns.

    Desired output:

    1. graph graphic pie showing sales for many years.

    2. If the user selects several years several pie charts should apear separately.

    Currently whenever the selection is done over several years, pivot columns indicate separately year but graphics is cumulative and according to the desired result, graphic of each fiscal year must be separated.

    How can I achieve this.


    Any help will be appreciated with respect.


    Kind regards

    Waqas

    HI - don't know exaxctly what is necessary, but you don't have try using multiple views in the composed layout?

    You can remove the year column in the Section box in one of the Pivot. This will give you a different pie charts for different years.

  • Storage of Variable year - 1 presentation

    Hi gurus,

    I have a requirement where I'm passing prompt value the financial year of the dashboard a narrative as mode @{YEAR}. I would also like to add to this narrative point of view @{YEAR} - 1 though when the user selects 2012 in line with dashboard, my narrative view shud go something like this:

    These data are for fiscal year 2012 and its prior year 2011. If the user selects 2011, then "data are for fiscal year 2011 and the year before 2010."

    How do I achieve using PV? Tried @{YEAR} - 1, cast to int - 1, etc.

    Please suggest.

    Thank you
    Dan

    You can refer selected variable value of presentation in narrative mode, but you cannot reach

    @{YEAR} - 1

    Try to use the expression @{YEAR} - 1 as one of your columns in the criteria, then hide and refer in narrative mode.
    That would help subtract you - 1 other wise, you may need to do the same using Javascript in narrative mode.

    Hope this helps, let us know updates

    Thank you
    http://cool-bi.com

    Published by: Srini VIEREN on May 26, 2013 12:12 AM

  • Use of ' date of the beginning of the year.

    Hello
    When creating application, it may has chosen start date of the fiscal year in the same calendar year or the previous calendar year. However, planning is not tracking calendar year. What is the use of this option, if the application sets the FY13 from CY12 Jul or Jul CY13?

    Thank you

    The documentation has this to say

    "Using the classic in the Planning Application Wizard or the application Performance Management architect Wizard, you can set the first year and month and specify if the fiscal year starts from the same calendar year or the previous calendar year. You can then set up calculations based on the calendar year, for example, by using expressions formulas. »

    More information on formulas expressions can be found at http://docs.oracle.com/cd/E17236_01/epm.1112/hp_admin_11122/ch12s07s03s02.html

    See you soon

    John
    http://John-Goodwin.blogspot.com/

Maybe you are looking for

  • Rental movies

    I rented a couple of film to watch on my iPad in the coming weeks, but I can't find them.  Even when I go back to watch the movies I downloaded in iTunes, it shows that I have to pay to rent or buy.  My account has been charged so I won't notice them

  • Where the photos are stored... How to write on a dvd?

    Where the photos are stored... How to write on a dvd?

  • ThinkPad W510 display dies randomly and then machine shuts

    the last two days, that my machine has suffered an accident with similar symptoms. Firstly, the screen turns white. I can see some disk activity. It continues perhaps 20-30 seconds, and then the machine stops. Yesterday, I had to restart the machine

  • Windows Update Advisor problem

    I installed the Windows Update Advisor and now my laptop does not start automatically.  I did a boot safe mode and tried to uninstall Windows Update Advisor and cannot uninstall.  He said to contact Microsoft.  What I can do. Please email me @ * addr

  • Blue screen in safe mode

    After starting in safe mode with "recovery of directory" (or something like that). It's a high "with the network. He stops at a blue screen with only ' ease of access to the corner he'S and "shutdown" in the corner of LR.» These work, but do nothing