Dynamic calculation of prior 2 months

Hi all
Please help me out in solving this issue
In my quuery out put will be as follows
jun07 jul07 aug07 sep07
quantity 45 50 60 70
2m Offset quantity 45 50
Issue:
for 2m offset quantity we need to take quantity value two months prior.
Example For sep07 it should display value of Jul07.
I tried eith variable offset values. but they are taking current perid and substracting 2 months.
i need dynamic calculation for every month.
thanks
srteelatha

Hi,
By Using 2 structures in the query , that means you have to take a selection in the columns area and you need to take 6 selections under this structure, you will get a chance to use the cell editor concept.Here first 2 selections will be hidden.
that means first selection for APR.
2nd selection for MAY.
3 - June
4- July
5- Aug
6- Sep
In the cell editor concept ,you can overwriet the 2nd row values of the last 4 selections .That means 2nd row's 3rd(june) column value will be overwritten with  2nd row's 1st column value(APR) &
2nd row's 4th column value(July) will be overwritten with  2nd row's 2ndt column value(May) &
2nd row's 5th column value(aug) will be overwritten with  2nd row's 3rd column value(june) &
2nd row's 6th column value(Sep) will be overwritten with  2nd row's 4th column value(July) &
With rgds,
Anil Kumar Sharma .P

