Displaying current and prior quarter data in FR

Hi,
I have two grids in report.Grid 1 and Grid 2.
I have to display data for current quarter and current year in Grid1
and Grid 2 should display data for prior quarter and year should change accordingly.
Ex Grid1 : Q4 2008 Then Grid2: Q3 2008, this works by using relative period.
But problem is when Grid1: Q1 2008, Grid2 should be: Q4 2007.
How would this be possible?Can we use any formula or condition?
Any idea would be appreciated.
Thanks

Of course it works, I tested on my environment, independently of what I have as accounts or anything else. If you want Grid2 to show the prior Quarter swap the values like this:
Grid1 Column A: Current Point of View for Period
Current Point of View for Year
Grid2 Column A: Period Current Point of View for Period offset by -1
Current Point of View for Year
You dont need to worry about the Year, for it knows to go back based on the other parameters.
If you select in your POV__________________________Year: 2008________________________Period: Q1
You will get the following results:
Grid2: Q4 2007
Grid1: Q1 2008

Similar Messages

  • Calc with Current and Prior Periods Data

    <p>Hi Everyone -<br><br>I would like to come up with two types of calculations usingamounts from prior periods (dynamically)<br><br>1. "Net Sales" (current period) + "Net Sales"(current period - 3 months) + "Net Sales" (current period- 6 months) + "Net Sales" (current period - 9 months)i.e. If current period = June ... Net Sales Amount in June + NetSales Amount in March + Net Sales Amount in December of the yearbefore + Net Sales Amount in September of the year before.<br><br>2. Sum "Cash" for the past 12 months (current period tocurrent period - 11)<br><br>In both cases, we'll need to handle getting amounts from the prioryear, as well.<br><br>I can feed the "current period" in thru a sub var, yet(assuming that is the correct function, I am not sure how to set up@PRIOR with Current Period - n Periods...<br><br>I appreciate your help. Grazie ...lb<br></p>

    Hi David,
    I'd suggest you use a Query filter (or a report filter) to retrieve only rows that match this criteria on years. Since you need two values, I may have to use the filtering operator 'in list'
    Difference between those two is query filter will only retrieve to values where year = 2008 or 2009 from the datasource (so if you want to change the year values, you will have to refresh document), while report filters are active on the query output (which means that no refresh from the DB is required if you need to change values), which might bring a better experience if you need interactivity in the report. Moreover, if interactivity is important and you are working with WebI XI 3.1 SP2, you can embed these report filters into Input Control, and command the filter from a graphical widget like check boxes, to let user control which years he wants to view/ compare in the table (or chart).
    Hope that helps,
    David.

  • All Inventories Value Report&Inventory Ageing Report& Current And as on Date Stock not matching

    Hello All,
    I am new to inventory. I need some help.
    After opening the periods of purchasing and inventory for the month of April'15. The below reports should match in costing.
    But they are not matching. Kindly help on this as its PROD.
    Inventory Ageing Report
    Current And as on Date Stock Statement With Value Report
    All Inventories Value Report - Average Costing
    Thanks
    RR

    MBEWH is the valuation history, this is only updated with the first movement after a period closure. And the period is a month.
    There is no table in SAP that holds the stock information on daily basis.
    You have to develope this yourself. Easiest method by copying a table like MBEW and MARD  daily to a Z-Table.
    A stock situation  at a certain date can be calculated with MB5B.
    Edited by: Jürgen L. on Aug 5, 2008 4:06 PM

  • Queries for current Qtr and prior quarter

    If I select one date in dashboard prompt in one column I want to display current quarter revenue and prior Qtr revenue.
    Could anyone give me the queries for the current Qtr and prior Qtr?
    So I will going to use presentation variable from the dashboard prompts

    obiee-date-expressions-reference
    Date Calculation OBIEE Expression Explanation :
    First Day of the Previous Year
    TIMESTAMPADD( SQL_TSI_YEAR , -1, TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM CURRENT_DATE) * -(1) + 1, CURRENT_DATE)) From right to left the first TIMESTAMPADD returns the first day of the current year. The second TIMESTAMPADD removes a year from the returned date for the First Day of the Previous Year.
    First Day of the Current Year
    TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM CURRENT_DATE) * -(1) + 1, CURRENT_DATE) This calculation returns the first day of the year by deducting one less than the total number of days in the year.
    First Day of the Next Year
    TIMESTAMPADD( SQL_TSI_YEAR , 1, TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM CURRENT_DATE) * -(1) + 1, CURRENT_DATE)) From right to left the first TIMESTAMPADD returns the first day of the current year. The second TIMESTAMPADD adds a year to the date returned which will give the first day of the next year.
    First Day of the Previous Month
    TIMESTAMPADD(SQL_TSI_MONTH, -1, TIMESTAMPADD( SQL_TSI_DAY , DAYOFMONTH( CURRENT_DATE) * -(1) + 1, CURRENT_DATE)) From right to left the first TIMESTAMPADD returns the first day of the Current Month. The second TIMESTAMPADD then subtracts one month from the first day of the Current Month arriving to the First Day of the previous month.
    First Day of the Current Month
    TIMESTAMPADD( SQL_TSI_DAY , DAYOFMONTH( CURRENT_DATE) * -(1) + 1, CURRENT_DATE) This expression gets the current day of the month and subtracts one less than the current day to arrive at the first day of the month.
    First Day of the Next Month
    TIMESTAMPADD(SQL_TSI_MONTH, 1, TIMESTAMPADD( SQL_TSI_DAY , DAYOFMONTH( CURRENT_DATE) * -(1) + 1, CURRENT_DATE)) From right to left the first TIMESTAMPADD returns the first day of the Current Month. The second TIMESTAMPADD then adds one month from the first day of the Current Month arriving to the First Day of the next month.
    First Day of Current Quarter
    TIMESTAMPADD( SQL_TSI_DAY , DAY_OF_QUARTER( CURRENT_DATE) * -(1) + 1, CURRENT_DATE) This was included to show the calculations discussed above can be used with other functions. This is the same expression as the one that returns the first day of the current month except this one uses the DAY_OF_QUARTER property to return the first day of the current quarter.
    Last Day of the Previous Month
    TIMESTAMPADD( SQL_TSI_DAY , -(1), TIMESTAMPADD( SQL_TSI_DAY , DAYOFMONTH( CURRENT_DATE) * -(1) + 1, CURRENT_DATE)) From right to left the first TIMESTAMPADD returns the first day of the Current Month. The second TIMESTAMPADD subtracts a month to arrive at the first day of the previous month.
    Last Day of Current Month
    TIMESTAMPADD( SQL_TSI_DAY , -(1), TIMESTAMPADD( SQL_TSI_MONTH , 1, TIMESTAMPADD( SQL_TSI_DAY , DAYOFMONTH( CURRENT_DATE) * -(1) + 1, CURRENT_DATE))) From right to left the first TIMESTAMPADD finds the first day of the current Month. The second TIMESTAMPADD adds one month to the date to arrive at the first day of the next month. The final TIMESTAMPADD subtracts one day from the returned date to arrive at the last day of the Current Month.
    Last Day of the Next Month
    TIMESTAMPADD( SQL_TSI_DAY , -(1), TIMESTAMPADD( SQL_TSI_MONTH , 2, TIMESTAMPADD( SQL_TSI_DAY , DAYOFMONTH( CURRENT_DATE) * -(1) + 1, CURRENT_DATE))) From right to left the first TIMESTAMPADD finds the first day of the current Month. The second TIMESTAMPADD adds two months to the date to arrive at the first day of month after next. The final TIMESTAMPADD subtracts one day from the returned date to arrive at the last day of the Next Month.
    Last Day of Previous Year
    TIMESTAMPADD( SQL_TSI_DAY , -1, TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM CURRENT_DATE) * -(1) + 1,
    CURRENT_DATE)) From right to left the first TIMESTAMPADD returns the first day of the current year. The second TIMESTAMPADD subtracts one day to arrive at December 31st of the previous year.
    Last Day of Current Year
    TIMESTAMPADD(SQL_TSI_YEAR, 1, TIMESTAMPADD( SQL_TSI_DAY , -1, TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM CURRENT_DATE) * -(1) + 1, CURRENT_DATE))) From right to left the first TIMESTAMPADD returns the first day of the current year. The second TIMESTAMPADD deducts one day to arrive at December 31 of the previous year. The third TIMESTAMPADD adds a single year to the date to arrive at December 31 of the Current Year.
    Last Day of the Next Year
    TIMESTAMPADD(SQL_TSI_YEAR, 2, TIMESTAMPADD( SQL_TSI_DAY , -1, TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM CURRENT_DATE) * -(1) + 1, CURRENT_DATE))) From right to left the first TIMESTAMPADD returns the first day of the current year. The second TIMESTAMPADD deducts one day to arrive at December 31 of the previous year. The third TIMESTAMPADD adds 2 years to the date to arrive at December 31 of the Next Year.
    Last Day of Current Quarter
    TIMESTAMPADD( SQL_TSI_DAY , -(1), TIMESTAMPADD( SQL_TSI_QUARTER , 1, TIMESTAMPADD( SQL_TSI_DAY , DAY_OF_QUARTER( CURRENT_DATE) * -(1) + 1, CURRENT_DATE))) Demonstrated using Quarters. From right to left the first TIMESTAMPADD returns the first day of the Current Quarter. The second TIMESTAMPADD returns the first day of the next quarter. The final TIMESTAMPADD subtracts a single day from the date to arrive at the last day of the Current Quarter.
    Number of days between First Day of Year and Last Day of Current Month TIMESTAMPDIFF(SQL_TSI_DAY, CAST('2010/01/01 00:00:00' AS DATE), TIMESTAMPADD( SQL_TSI_DAY , -(1), TIMESTAMPADD( SQL_TSI_MONTH , 1, TIMESTAMPADD( SQL_TSI_DAY , DAYOFMONTH( CURRENT_DATE) * -(1) + 1, CURRENT_DATE)))) For simplicity I hard coded the January 1, 2010 date and CAST it to a date. I could have used the First Day of the Current Year calculation but didn’t want to over clutter the example. The second part of the TIMESTAMPDIFF uses Last Day of the Current Month calculation to force the TIMESTAMPDIFF to calculate the number of days between the first day of the year and the last day of the current month.
    =============
    FYI, let say some example,
    Last day of previous Quarter:
    "GPC_DataMart"."GPC_DataMart"."dbo"."LQ_Position"."Business_Date"=TIMESTAMPADD( SQL_TSI_DAY , -(1), TIMESTAMPADD( SQL_TSI_DAY , DAY_OF_QUARTER( "GPC_DataMart"."GPC_DataMart"."dbo"."MT_BUSINESS_DATE"."Business_Date") * -(1) + 1, "GPC_DataMart"."GPC_DataMart"."dbo"."MT_BUSINESS_DATE"."Business_Date"))
    Last month last day:
    "GPC_DataMart"."GPC_DataMart"."dbo"."LM_Position"."Business_Date"=
    TIMESTAMPADD( SQL_TSI_DAY , -(1), TIMESTAMPADD( SQL_TSI_DAY , DAYOFMONTH( "GPC_DataMart"."GPC_DataMart"."dbo"."MT_BUSINESS_DATE"."Business_Date") * -(1) + 1, "GPC_DataMart"."GPC_DataMart"."dbo"."MT_BUSINESS_DATE"."Business_Date"))
    Last year Last day
    "GPC_DataMart"."GPC_DataMart"."dbo"."LY_Position"."Business_Date"=
    TIMESTAMPADD( SQL_TSI_DAY , -1, TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM "GPC_DataMart"."GPC_DataMart"."dbo"."MT_BUSINESS_DATE"."Business_Date") * -(1) + 1, "GPC_DataMart"."GPC_DataMart"."dbo"."MT_BUSINESS_DATE"."Business_Date"))
    Thanks and Regards,
    Deva
    http://obieeelegant.blogspot.com/2011/06/obiee-date-expressions-reference.html

  • Previous and Prior Year Date Values

    How do I get the Previous, Prior year month and Prior year previous month values from a given date?
    Ex: Input would be: 05/01/2008
    The output should be:
    05/01/2008 - Current Month
    04/01/2008 - Previous Month for the Current Year
    05/01/2007 - Prior year current Month
    04/01/2007 - Prior Year Previous Month
    Please let me know..

    Hi,
    Then you'll probably do a self-join. In one copy of the table, you'll get the data from date d1, and in the other copy, you'll get the data from date ADD_MONTHS (d1, -12).
    If, ultimately, you are going to show four sets of figures (from four different rows representing four different dates) on the same output line, then you may find it more convenient to do a pivot rather than a self-join. Search for the buzz word "pivot" and you'll get lots of examples. You might start by selecting four rows:
    WHERE   dt IN
            ( d1
            , ADD_MONTHS (d1, -1)
            , ADD_MONTHS (d1, -12)
            , ADD_MONTHS (d1, -13)
            ) ...and then pivoting that data into four columns:
    SELECT  ...
    ,       MAX (CASE WHEN dt = d1                   THEN val END) AS this_month
    ,       MAX (CASE WHEN dt = ADD_MONTHS (d1, -1)  THEN val END) AS one_month_ago
    ,       MAX (CASE WHEN dt = ADD_MONTHS (d1, -12) THEN val END) AS one_year_ago
    ,       MAX (CASE WHEN dt = ADD_MONTHS (d1, -13) THEN val END) AS thirteen_months_ago
    ...

  • When simulating a circuit, how do I display current and voltage on the circuit?

    Hello, how do I get Current and Voltage to display on the circuit design without using meters?

    saxyman123,
    You can use probes (yellow instrument towards the end of the instruments toolbar) and then set the properties.  You can choose to display just current and voltage.
    Regards,
    Pat Noonan
    National Instruments

  • Displaying current and previous 5 Year data in a bar graph

    Hi ,
    My requirement goes like this .....
    I have to show revenue (measure) data based on current year (period dimension) selection (from a dashboard prompt) and previous 5 year data's as well .
    i.e. if user selects 2013 , the bar graph will display 6 bars ... 2013,2012,2011,2010,2009,2008.
    I am trying to achive this with filter on Year column , on the main report ....*"is based on results of another analysis"*
    But haven't made any progress .
    Thanks
    sayak

    sayak wrote:
    Hi ,
    My requirement goes like this .....
    I have to show revenue (measure) data based on current year (period dimension) selection (from a dashboard prompt) and previous 5 year data's as well .
    i.e. if user selects 2013 , the bar graph will display 6 bars ... 2013,2012,2011,2010,2009,2008.
    I am trying to achive this with filter on Year column , on the main report ....*"is based on results of another analysis"*
    But haven't made any progress .
    Thanks
    sayakFollow this link. It will give you greater flexibility for you end users and therefore a better report.
    http://oraclebizint.wordpress.com/2008/03/11/oracle-bi-ee-101332-rolling-yearmonth-and-date-filters-moving-window-filters/

  • Display current and previous months records only

    Hello gang,
    My selection criteria looks like this:
    not ({HRDEPBEN.PLAN_CODE} startswith ["C", "EAP", "HMIL", "V", "W"]) and
    (month({hrdepben.Creation_date}) = month(currentdate)) and
    {HRDEPBEN.PLAN_TYPE} = "HL"
    I modified it to this in order to pull in previous month's data too:
    {HRDEPBEN.PLAN_TYPE} = "HL" and
    not ({HRDEPBEN.PLAN_CODE} startswith ["C", "EAP", "HMIL", "V", "W"]) and
    (month({hrdepben.Creation_date}) = month(currentdate) or month ({hrdepben.Creation_Date})= month (currentdate)-1)
    However, it's still pulls the same record count and only January records, not Decembers'.
    Where am I going wrong?
    Thanks

    Looks like you're reporting against Lawson?  What database are you using?
    There are a few issues with the record selection criteria as it's written:
    1)  Month(CurrentMonth) - 1 = 0 when the current month is January.  That's why your not getting any records from December.
    2)  The  monthly criteria won't be passed to the database for processing, which is a huge performance issue when you're reporting against a system like Lawson.  You're basically telling the report to bring back all records that don't start with an array of values, irrespective of the date.  Only after all the possible records are returned across the network will the extraneous records be filtered out on the client side.  That's bad.
    3)  It's easy to use StartsWith or Like, but it's also pretty inefficient, since it forces a full table scan of the underlying table
    Personally, I'd do one of two things in order to both fix the query and optimize it:
    1)  Write the underlying query in SQL as either a View or SQL Command object
    or
    2)  Keep the current report, but make use of SQL Expression fields in order to optimize the query.
    Here are some examples of SQL Expression fields against Oracle (PL/SQL) that could be useful:
    /*{%PLANCODES}*/
    /*This SQL Expression evaluates whether or not a Plan Code starts with the specified values*/
    /*"HRDEPBEN"."PLAN_CODE" is selected directly from the Field Tree in the SQL Expression Editor*/
    CASE
      WHEN SUBSTR("HRDEPBEN"."PLAN_CODE",1) IN ('C','V','W') THEN 'Y'
      WHEN SUBSTR("HRDEPBEN"."PLAN_CODE",3) = 'EAP' THEN 'Y'
      WHEN SUBSTR("HRDEPBEN"."PLAN_CODE",4) = 'HMIL' THEN 'Y'
      ELSE 'N'
    END
    /*{&CREATEDATEMONTH}*/
    /*This SQL Expression returns the month of the Creation Date field*/
    /*"HRDEPBEN"."CREATION_DATE" is selected directly from the Field Tree in the SQL Expression Editor*/
    TO_NUMBER(TO_CHAR("HRDEPBEN"."CREATION_DATE",'mm'))
    You could also create formula to return the Month value for last month and then use it in your record selection:
    //{@LASTMONTH}
    //This formula returns the Month value for Last Month
    //IIF statements can be passed to the database for processing
    IIF(Month(CurrentDate) = 1, 12, Month(CurrentDate) - 1)
    With expressions and formulas like these in place (this code is Oracle and DB2 compatible, it would be different for T-SQL), you could then modify your record selection criteria to be something simpler, like this:
    {HRDEPBEN.PLAN_TYPE} = "HL" and
    {%PLANCODES} = 'N' and
    {%CREATEDATEMONTH} IN {@LASTMONTH} TO MONTH(CURRENTDATE)// MONTH(CURRENTDATE) is passed to the DB
    By laying the groundwork, you'll have a much more efficient report and, in the case of the @LastMonth, more accurate! Hope this helps!
    p.s. a disclaimer on using SQL Expressions in this manner - it's not officially supported, although it's worked since Version 7 (when SQL Expressions were introduced) and there will be support for them in various 2011 versions. As such, they'll work for years. I use them all the time and they're fantastic for optimizing reports.

  • Report with Current and Prior Year

    I'm looking to create a report with fields Report Group, Year, and Actual Dollars.  Where the Year includes the current year and the prior year (NOT user input).  The format would be:
    Report Group | | Year | | Actual Dollars
    Product Revenue | | 2008 | | $100
    Product Revenue | | 2009 | | $200
    etc
    Sounds simple enough but I'm having difficulty getting it to work since I need the Year field in the report (and I'm new to WebI).
    Thanks for your help,
    Dave

    Hi David,
    I'd suggest you use a Query filter (or a report filter) to retrieve only rows that match this criteria on years. Since you need two values, I may have to use the filtering operator 'in list'
    Difference between those two is query filter will only retrieve to values where year = 2008 or 2009 from the datasource (so if you want to change the year values, you will have to refresh document), while report filters are active on the query output (which means that no refresh from the DB is required if you need to change values), which might bring a better experience if you need interactivity in the report. Moreover, if interactivity is important and you are working with WebI XI 3.1 SP2, you can embed these report filters into Input Control, and command the filter from a graphical widget like check boxes, to let user control which years he wants to view/ compare in the table (or chart).
    Hope that helps,
    David.

  • GL Custom Reports not displaying source and line item Data after Upgrade

    Hi,
    I am having this issue even though General Ledger Journal Entry Summarization is set to "No Summarization" and in SLA the Line Type is set in detail for Transfer to GL. Have you come accross a specfic example like this? Can you please guide me to what the problem may be?
    None of the GL reports is showing the Source and Line Item details.
    Thanks,
    Arun

    I am having this issue even though General Ledger Journal Entry Summarization is set to "No Summarization" and in SLA the Line Type is set in detail for Transfer to GL. Have you come accross a specfic example like this? Can you please guide me to what the problem may be?
    None of the GL reports is showing the Source and Line Item details.Have you verified the queries of those reports after the upgrade? And, when you say upgrade, do you mean from 11i to R12?
    Did you set the application context properly?
    How to set the Organization Context in R12? [ID 437119.1]
    Oracle Applications Multiple Organizations Access Control for Custom Code [ID 420787.1]
    SQL Queries and Multi-Org Architecture in Release 12 [ID 462383.1]
    Setting APPS Context is mandatory step while loading data using public APIs [ID 473615.1]
    Thanks,
    Hussein

  • CURRENT YEAR SALES DATE PARAMATER AND PRIOR YEAR SAME DATE RANGE

    I am pulling data from a SQL view dbo.view that has current and historical SOP data by line.  The date paramater is a date range,  uppr date and lower date formulas are in the report.  I need to include prior year SOP data for the same prior year date range in the detail.  I have tried adding the view in twice with no luck, just duplications.  Ultimately I want to supress the detail and only show the totals by customer so it is comparitive.  Thanks for your help.  Jayne

    OK
    lets simplify it
    get a test data source with some simple dates in it.
    get the report logic working.
    it looks like you have the right formula ideas but lets go for
    @upperthisyear
    @upperlastyear
    @lowerthisyear
    @lowerlastyear
    then assuming a date field of {table1.date}
    the record selection would be
    if (@upperthisyeare > {table1.date} and @lowerthisyear < {table1.date}) or (@upperlastyeare > {table1.date} and @lowerlastyear < {table1.date}) then 1 else 0
    I would test this by using it as a formula field with the test data.

  • Calculationg current and past year for a Analysis report in obiee 11.5

    Dear All,
    Need some help here.
    I am a beginner in OBIEE and need some help to build a report in obiee 11.5 as described below;
    I need to create a PnL report such that I show current years profit and loss AND prior year profit and loss figures in a report side by side for comparitive analysis for user.
    My data is an essbase database, and have a years dimension with values 'current year' , 'F08', and 'Prior Year'. and other measurs such as revenue, % revenue, gross profit, cost of sales, operating expenses etc. (I am using 107 from oracle downloads) for obiee 11.5
    There is another dimesion called time period with members as Q1, Q2, Q3, and Q4, and each having respective months (e.g. Jan, Feb, Mar for Q1 etc)
    I also have a scenario dimension with members as Actual, plan, Forecast, Wht -if..
    Now I need to create a this report.
    I created this report based on approch no 1 below;
    Appraoch 1
    - Create two analysis reports with all the above columns.
    - specify filter for year column equal to current year for first report
    - specify filter for year column equal to prior year for second report
    - create a dashboard with a promt (radio button) based on column scenario
    - create two sections placed side by side below the promt and place above two reports in those two sections so that they appear side by side
    Nw when I run this dashboard, it works fine, and shows me the current and prior data for actual, plan etc...
    BUT....
    I need to create the same reports using a single analysis report instead of two separate reports with hardcoded values for year filter.
    Now I tried use AGO funtions on but , it requires a column with numerical value so that it can calculate the past year, but in my case year is a column hving text value and hence i cant use it.
    I would like to know how to build such a report using any other variable or function or any rpd level modifitions.
    If I had a year dimesion with numeric values, then how would I use to calculate the past year once u select current year .?
    Let say values are 2012, 2011, 2010 etc. so If I select 2012 as current year, I should get data for 2012, and 2011, if I select 2011, then I should get data for 2011 ,and 2010.
    Please help me to build logic either at analysis level or at repository level
    Thanks and Regards
    Santosh

    Hi,
    As per I understand your requirement,
    In Pivot table, place 'Year' in pivot columns instead of rows.
    Create an SQL filter on Year and put the condition as:
    *"Year" BETWEEN @{Presentation_Variable} - 1 AND @{Presentation_Variable}*
    You will get the result for selected year and the previous year.
    Hope it helps..
    Regards,
    A.K.

  • Quarter Dates

    How do I get previous and next quarter dates in coldfusion?
    Using the below function I will get current quarter.
    <cfoutput>#Quarter(Now())#</cfoutput>. --->
    Output ---> Q1
    Q#Quarter(Now())#-#DateFormat(Now(), "yyyy")# --> Output
    ----> Q1-2007
    I want the previous and next quarter dates in below format.
    (Considering the date as today's date ie. 21st Feb 2007)
    Q4-2006 from (October 1st to December 31st).
    Q2-2007 from (April 1st to June 30th).
    Can anyone help me.
    Thanks & Regards,
    Satheesh.

    Thanks guys for your reply.
    I have done it through sql query:
    The below query will give me out of previous quarter with
    year.
    If Getdate() - 2007-02-21 15:29:22.850
    I require previous quater. Hence I used the below logic in
    SQL Server.
    SELECT
    CASE WHEN MONTH(GETDATE()) IN ( 1, 2, 3) THEN 'Quarter 4, ' +
    CAST(YEAR(GETDATE())-1 AS VARCHAR(4))
    WHEN MONTH(GETDATE()) IN ( 4, 5, 6) THEN 'Quarter 1, ' +
    CAST(YEAR(GETDATE())-1 AS VARCHAR(4))
    WHEN MONTH(GETDATE()) IN ( 7, 8, 9) THEN 'Quarter 2, ' +
    CAST(YEAR(GETDATE())-1 AS VARCHAR(4))
    WHEN MONTH(GETDATE()) IN (10, 11, 12) THEN 'Quarter 3, ' +
    CAST(YEAR(GETDATE())-1 AS VARCHAR(4))
    END as PreQuarter

  • Selective deletion in DSO  for current and previous year

    Hi,
    Can any one give an idea how can I selectively delete current and previous year data (only). is there any process type that can help me in process chains. This should be before loading a fresh load for the same period. this is for psodo delta.
    or
    any other alternative, plz. suggest.
    Thanks
    ganesh
    Edited by: Ganesh on Jul 7, 2008 12:08 PM

    Hi,
    If you have any date value example posting date or 0CALMONTH.., you can filter the date using the selection conditions and selectively delete the data.
    Process:
    Manage of DSO->Contents Tab->Selective (with delete Icon)->Deletion selections->give the period->Execute->Start->Yes->continue.
    Hope this helps..........
    Rgs,
    I.R.K

  • Need to display the Current Quarter Data

    Hi Gurus,
    We have a requirement in the report as follows:
    I have a Key Figure - 0Balance. In this it should display the current quarter data.
    We have 5 plants and this report is specific to a plant X which runs 3 month behind.
    So in the variables screen, if I enter 006.2007, it should display the data of 003.2007. Please guide me through the steps...Thanks in advance.

    Hi,
    For getting current quarter data there is std variable available 0CMCQUAR , restrict KF wiht the variable and system should show you current quarter balance.
    For getting balance for previous quarter , copy the kf just created and right click on it , click on the variable right hand side -> specify offset -> put -1. and it should give last quarter data.
    Hope that helps.
    Regards
    Mr Kapadia

Maybe you are looking for