Reg:-Previous Year Quarter

Hi All,
I need to build a new report on Balance Sheet Quarterly in Financials. My reqiurement is..Show the Quarterly Balance sheet comparing Curent Quarter and Previous year Quarter
i.e Current Qtr vs Previous Year Qtr.
In the report levl , I have used Presentation variable for Current Quarter:-FILTER("Facts - GL Balance"."Balance Global1 Amount" USING (Time."Fiscal Quarter" ='@{var_qtr}{2011 Q 1}'))
In the Dashboard, I used two filters Fiscal Year, Fiscal Quarter.. So if select Fiscal Quarter 2011 Q2 then the user should also be able to see 2010 Q2 data.
May I know how to achieve this.
Thanx in advance.

Hi all,
I have built a report on Balance Sheet using following columns:
1) General Ledger Code
2) Current Quarter
3) Previous Quarter
4) Global Amount
Now I got a new requirement to add a column Variance to the layout which should be difference of (Current Quarter- Previous Quarter).
For current Quarter, we have used this formula :FILTER("Facts - GL Balance"."Balance Global1 Amount" USING (Time."Fiscal Quarter" ='@{var_qtr}{2011 Q 1}'))
For Previous Quarter , we have used this formula:-FILTER("Facts - GL Balance"."Balance Global1 Amount" USING (Time."Fiscal Quarter" = ( case when substring('@{var_qtr}{2011 Q 1}' from 6 for 8)='Q 1' then cast(cast(substring('@{var_qtr}{2011 Q 1}' from 1 for 4) as int)-1 as char(4))||' '||'Q 4' when substring('@{var_qtr}{2011 Q 1}' from 6 for 8)='Q 2' then substring('@{var_qtr}{2011 Q 1}' from 1 for 4)||' '||'Q 1' when substring('@{var_qtr}{2011 Q 1}' from 6 for 8)='Q 3' then substring('@{var_qtr}{2011 Q 1}' from 1 for 4)||' '||'Q 2' else substring('@{var_qtr}{2011 Q 1}' from 1 for 4)||' '||'Q 3' end)))
I need help how to calculate variance..