Similar Messages

  • Dynamic calculation of prior perod

    Hi all
    Please help me out in solving this issue
    In my quuery out put will be as follows
                            jun07    jul07    aug07  sep07
    quantity            45            50       60     70
    2m Offset quantity                          45        50
    Issue:
    for 2m offset quantity we need to take quantity value two months prior.
    Example For sep07 it should display value of Jul07.
    I tried eith variable offset values. but they are taking current perid and substracting 2 months.
    i need dynamic calculation for every month.
    thanks
    srteelatha

    Hi ,
    how are you getting the first 4 months? Is there one variable? Which one?
    Cornelia

  • Calculating prior months using off-set and crossing to prev year

    Gurus,
    I am getting current month period based on user entered value and calculating prior month by off-setting current month by 1.
    it works fine when current month value is greater than 1. If it is 1, prior month does get evaluated as 12 of previous year.
    Example...
    If Current period is - Feb, 2008 (02/2008). previous period comes fine as Jan, 2008.
    If current period is Jan, 2008 (01/2008) perious period is unknown. (I want it to be 12/2007).
    is there way to handle this without too much coding etc?
    Regards,
    -SM

    Mayank,
    What is SAP variable for Fical Year/Period, which will have both month and year value? (I guess I need to Fiscal posting period rather than Cal month?)
    Also what is SAP variable for Quarter/Year? I need to off-set of quarter also.
    Thanks, -SM

  • Rate Lookup of prior month

    Hi experts,
    for a modified FX calculation I need the scanned month value and the corresponding FX rate. This is well handled by the LOOKUP command of Script Logic. In addition I need the prior month value and the corresponding prior month FX rate. I want to plan to achieve this by a second LOOKUP run that has this time shift by -1 period (=prior month).
    How would I code this in the Script Logic ?
    Environment: BPC 5.1, SQL Server 2005
    Any help is appreciated. Thanx.
    Regards.
    Wolfgang

    Hi Nilanjan,
    thanks for the quick response. Sorry, I have not understood what you mean exctly. Let's asuume we have a standard Rate Lookup, like the following
    *LOOKUP RATE
    *DIM ENTITY2="DEFAULT"
    *DIM SOURCECURR:INPUTCURRENCY=ENTITY.CURR
    *DIM SOURCECURR:INPUTCURRENCY="USD"
    *DIM RATE=ACCOUNT.RATETYPE
    *ENDLOOKUP
    *WHEN ACCOUNT.someproperty
    *IS "currentmonth"
    *REC(FACTOR=LOOKUP(DESTCURR1)/LOOKUP(SOURCECURR),CURRENCY="USD")
    *IS "priormonth"
    //* here I need the prior month FX rate 
    *REC(FACTOR=LOOKUP(DESTCURR1)/LOOKUP(SOURCECURR),CURRENCY="USD")
    *ENDWHEN
    where exactly do i need to place the PRIOR statement for the prior month FX rate ?
    Thanks.
    Regards.
    Wolfgang

  • Current Year & Prior Month

    Hello experts.  I tried a bunch of things, but I can't seem to get it right.  I want to get the format of my date like this: yyMM
    and have MM be the prior month.
    So, for 03/06/2015, I'd like to get this '1502'
    How can I do that?
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    >>  I want to get the format of my date like this: yyMM .. So, for 03/06/2015, [gee, is that '2015-03-06' or '2015-06-03'?? ] I'd like to get this '1502' <<
    Why did you pick the worst possible local dialect for your display in the presentation layers? Google some articles on temporal data. This is more than SQL. 
    Since SQL is a database language, we prefer to do look ups and not calculations. They can be optimized while temporal math messes up optimization. A useful idiom is a report period calendar that everyone uses so there is no way to get disagreements in the DML.
    The report period table gives a name to a range of dates that is common to the entire enterprise. 
    CREATE TABLE Something_Report_Periods
    (something_report_name CHAR(10) NOT NULL PRIMARY KEY
       CHECK (something_report_name LIKE <pattern>),
     something_report_start_date DATE NOT NULL,
     something_report_end_date DATE NOT NULL,
      CONSTRAINT date_ordering
        CHECK (something_report_start_date <= something_report_end_date),
    etc);
    These report periods can overlap or have gaps. I like the MySQL convention of using double zeroes for months and years, That is 'yyyy-mm-00' for a month within a year and 'yyyy-00-00' for the whole year. The advantages are that it will sort with the ISO-8601
    data format required by Standard SQL and it is language independent. The pattern for validation is '[12][0-9][0-9][0-9]-00-00' and '[12][0-9][0-9][0-9]-[01][0-9]-00'
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Sum prior month KF1 + KF2

    Hello,
    I am stuck in what seemed like a simple calculation...
    I have two key figures in my rows, and need to display fiscal year/month in the columns (requirements are for monthly totals across a rolling 24 months).
    As part of a bigger calculation, I need to add the following KFs and display the result in each of the 24 monthly column.
    prior month KF1 + KF2
    For example:
    Feb    = Jan KF1 + Feb KF2
    March = Feb KF1 + March KF2
    April    = March KF1 + April KF2
    ...etc.
    I have tried using RKFs and offset variables, but this just changes the months that are displayed in the columns.  Basically, I need for the value of KF1 for month X to "exist" in the following month's column.
    Help!

    Hi,
    I can see that you have a solution, but is it really working without a structure?
    I mean do you have your 2 KFs in the rows and then your CALMONTH in the drilldown accross the columns and then see
    KF1 = value for the month
    and KF2 = value for the previous month?
    please let me know because that would be new to me
    Olivier.

  • Calc Status doesn't change on Prior Months...

    After I load metadata I "consolidate all with data" for December of a given year. Once this consolidation is finished the Calc Status of Dec is "OK" but when I look at any Prior Month within the same year the Calc Status is "OK SC" It is my understanding that consolidating any given month would consolidate all prior periods within the same Scenario/Year. Is there a way to fix this so the prior periods are consolidated as well?

    It would consolidate prior months if there was some change in the data for those months. Here, you have changed metadata therefore the status is "OK SC" which means that it is calculated/consolidated but there is a System Change (SC) since the last calculation/consolidation. HFM has no way to know whether you wanted to keep the calculations according to the previous version of your rules, so it does not execute consolidation for those periods. Bare in mind that rules may change from period to period due to changes in regulation (or more generally in the client's business needs) in contrast to the reason that the system is not yet finalized, which is probably your case at hand. In this case you must manually execute the consolidation for those periods.

  • How to generate a Yearly report based on a calculation at the Month level

    Have the need to create a report as follows. Any ideas on how this can be accomplished in OBI is appreciated. I have already tried different ways but non worked for me.
    The data is stored in a table at day level as follows:
    Day Amount_A Amouont_B
    1/1/2008     100     100
    1/15/2008     200     100
    2/1/2008     100     400
    2/15/2008     300     200
    1/1/2009     100     300
    1/15/2009     100     200
    2/1/2009     200     100
    2/15/2009     400     300
    The report should be displayed at Year level. Amount_A is just the summation of Amount_A from the table at daily level rolled up to the Year level in the Time dimension. The same thing for Amount_B.
    The formula for Absolute_Error is Absolute(Amount_A - Amount_B). But the problem is that it has to be calculated at the Month level instead of Day Level. So following is the logic for Absolute_Error:
    Month     Amount_A Amount_B     Absolute_Error
    Jan-2008     300     200     100
    Feb-2008     400     600     200
    Jan-2009     200     500     300
    Feb-2009     600     400     200
    The report should be displayed as follows:
    Year Amount_A Amount_B     Absolute_Error
    2008     700     800     300
    2009     800     900     500
    Note that the calculation of Absolute_Error results in a different value if it is calculated at the Month level and summed up to Year than if it were calculated at the Day level and then summed up to Year. It is required to be based on Month level for this report.
    Is there a way to do this without having to build an aggregated fact table at the Month level?

    Hi.
    Do this:
    1. Create Amount_A and Amount_B in BMM without SUM as default aggregation rule.
    2. Now, just go to Answers and make report with three columns:
    YEAR -- EXPRESSION 1 -- EXPRESSION 2
    EXPRESSION 1 is:
    sum(Amount_A) - sum(Amount_B)
    EXPRESSION 2 is:
    sum
    abs
    sum(Amount_A by MONTH)
    sum(Amount_B by MONTH)
    My example in Answers:
    TIMES.CALENDAR_YEAR
    sum(SALES.QUANTITY_SOLD_NORMAL) - sum(SALES.AMOUNT_SOLD_NORMAL)
    sum( abs(sum(SALES.QUANTITY_SOLD_NORMAL by TIMES.CALENDAR_MONTH_DESC) - sum(SALES.AMOUNT_SOLD_NORMAL by TIMES.CALENDAR_MONTH_DESC) ) )
    This will first summarize amount A and amount B on a month level and then do a difference, after that ABS and then sum on the year level.
    This is workaround to avoid larger RPD changes.
    Regards,
    Goran O
    http://108obiee.blogspot.com/

  • Want to schedule WebI report for End date of Prior Month

    Hello Experts,
    We have WebI report created on top of Bex Query, We have key date as prompt for the report. Can we schedule the webi report for key date as last date of prior month, so if current month is February, my key date should be Jan 30 2011. I am not sure if this is possible?
    Thanks,
    Ravi

    You need to apply two FM to get the end day of the month.
    First you need to apply FM MONTHS_PLUS_DETERMINE. This will give you the date after 3 months.
                CALL FUNCTION 'MONTH_PLUS_DETERMINE'
                  EXPORTING
                    MONTHS        = 3   " << for 3 months
                    OLDDATE       = l_start_Date   " << 12/01/2007
                 IMPORTING
                   NEWDATE       = l_3_Date. " << 02/01/2008
    Then call the FM RP_LAST_DAY_OF_MONTHS . this will give you the end date of the month
      CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
        EXPORTING
          day_in            = l_3_Date  " << 02/01/2008
        IMPORTING
          last_day_of_month = l_3_Date  " < 02/29/2008
        EXCEPTIONS
          day_in_no_date    = 1
          OTHERS            = 2.
    Call both FMs again to get your another date(after 4 months).
    Regards,
    Naimesh Patel

  • How to do dynamic calculation on PDF Form

    Hi friends,
    I need to to create a invoice page using Adobe PDF dynamic Form.
    Business Requirement:-
    1. User will select predifined product, Quantity, Rate and Amount would be calculated. Tax would be calculated from the below data.
    2. I have a  tax table
        0      - 1000    2%
        1000 - 2000   5%
        3000 - 4000   7%
    Queries:-
    - how to write script to calculate Tax based on above tax table data?  How to ref. a table data?
    - how to write script keeping in mind about adding new percentage in future?
    Cheers,
    Victor

    The attached form will help you in understanding the dynamic calculations.
    Reading the table data with changes in the future..
    a) If your application is a standalone application, (means you distribute the .PDF file directly to the users instead of rendering the PDF based on request), then you may need to hard code the data inside the form itself. - In this case, if the table data changes, you need to change the PDF and re-distribute the form.
    b) If you are rendering the PDF on the fly based on the request, then you have the option of reading the data from the table (you need to do this in the parent application which is invoking the rendering process) and make it part of the input XML at the time of rendering. You need to write your code to read the XML and do the calculations for each request. - In this case, if the table data changes, PDF will get the latest information beacause the latest info is available in the input XML.
    Thanks
    Srini

  • Overage Charge for prior month on first bill

    Got my first Verizon bill today and found something interesting.  I was charged for going over my data for the prior month to the tune of $15 for a gig.  Problem is, I've only had the phone for a month and there is no prior month on my account!
    Or at least there shouldn't have been.  Looks like my billing cycle started the day after I got the phone, so all the data from setting up my phone in store was overage.  This is crap.  Anyone else notice this?

    That one day of the prior billing cycle was prorated based on the data plan you selected and divided by the number of days in the billing cycle.

  • Find Prior Month Sales Per Salesman?

    I have salesmen throughout the country. Each salesman sells in a particular state. I want to total up each salesman's invoice sales for the prior month (I will also do this for: July 2010, %Difference between July 2011/July2010, YTD 2010, YTD2011, and percent difference between YTD2010 and YTD2011)
    The tables.fields I have are:
    ARSalesRep.Name
    ARInvoice.InvoiceDate
    ARInvoice.Invoicetotal
    ARInvoice.ShipToState
    How would I construct formulas for these?

    Hi, 
    A couple of ways you can do this: 
    1)  You can group on ARInvoice.ShipToState then on {ARSalesRep.Name}. 
    2)  Create 4 formulas and drop them into the Detail section: 
    YTD 2010
    If {ARInvoice.InvoiceDate} In [Date ((Year (Today) -1), 1, 1) to DateAdd (yyyy, -1, Today)] Then
         {ARInvoice.Invoicetotal}
    Else 0;
    YTD2011
    If {ARInvoice.InvoiceDate} In [Date ((Year (Today)), 1, 1) to Today] Then
         {ARInvoice.Invoicetotal}
    Else 0;
    July 2010
    If Year ({ARInvoice.InvoiceDate}) = (Year (Today) -1) And
         Month ({ARInvoice.InvoiceDate}) = Month (Today) Then
         {ARInvoice.Invoicetotal}
    Else 0;
    July 2011
    If {ARInvoice.InvoiceDate} In MonthToDate Then
         {ARInvoice.Invoicetotal}
    Else 0;
    3)  Right-click these fields and Insert Summary.  Drop the summarized fields into the  {ARSalesRep.Name} Group Footer.  You can hide the Detail section if you don't need to see it. 
    4)  Create a formula to calcuate the YTD difference using the summarized fields. 
    The other way would be to create a Crosstab report using the same formulas.  All depends on how you want to view your data. 
    Good luck,
    Brian

  • Display Net Outstanding Invoice amt only in Cust Statement for prior month

    Hi
    Our Client has requested for the Customer Statement to include only Net Outstanding Invoice balance for prior month while showing all transactions of Invoices and Payments including fully paid transactions for the current month only.  Currently they are not able to reconcile historical payments against Invoice because lots of them are partial payments only.
    Kedalene Chong

    Hello,
    Backdating of the statement is supported in 2007 A / 2007 B versions. Displaying fully
    paid transactions for the current month only will be considered for next release.
    Thanks for the valuable feedback.

  • Financial Reporting: Current Month vs Prior Month Variance for all Entities

    Silly/Easy Question:
    How can I set up a grid in Hyperion Financial Reporting to show these columns for all entities- Current Month NIBT, Prior Month NIBT, Variance
    So, the report would look like:
    Florida Current Month, Florida Prior Month, Florida Variance...Georgia Current Month, Georgia Prior Month, Georgia Variance...Ohio Current Month, Ohio Prior Month, Ohio Variance
    All I can get it to do at present is:
    Florida Current Month, Georgia Current Month, Ohio Current Month, Florida Prior Month, Georgia Prior Month, Ohio Prior Month, etc.
    Thanks!
    Note: we have many entities, so hard coding them in the report is out.

    Update: been working with Oracle dev on this. Seems FRS cannot produce a report such as this:
    ----------Entity-----------------------------------------Entity-----------------------------------------Entity
    ----------Curr Mo - Prior Mo - Variance----------Curr Mo - Prior Mo - Variance----------Curr Mo - Prior Mo - Variance
    Account
    Account
    Account
    Account
    Account
    The data can be extracted in other layouts, but this is one we'd like to utilize for Balance Sheet Variance analysis and Tax ETR reports.

  • Why are events being deleted in my history (prior months) on iCal?

    After downloading iCloud, I've noticed that any even scheduled in prior months has been deleted.  I like to keep this info for reference points in my business.  Can someone please give me advice on how to keep all past events on my Ipad / iCal?  And how can I restore these past events onto my iPad's iCal?  They are still showing up on the iCal on my iMac, which is really confusing!  Thank you!!!!

    sorry, "I've noticed that all the event scheduled in prior months have been deleted"....