Similar Messages

  • How to get current fiscal year/quarter/month/week

    Post Author: [email protected]
    CA Forum: Semantic Layer and Data Connectivity
    Hi friends,
    I have to calculate
    1. current year/quarter/month/week.
    2.Previous year/quarter/month/week.
    please tell the process to achieve the above scenerio's.
    the structure of the fiscal_cal is as  follows.
    Name                                      Null?    Type
    TODAY                                     NOT NULL DATE
    FISCAL_DAY                                         NUMBER(8)
    FISCAL_WEEK                                        NUMBER(6)
    FISCAL_MONTH                                       NUMBER(6)
    FISCAL_QTR                                         CHAR(18)
    FISCAL_YEAR                                        NUMBER(4)
    FISCAL_MONTH_WORK_DAYS                             NUMBER(2)
    sample week data is as follows
    FISCAL_WEEK
         200752
         200753
         209901
    Thanks.

    based on ur target database DBMS you can find a built-in functions be used in the universe designer to get the requirment you talked about, like in oracle
    to_char(mydate,'yyyy') it will return the year in the yyyy format.
    and the same way for the other things you want
    to_char(mydate,'q') return the quarter.
    w return the week of the month
    ww return the week of the year
    mm return the month
    ,, to get the last year
    you can use also a builtin functions
    like add_months(mydate,-12) that return the same date for the last year, and you can do the same operations as before.
    its all related to the DBMS.
    good luck

  • Reg : Curr Month,Previous Month,Curr Month Previous Year

    Hi all ,
                 I have a req where I have to display the sales for
    Current Month               Sales value
    Previous Month             Sales value
        Curr Month                Sales 
    Previous Year
    Curr Month and Previous Month I got it with Time Series AGO Function .
    But current month for the Previous Year , I am not able to proceed .
    Kindly help.
    Reg,
    Niv D

    Hi NIV,
    You can use the same time series function to calculate current month of last year values.
    Ago (measure column , year , 1)
    it describes the last year sales of current month
    OBIEE -Time Series in OBIEE
    Regards,
    VG

  • Convert the 0CALQUARTER into previous year same quarter

    Hi All,
    How to conver the 0CALQURTER to Previous year same quarter in User exit (CMOD).
    Please give a sample code.
    Thanks

    Hi Chakri,
    The Sample code is:
    DATA: L_S_RANGE TYPE RSR_S_RANGESID.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    Data: v_loc_year(4) TYPE n.
    Data: v_pre_year(4) TYPE n.
    Data: v_month(2) TYPE c.
    CASE I_VNAM.
    to calculate "Year to Last month" from fiscal year/period with user entry
      WHEN 'ZCAL_QUAR'.
        IF I_STEP = 2. "after the popup
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
        WHERE VNAM = 'ZCAL_QUAR1'.
            CLEAR L_S_RANGE.
            v_month = LOC_VAR_RANGE-LOW+4(2).
            v_loc_year = LOC_VAR_RANGE-LOW+0(4).
            v_pre_year = v_loc_year - 1.
           CONCATENATE v_pre_year v_month INTO result.
          ENDLOOP.
        ENDIF.
    ENDCASE.
    **ZCAL_QUAR is your User Exit Variable, ZCAL_QUAR1 is your normal selection variable where user enter the value.
    Hope this helps.
    Let me know if it doesnt work.
    Regards,
    Ravi Kanth
    Edited by: Ravi kanth on Apr 27, 2009 10:08 AM

  • Reg:Allocation on previous year actuals

    Hi Experts,
                      I have an issue in allocation, i wrote allocation logic to allocate profit center by previous year actuals that was ok but if there are new profit center created for this year and there wont be any previous year actuals for it so he asks me to allocate the amount evenly to all the profit centers if that possile in Run allocation ?
    the script below
    *SELECT(%ACC%,"ID", "ACCOUNT", "TOPDOWNALLOC = 'Y'")
    *SELECT(%CurrencyList%,"ID","RPTCURRENCY","CURRENCY_TYPE = 'R'")
    *SELECT(%ENTI%,"ID","ENTITY","ID = %ENTITY_SET%" )
    *SELECT(%CATE%,"ID","CATEGORY","ID = %CATEGORY_SET%" )
    *SELECT(%TIME%,"ID","TIME","ID = %TIME_SET%" )
    *SELECT(%PTC%,"ID","PROFIT_CTR","ID = %PROFIT_CTR_SET%" )
    *XDIM_MEMBERSET RptCurrency = %CurrencyList%
    *XDIM_MEMBERSET CATEGORY = %CATE%
    *XDIM_MEMBERSET TIME = %TIME%
    *XDIM_MEMBERSET ACCOUNT = %ACC%
    *XDIM_MEMBERSET PROFIT_CTR = %PTC%
    *FOR %ACCT%=%ACC%
    *RUNALLOCATION
    *FACTOR = USING/TOTAL
    *DIM ENTITY WHAT =%ENTI%.INP ; WHERE=%ENTI%; USING=%ENTI%; TOTAL=%ENTI%
    *DIM CATEGORY WHAT=%CATE%; WHERE=<<<; USING=ACTUAL; TOTAL= <<<
    *DIM ACCOUNT WHAT=%ACCT%_INP; WHERE=BAS(%ACCT%); USING=BAS(%ACCT%); TOTAL=<<<
    *DIM DATASRC WHAT=INPUT; WHERE=INPUT; USING=UPLOAD; TOTAL=<<<
    *DIM PROFIT_CTR WHAT=BAS(%PTC%_IN); WHERE=BAS(%PTC%); USING=BAS(%PTC%); TOTAL=<<<
    *DIM COSTCENTER WHAT= NO_COSTCENTER; WHERE=BAS(1004322231); USING=BAS(1004322231); TOTAL=<<<
    *DIM TIME WHAT=BAS(%TIME%); WHERE=BAS(%TIME%); USING=BAS(2009.TOTAL) ; TOTAL=<<<
    *DIM RPTCURRENCY WHAT=LC; WHERE=INR; USING=IN; TOTAL=<<<
    *ENDALLOCATION
    *COMMIT
    *NEXT
    Regards,
    Vinoth

    Hi Vinoth,
    First, what REF_DATA is. Initially WHEN statement in BPC NW worked on members defined in your XDIM statements rather than records from your Application like in BPC MS. Starting from BPC NW 7.0 SP09 (7.5 SP04) default behavior of WHEN has been changed to be based on Application data. For compatibility purposes and to leave a choice of using Dimension data a new statement was introduced - *WHEN_REF_DATA. You can read in more details about it in OSS Note [Note 1474115 - Enable new keyword: *WHEN_REF_DATA for script logic|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1474115].
    So, based on what Profit Centers you have to use you have to put either *WHEN_REF_DATA=MASTER_DATA or *WHEN_REF_DATA=TRANS_DATA.
    I didn't understand why would you need multiple new Profit Centers. I can see 2 options of implementing your scenario:
    1. You create an Input Schedule that allows user to enter number of Profit Centers. Than you use that number in your RUNALLOCATION.
    2. You create a script that calculates number of Profit Centers and stores it in same Application. Than you use that number in your RUNALLOCATION.
    a) Your script calculates total number of Profit Centers and puts it on member NO_PC. Than FACTOR = 1/USING will be in RUNALLOCATION
    b) You populate value 1 on each Profit Center on some special Account. Than FACTOR = USING/TOTAL will be in RUNALLOCATION.
    You have to decide first which path is more convenient for you. Some of the considerations I explained in my previous posting. After than we can proceed with developing that script; otherwise there are too many unknowns in that task.
    Regards,
    Gersh

  • MDX to fetch record from 1st of current month to 5th of next month and same for previous year

    In my date dimension I have a attribute CalendarDate. I do have a hierarchy [Date].[Year].[Quarter].[Month].[CalendarDate] as well. I need to fetch data starting from 1st working day of current month to 5th working day of next month by MDX. I do have a attribute
    to filter working day as IsWorkingDay. How can we get a dynamic MDX that will find the current month first and than it will filter the record from 1st working day of current month to 5th working day of next month. And same for the previous year same month
    to compare.
    Thanks in advance!
    Palash

    Hi P,
    You can use a calculated member to dynamically add all the days in the current month and the first 5 in the following month.  You will need to change measure, cube and hierarchy names.
    with member measures.ThisMonthAnd5 as 
    sum([Date].[Year].parent.children,Measures.[Sales])
    +sum(Head([Date].[Year].parent.nextmember.children,5),Measures.[Sales])
    select 
    {Measures.[Sales]
    ,Measures.ThisMonthAnd5
    } on 0,
    non empty [Date].[Year].[CalendarDate]  
    on 1
    from MyCube
    Richard

  • Bi 7.0 SD report for previous year, month, current month, rolling 30days.

    I have Sales document type in rows and in column, I have no of sales documents.
    Now, I need sales documents in rows and no of sales documents in columns according to
    created on date: 0calday of types as follows
    List of columns:
    Previous year    last quarter   Current quarter     Current month    30 days rolling.
    How do I define these RKFs.. do we have standard date variables for RKF.
    Thanks
    Jeff

    Hi ,
    You dont have a standard date variable
    I have the solution for ur problem
    here u can go for creation of variable for column KF and assign the value for each sales document type = 1 by using a customer exit
    Pls assign some points if answer is helpfull
    Regards ,
    Subash Balakrishnan

  • Calendar year quarter

    dear all,
    any function module in bw which returns me the calendar year quarter for 0CALQUART1 and 0CALQUARTER.
    while we on the data subject, what does 0FISCVARNT do? thanks.

    Hello Amit,
    thanks for replying once again.
    i dont want current or previous quarter... nothing wanting to write my own routine, is there any function module in sap which e.g. throws in a date 21/02/2001 and it returns me the quarter.

  • Date parameters for the previous fiscal quarter?

    Hello Folks,
    I have this requirement of selecting the dates for the previous fiscal quarter. usually a fiscal quarter is January 2011 - March 2011. But in my case the fiscal year should be December 2010 to February 2011 and if i check in june 2011 it should return Mar 2011 till May 2011 and so forth. So how can i acheive to be able to select these dates i.e 12/1/2010 till 02/28/2011 in the where clause for the current date?
    create table test_A (id int, col varchar(50),change_date date);
    insert into test_A values(1, 'A',to_date('20101201 000000', 'YYYYMMDD HH24MISS'));
    insert into test_A values(2, 'A1',to_date('20110122 000000', 'YYYYMMDD HH24MISS'));
    insert into test_A values(3, 'A1',to_date('20110202 000000', 'YYYYMMDD HH24MISS'));
    insert into test_A values(5, 'A1',to_date('20110306 000000', 'YYYYMMDD HH24MISS'));
    insert into test_A values(6, 'A1',to_date('20110305 000000', 'YYYYMMDD HH24MISS'));
    insert into test_A values(7, 'A1',to_date('20110307 000000', 'YYYYMMDD HH24MISS'));
    select * from test_A
    1     1     A     12/1/2010
    2     2     A1     1/22/2011
    3     3     A1     2/2/2011
    4     5     A1     3/6/2011
    5     6     A1     3/5/2011
    6     7     A1     3/7/2011
    I only want to see the following
    1     1     A     12/1/2010
    2     2     A1     1/22/2011
    3     3     A1     2/2/2011

    select  *
      from  test_A
      where change_date >= add_months(trunc(sysdate,'Q'),-1)
        and change_date <  add_months(trunc(sysdate,'Q'),2)
            ID COL                                                CHANGE_DATE
             1 A                                                  20101201 000000
             2 A1                                                 20110122 000000
             3 A1                                                 20110202 000000
    3 rows selected.
    SQL> SY.

  • Querying the PRIOR YEAR Quarter QTy

    Hi Friends and All,
    I need your help in querying the PRIOR YEAR Quarter QTy.Please suggest me
    Year     Qrt     QTY
    1970     Q1     100
    1970     Q2     75
    1970     Q3     36
    1970     Q4     46
    1971     Q1     99
    1971     Q2     20
    1971     Q3     49
    1971     Q4     60
    1972     Q1     80
    1972     Q2     39
    1972     Q3     50
    1972     Q4     49
    2008     Q1     100
    2008     Q2     200
    2008     Q3     300
    2008     Q4     400
    2009     Q1     345
    2009     Q2     456
    2009     Q3     178
    suppose if the user select year 2008, then the prvious year 2007 last quarter values should be displayed
    Thanks in Adv,
    Claoker
    Edited by: user12146923 on Nov 4, 2009 10:53 AM

    Hi,
    Perhaps the best way is a self-join, where you act like one table (c in the example) containes the current year's data, and another table (p) contains the previous year's data, if any.
    SELECT       c.year
    ,       c.qrt
    ,       c.qty
    ,       p.year
    ,       p.qty
    FROM          table_x     c
    LEFT OUTER JOIN     table_x     p     ON     p.year     = c.year - 1
                                AND     p.qrt     = c.qrt
    ORDER BY  c.year
    ,            q.qrt
    ;

  • Offset issue for Fiscal Year Quarter

    Dear All,
    There is a requirement to develop a report for balance sheet to compare the fiscal year quarter like if user is going to give input 20143 then comparison quarter is 20142 where I did offset (-1) and if user give input as 20141 then the comparison quarter is 20134 where I am using offset as (-7).
    So I have incorporated both offset in one variable. Now the issue is if I will run for any quarter then it is giving error in the run time. Could anyone suggest that how I could achieve this, whether I have used correct offset interval?
    Query Key Figures Selections:
    Bex Analyzer Selection Error:
    Regards,
    Abhishek Jain

    Hi,
    I wouldn't do it in that way i.e. one column where you count previous quarter for quarters 2 3 4 (offset -1) and another column for counting previous quarter for quarter 1 (offset 7).
    There should be just one column where you count just previous quarter. Use an EXIT to count previous quarter for any value of quarter.
    Regards, Leszek
    something like this can be used:
    WHEN 'ZPREVQUARTER'.
    * QUARTER(1) TYPE C.
    * YEAR(4) TYPE C.
    * have to be defined after DATA: keyword !!!
       IF i_step = 2.
             LOOP AT i_t_var_range INTO l_s_var_range
               WHERE vnam = 'ZCURRENTQUARTER'.
               EXIT.
             ENDLOOP.
             CLEAR: l_s_range.
             YEAR = l_s_var_range-low(4).
             QUARTER = l_s_var_range-low+4(1).
             IF QUARTER = 1.
              YEAR = YEAR - 1.
              QUARTER = '4'.
             ELSE.
              QUARTER = QUARTER - 1.
             ENDIF.
             CONCATENATE YEAR QUARTER INTO l_s_range-low.
             l_s_range-sign = 'I'. "loc_var_range-sign.
             l_s_range-opt = 'EQ'. "loc_var_range-opt.
             APPEND l_s_range TO e_t_range.
          ENDIF.

  • Customer Exit  for Calendar year/Quarter

    Hi Experts,
    I had a scenario as I had a Time char 0Calquarter.  Based on this I need to derive the current quarter headcount and Pervious year same quarter headcount.  To get the headcount I defined a counter constant '1' for each employee at cube level.
    In a Query
    a)  Assign a system date to 0Calquarter variable in query.
    b) If the variable is blank till current quarter the headcount need to display and same as previous quarter headcount.
    c) If the user enters any value (say 20083) tht quarter current headcount and pervious year quarter(20073) headcount.
    For the above scenarios I need to write customer exit. 
    Thanks,

    Hi Shanthi,
    Thanks for u r reply.
    Headcount is defined as 'constant'.  when Z_COUNT Keyfigure is dran & droped in rows it'll cumulate and display the current headcount.
    hope u understand the headcount.
    I require the cmod logic.
    Thanks

  • Import Fixed Asset on Previous Year

    Hi experts,
    I would like to know, is it possible to upload fixed asset on previous year as fiscal year. For example I want to upload asset per June 2010 as beginning period, I tried several ways to upload but I couldn't find the right one.
    I tried to upload fixed asset data with depreciation start / capitalization date before Jan 2010 and succeed
    eg.
    Asset: Printer
    Acquisition date: 01 Feb 2009
    Depreciation start date: 01 Feb 2009
    APC value: 22000000
    Useful Life: 36
    Remaining Life: 25
    Ordinary Depr: 8066667
    But it didn't work out with the depreciation start / capitalization date on Jan - Jun 2010
    eg.
    Asset: Printer
    Acquisition date: 01 March 2010
    Depreciation start date: 01 March 2010
    APC value: 2100000
    Useful Life: 36
    Remaining Life: 36
    Ordinary Depr: 0
    Any help will be most appreciated. Thanks

    Yes, I did. It said "We recommend you to import fixed asset master in the past years. If you insist on importing an asset for the current fiscal year, make sure the depreciation start date is the first date of current fiscal year and the Remaining Life is the same as the Useful Life." This case is different, the company wants to upload asset as per June 2010 as its beginning balance =) Thx for your reply Julie

  • Parameter for current year and previous year

    Hi all,
    I currently have 2 reports where the query is the same except in the where clause I have it filtered to current year and previous year based on the List_Date. I would like to make this one report with a parameter of Current or Previous year.
    Would I create 2 more datasets one for current and another for previous? I would think there is a easier way. Any help or direction would be great.  

    If you define a parameter in SSRS, you can use it's value in your query. Just make sure the parameter name, and CASE (SSRS is case sensitive when it comes to parameters) are the same in SSRS and your query. There's a parameter tab on the dataset properties.
    It SHOULD auto fill, but it never hurts to check, just in case.
    Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.
    Yes it did auto fill the parameter tab in the dataset and I get a parameter to enter the year when I preview the report. Still a little confused on how I do current or previous year. Are the next steps what I need to do?
    @yearParam parameter:
    1) Create  Available or Default values 
    2) Current and Previous year as label
    3) For Value do I need to use a expression for current year =Year(now()) and previous Year?
    4) Add a filter on the tablix for list_date?

  • Opening Balance from Previous Year Closing Balances

    HiWe are trying to create multiple year budgets for balances sheets which rely on previous year info for opening balances.Our time dimension has months and year to date as the low level.e.g. TOTAL_YTD Jan_YTDYears are in dimenison scenario.

    Please ignore posted before complete