Maybe you are looking for

  • Queries for Open Sales Order Lines and Open Purchase Order Lines

    Experts, Forgive me if these have been addressed elsewhere but I can't find them.  I'd like to create two queries to use as Alerts as follows: 1.  Query of open lines in Sales Orders that are more than two weeks old 2.  Query of open lines in Purchas

  • Aspect ratio problem with original footage.

    I use a Canon mini DV camera (MD160) that shoots in widescreen, and I do all my editing in iMovie 08, all projects are Widescreen 16:9. No problems until now, but I imported footage the other day that came up squashed (pillarboxed) in 4:3 size. The t

  • Retreiving Install - Nothing happens! Mac

    Hi, I've got an issue with installing adobe reader, I had a version that made some problem for me when I wanted to fill forms and stuff through Safari, Chrome and Firefox. So I deleted the one I had on my Macbook pro and wanted to download a new one.

  • Charset in Linux???

    hi! I have some problems with special german letters like �,�,�,� and so on. I use RedHat Linux. I want to program a class which replaces these character in a String with the replaceAll function, but when i compile this class it doesn�t work! All the

  • HSE/H1 Linking Device Not Communicating

    I have a HSE/H1 linking device. It does not communicate with the NI-FBUS Interface Configuration Utility, version 3.1. I reset it in accordance with the manual, but it still did not work. This item is less than 1 year old and, as such, it is covered