Maybe you are looking for

  • Adobe Acrobat 8 Professional Random Crash (Access Violation)

    hi all. first time poster. long time reader. i have encountered an odd access violation problem - 'ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at "blah" referenced memory at "blah". The memory could not be "blah" - in 'acrobat.dll' recently w

  • Multi Mapping   for a simple scenario

    Hi,    i have   a scenario    i.e. from the source I'm getting some 10 fields of data..   like  bellow.. Data:                      0--- Unbounded     Company_Code   1-1     Order_No            1-1     Material              1-1     Amount            

  • Finding nr of "new-line"-characters in string

    Hi! I looking for a smooth way of achieveing the number of "\n" characters in a string. e.g. String tmp = "There is a house\n in New Orleans, \n they call the Rising Sun\n"; This string should return number 3 (three occurrences of the '\n' character.

  • ISE 1.3 Sponsor Portal.

    Hi There, Just trying out ISE Version 1.3 and encountering some issues getting access to the sponsor portal. Just checking about a Standalone deployment is it OK to have the sponsor portal interface the same as you manage the ISE from? I cant seem to

  • Error Notification message checksum content error in APEX 4.2

    Hi, We are Getting "Error Notification message checksum content error" when somebody enters wrong password in one of our installations after upgrade to 4.2 Installation -- OEL 5.5 --> Oracle 11g --> Apex 4.2 --> Weblogic 10.3.4 I understood from othe