YTD calculation from first period until current period

Hi,
I'm trying to set the TIME dimension so that it would cover from %year%.Jan until current period.
My current syntax is:
*xdim_memberset Time = first,%set%
If current period is March, then It brings me value in January + value in March.
What I need is that it will bring me value from Jan, Feb, and March.
Can help me to identify the syntax?
Thanks in advance,
Ce Wie

Dear Go Ce Wie,
I am sorry I don't clear your question. If you need script to calculate YTD please read this example and custom its. YTD script as following:
*SELECT(%ThisYear%, "YEAR", "TIME", "[ID] = '%TIME_SET%'")
*XDIM_MemberSet Time = %ThisYear%.JAN,%ThisYear%.FEB,%ThisYear%.MAR,%ThisYear%.APR,%ThisYear%.MAY,%ThisYear%.JUN,%ThisYear%.JUL,%ThisYear%.AUG,%ThisYear%.SEP,%ThisYear%.OCT,%ThisYear%.NOV,%ThisYear%.DEC
*XDIM_MemberSet Account = xxx
*When Time.Period                         
*FOR %PeriodLoop% = JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,NOV,DEC               
*IS %PeriodLoop%                     
      *FOR ORDER_TIME %ThisMonth% = %ThisYear%.%PeriodLoop%,%ThisYear%.DEC               
      *REC(Account = YTDxxx, Time=%ThisMonth%)
      *NEXT               
*NEXT
*ENDWHEN                          
*COMMIT
Best Regards,
Wandi Sutandi

Similar Messages

  • YTD calculation from BEx is not working in Advance Analysis for OLAP/OR Office

    I have AA for OLAP based on BEx. There are YTD calculation in BEx Designer: User enters Period in variable, and in user exits, the Period Range is populated as "1 ~ UserEnteredValue" in second variable. In BEx, YTD is calculated based on the Restrictive KF for the period range, calculated in User Exit. This is working fine in BEx Analyzer, however in Advance Analysis (for OLAP OR in Ofice), the YTD value is not coming up they way it is in BEx Analyzer...
    Anybody has any clue, why??
    Thanking all of you in advance  

    Hello Sharma
    If something is working for BEx Analyzer but not for Analysis OLAP or Analysis Office then this typically (but not always) indicates an issue with the BICS (BI Consumer Services) component.
    I would suggest you contact support about this so the appropriate logs can be captured and the issue investigated by the BICS team.
    Regards
    Ian

  • YTD calculation at product level

    Hi Friends,
    Am not sure if this is the right forum to post a BW question.
    I have a requirement to calculate YTD, however the way this has to be calculated is a different.
    We have multiple products, but for each product we have different periods(start and end period), Start period is August for all products, however the end period for each product varies.
    Product     Start period     End period
    ABC          AUG               APR
    BCD          AUG               MAR
    CDE          AUG               FEB
    The requirement is that when the user runs a report, in the selection screen if he/she selects for example a period(month) as 02.
    Then the report should show  YTD calculation from AUGUST to FEB as a total.
    Also if there are any additional values beyond the end period they should be displayed  in their respective month columns.
    Please see the example below how the report out put should be.
    Product
    Month
    No entries
    YTD
    ABC
    AUG
    100
    700
    SEP
    100
    OCT
    100
    NOV
    100
    DEC
    100
    JAN
    100
    FEB
    100
    MAR
    100
    APR
    100
    MAY
    100
    JUN
    100
    JUL
    100
    BCD
    AUG
    10
    80
    SEP
    10
    OCT
    10
    NOV
    10
    DEC
    10
    JAN
    10
    FEB
    10
    MAR
    10
    APR
    10
    MAY
    10
    JUN
    0
    JUL
    0
    Can someone please let me know how to do the above?.
    I have gone thru the forum and read threads reagrding YTD, looks like this requirement is different then the standard YTD calculations. Hence posting this.
    Regards
    BN

    Hi Kumar,
    Please tell me are the start and end periods are coming as transaction values(i.e in Target) and all the months data is available or not like continuity in the months,there should be any record with jan'14 data,no feb'14 data Mar'14 data like that.
    Regards,
    Rambabu

  • Periodic values for INC/EXP accounts in YTD application (first period only)

    Greetings,
    I have a YTD application.  INC/EXP account balances are imported as YTD.
    When I choose the Periodic measure for the FIRST period of the year, BPC calculates the difference between the YTD value for the first period (which is really the priodic value for that periodic) and the YTD value for the last period of the prior year.
    The result is incorrect. For the firt period I only want BPC to use the first period's value.
    Greatly appreciate your guidance.
    Regards,
    Craig

    Hi,
    you have to update the MDX formula in the MeasureFormula table for the row such as NAME='Periodic' and isYTDapp='1' with the following formula:
    IIF(([%ACCOUNTDIM%].PROPERTIES("ACCTYPE")="LEQ" OR [%ACCOUNTDIM%].PROPERTIES("ACCTYPE")="AST") OR ([%TIMEDIM%].PROPERTIES("ISBEGINNING")="1"),[MEASURES].[YTD],[MEASURES].[YTD]-([MEASURES].[YTD],[%TIMEDIM%].LAG(1)))
    Then you have to check that you have ISBEGINNING=1 for each january member.
    regards,
    Romuald

  • Calculating average for periods between years

    Hello,
    I'm stuck with creating calc script to calculate period average. There are 12 periods (P1 to P12) and Years. For certain account member (AV Balance) I need to calculate the average of another account member (Balance) for current period and the previous one, so if account "Balance" is 100 for P1 and 200 for P2, account "AV Balance" for period P2 should be 150. That's easy. The problem is that if I need to calculate the average for period P1, the calculation must take P1 for current year and P12 for previous year, can you advice me on how to create the calc script?
    What I have at the moment (I'm very new in calc scripts) is for each period (except P1 as it has to use P12 from prior year):
    FIX (P2)
    "AV Balance"=@SUMRANGE ("Balance","P1":"P2")/2;
    ENDFIX
    FIX (P12)
    "AV Balance"=@SUMRANGE ("Balance","P11":"P12")/2;
    ENDFIX
    Kind regards
    Marcin Stawny

    My first question is are your periods in a dense dimension if so, your calculation will calculate every single block in the database. This might be better if .
    you did it as a formula using currmbrrange
    something like
    IF(@ISMbr("Jan"))
    Balance + @shift(Balance,-1,years);
    else
    @avgrange(skipmissing,Balance,@CURRMBRRANGE(Period, LEV, 0,-1,0));
    endif
    Note, I have not syntax checked this and I'm really bad at getting the correct number of parens, also you might want to put a second if statement wrapping this to only do it at level zero of periods. I would make this member dynamic and you might need to make it two pass

  • HR Form do not select any data from specific Period

    Hi All
    I am facing issues on the HR FORMS for Brazil related to the Remunaration Statement
    When I try to select any employee from a specific period (before April 2012), the system does not select any data.
    From April 2012 until the current period and I could select the data and print the Form
    I do not believe that is related to the Master data from the Employee, since it is always related to the same period, I guess it is on the HR Form configuration, retricting the period anywhere, but I could not find it
    do you know any idea on how to fix it ?
    Regards

    Hi Steve,
    In SQL Server Analysis Services, we can hide or disable hierarchy level by using
    AttributeHierarchyEnabled property, however, when this property is set to false, this level will not appear no matter if contain data or not. In your scenario, you want to hide the hierarchy level dynamically, right? As Aleksandr
    said, I am afraid there is no such a method to achieve it.
    If you have any concern about this behavior, you can submit a feedback at
    http://connect.microsoft.com/SQLServer/Feedback and hope it is resolved in the next release of service pack or product. Your feedback enables Microsoft to make software and services the best that they can be, Microsoft might consider to add this feature
    in the following release after official confirmation.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • Catch up depreciation from past period for PPA write-up

    Hi,
    What is the best practice or solution to catch up depreciation from past period for the PPA (purchase price accounting) write-up?
    We need to write up assets for 2/28/2014 now (August). Once the assets are written up and when the depreciation runs - it will be based on the new NBV. But we will be missing depreciation for the amount which the asset was written up by. How do we catch up with this depreciation?
    We tried running unplanned depreciation, but unplanned depreciation runs for the current NBV.

    HI,
    what do you mean with "We tried running unplanned depreciation, but unplanned depreciation runs for the current NBV. "?
    Regards,
    Markus

  • FSG - Need to determine the first periode value in year

    Hi
    can anyone help me please
    i need to create a column or row in FSG with the first period balance value in years
    for example of the template is:
    parameter period is Mar-12
    Amount
    Balance of Jan-12 10,000
    Balance of current period 12,000
    thanks
    Lim Johny

    Hi;
    What is EBS version?
    Please review:
         How to Create FSG Report to show a Row Only if the Balance is Debit or Credit [ID 754162.1]
         How to Create a Row Set, Column Set, or Content Set report [ID 108305.1]
         FSG Functional Troubleshooting Guide [ID 136328.1]
    Hope it helps
    Regard
    Helios

  • Logic on Period From and Period To

    Hi Experts,
    Can any one please provide sample logic on Period from and Period To.
    I have Period From and Period To dates in the selection screen. I need to write logic using Loop.
    For Example:-
    Loop/do loop for u2018period fromu2019 to u2018period tou2019.
    o     If the period is from 08/2010 to 11/2010 then we have 4 loops (08/2010, 09/2010, 10/2010, 11/2010); note the period is store as u2018YYYYMMu2019 201008.
    Regards
    Moderator message: date calculation questions = FAQ, please search before posting.
    locked by: Thomas Zloch on Sep 17, 2010 1:11 PM

    sorry but this doesnt afford any trick , just a lil bit of brain power and thinking, i suspect you are able to do that by yourself.

  • Calquarter from posting period in reporting level

    Hi Guys,
    We don't have the calquater in cube level.But in reporting
    we need to calculate the calquarter from posting period.
    My requirement is, when user enters the posting period 5 it
    should show the quarter 1 and quarter 2 values. If user
    enters posting period 7 it shoold show the qua1,qua2 and
    qua3 values.
    Can any one suggest me how we can get this?
    Helpful answers will be rewarded with full points.
    Prasad

    Hello,
    Create 4 variables (range) on Posting period for eg. qtr1 , qtr2, qtr3, qtr4 of type Customer Exit. Now Create 4 Restricted Keyfigures for the Key figure u want to display each restricted with posting period by qtr1 , qtr2, qtr3, qtr4.
    Now write the code to fill in these variables depending on the User entry value. so for eg, if user enters 5, then fill
    qtr1 with low value 001 and high value 003 of the same year as input value.
    qtr2 with low value 004 and high value 005 (input value) of the same year.
    as you dont want to show qtr 4 and qtr 5, fill them with some period for which you are sure there would be no values in the cube (may be some period in past or dummy year like 9999). You can then eliminate these columns by suppress zero value columns.
    Similarly write the logic for all 12 periods to fill corresponding Qtr1 to Qtr 4. So in report Restricted KF will show KF value resricted to corresponding Qtr
    Thanks

  • How to remove only the first .Period in a file name using CL.

    Hello!
    So, I've used code similar to this before to remove special characters.  It works for a period . as well, but, of course removes ALL periods.
    file=/Users/niles/Desktop/.test.txt; echo $file"${file//[\\.]/}"
    How do get a reult that only remove the first period . and leaves the rest?
    Thanks!!

    touch .test.txt .t.e.s.t.t.x.t
    # Test it.
    $ for FILE in .test.txt .t.e.s.t.t.x.t
    do
    echo ${FILE} `echo ${FILE} | sed -n 's/^.//p'`
    done
    .test.txt test.txt
    .t.e.s.t.t.x.t t.e.s.t.t.x.t
    # then change the filename.
    $ for FILE in .test.txt .t.e.s.t.t.x.t
    do
    mv ${FILE} `echo ${FILE} | sed -n 's/^.//p'`
    done
    $ ls -l t*
    -rw-r--r--  1 andya  501  0 Apr 23 21:32 t.e.s.t.t.x.t
    -rw-r--r--  1 andya  501  0 Apr 23 21:32 test.txt

  • Need to find test data with payments include earning from past periods

    I am new to Oracle Payroll and need to find test cases which payments include earning from past periods.
    I have an R12.1 Vision environment but cannot run Payroll due to issue with Vertex, but I do have front-end and database access.
    Wonder any Reports/ Forms I can use to locate sample data with earning from past periods?
    Thanks!

    Hi,
    You can use oracle standard form to query old processed payroll for your desired pay periods.
    Navigation is Your HRMS responsibility >View >Payroll Process Results.
    In this you need to choose payroll name,from date,to date and click find.
    for e.g. in your vision instance you can query with payroll as "Vision Monthly" from "12 2008 Calendar Month" to will be "10 2013 Calendar Month" and find the result.
    choose any of the record and view result by further click on Assignment Process button than next click on SOE Report.
    Regards,
    VISHAL DANGI
    Edited by: VISHAL DANGI on Jun 19, 2012 12:50 AM

  • Firefox MAC v30 with proxy needs authenticate"Cache Access Denied" sorry, you are not currently allowed to request: from this cache until you have authenticated

    Firefox was working perfectly before we've updated it to version 30.0. It seems that the new version does not like our Proxy setting which needs users to auth with their AD accounts.
    In the past version, Firefox will pop-up a box that allow you to type in the username and password, which works perfect. However, it does not pop-up anymore and gives me this error message.
    The following error was encountered:
    Cache Access Denied.
    Sorry, you are not currently allowed to request:
    http://www.google.com.au/url?
    from this cache until you have authenticated yourself.
    I try to manually set up the username in key chain and allow firefox to access it but Firefox seems do not access that key chain at all.
    Is anyone have the issue with the proxy which needs authenticate in Firefox30.0? Does anyone know the possible solutions?
    Many thanks!
    Shuopan
    ------------------------------------trouble shoot update-----------------------------------------
    Quite interestingly, Firefox will work for 1 minute after I am using Safari with that Auth proxy. However, if I am not touching Safari for 1 or 2 minutes, Firefox will stop working and pop up the similar error message.
    tried network.http.use-cache = false but not work
    Thanks

    Quite interestingly, Firefox will work for 1 minute after I am using Safari with that Auth proxy. However, if I am not touching Safari for 1 or 2 minutes, Firefox will stop working and pop up the similar error message.
    Thanks

  • Copy from one period to period range in Integrated Planning

    Hi ,
    Looking for help:
    Scenario:
    Copy the planned data  from one period to period range:
    From,
    Calendar Year (Varaible)=2010
    Caledar Month (Variable)=01
    Version (Variable)=XYZ
    To
    Calendar Year (Varaible)=2010
    Caledar Month (Variable)=02 to 12 (Created multi single value variable, **Interval  variable is not available in Planning Function)
    Version (Variable)=XYZ
    Used Copy in Planning Function: created 3 variables for From and 3 variables for To, created planning sequence tried to insert in the Workbook.
    VAR_NAME_1 -1 - Caledar Year variable from
    VAR_VALUE_1 - 1 - 2010
    VAR_NAME_2 - 1 - Calendar Month From
    VAR_VALUE_2 - 1 - 01
    VAR_NAME_3 - 1 - Vesion Variable From
    VAR_VALUE_3 - 1 - XYX
    VAR_NAME_4 - 1 - Caledar Year variable To
    VAR_VALUE_4 - 1 - 2010
    VAR_NAME_5 - 1 - Calendar Month To
    VAR_OPERATOR_5 - 1 - BT
    VAR_VALUE_LOW_EXT_5 - 1 - 02
    VAR_VALUE_HIGH_EXT_5 - 1 - 12
    VAR_SIGN_5 - 1 - I
    VAR_NAME_6 - 1 - Vesion Variable To
    VAR_VALUE_6 - 1 - XYZ
    Getting error message:
    Parameter VAR_Value(_EXT)_5 is missing for variable "Caledar Month To"  -
    Reading the records in period 01 but failed to generate/ write to period 02 to 12
    Please advise.
    Thanks

    Hi Deepti,
    Great.... thank you very much for your help. FOX code is working perfect,  I eliminated only  FOREACH S_KFNAM (I have only one KF in the Cube)
    Now the req. changed a little bit:
    User want to select the Cost Center- to copy data with above scenario. (CalYear, calendar month and version)
    I created a Filter - with Cost center and Controlling Area (Compounding), restricted Controlling area with Hierarchy and created Multiple single value Hierarchy Node variable for cost center.
    Created a planning sequence with the Filter and PF.
    I created a Work book for User to use this copy function (by Planning Sequence)
    SCENARIO;
    USER want to copy data in COSTCENTER:CC100000
    From: caledar year=2010, calendar month=01 and version=ABC
    To: calendar year=2010, calendar month = 02 to 12 and version=ABC
    VAR_NAME_1 1 FROM CAL YEAR
    VAR_VALUE_1 2010
    VAR_NAME_2 1 FROM CAL MONTH
    VAR_VALUE_2 1 01
    VAR_NAME_3 1 FROM VERSION
    VAR_VALUE_3 1 ABC
    VAR_NAME_4 1 TO CALYEAR
    VAR_VALUE_4 2010
    VAR_NAME_5 1 TO CALMONTH
    VAR_VALUE_LOW_EXT_5 1 02
    VAR_VALUE_HIGH_EXT_5 1 12
    VAR_NAME_6 1  TO VERSION
    VAR_VALUE_6  1 ABC
    VAR_NAME_7 1 HIERARCHY NODE VARIABLE
    VAR_VALUE_EXT_7 1 CC100000
    VAR_NODE_IOBJNM_7 1 0COSTCENTER
    Got Error:
    Please enter a valid value for 0COSTCENTER 
    Check the value"CC100000"(parameter: VAR_VALUE_EXT_7, variable ZMSV_CC)
    But reading the data and generating the data for all the cost centers.
    Issue:
    How to pass the variable values  to the Filter. Is my definition is wrong in the workbook?
    VAR_NAME_7 1 HIERARCHY NODE VARIABLE
    VAR_VALUE_EXT_7 1 CC100000
    VAR_NODE_IOBJNM_7 1 0COSTCENTER
    Thanks

  • Create Ytd measure from essbase accounts

    Hi,
    We have separate dimension for Year and Period (Month) in Essbase without Ytd member for period. In BIEE, how do we create YTD measure from existing logical column?
    Thanks,
    GT

    Hi narthan,
    According to your description, you want to select data between first day of this year and last day of previous month. If that is the case, we can achieve your goal by two ways:
    • Adding where statement to the query without using parameter like below:
    where column_name between DATEADD(yy, DATEDIFF(yy,0,getdate()), 0) and dateadd(ms,-3,DATEADD(mm, DATEDIFF(mm,0,getdate()), 0))
    • Adding two parameters named StartDate and EndDate by following steps:
    1. In Dataset Properties dialog box, in Query text box, add where statement like below, then the parameters will be created automatically
    where column_name between @StartDate and @EndDate
    2. In Design surface, expand Parameter node. Right-click @StartDate and open Parameter Properties dialog box.
    3. In Data Type drop down list, select Date/Time.
    4. In left pane, click Default Values, then select Specify Values.
    5. Click (fx) button, in Expression text box, type the following expression, then click OK to save the options.
    =DateSerial(YEAR(Today()),1,1)
    6. Right click @Enddate and set Data Type to Date/Time as step3.
    7. Repeat the options of step4 and 5 above, and type the expression like below, then click OK.
    =DateAdd("d",-(Day(today())), Today())
    For more information about Adding Parameters to Filter Reports by Date, please refer to the following document:
    http://technet.microsoft.com/en-us/library/aa337401(v=SQL.105).aspx
    If you have any questions, please feel free to let me know.
    Best Regards,
    Wendy Fu

Maybe you are looking for

  • Security error while loading pdf file in jsp in firefox?

    When i type in the following link manually in firefox as " file://///172.16.2.1/copyediting/ELS/mallet.pdf", pdf file is loaded successfully in the firefox browser. PDF file is located in remote server which is referred by IP 172.16.2.1. I've assigne

  • Half the internet links work!

    i have a big problem. im using a linksys router on my airport connection and it works fine. Well half of the time. not that the connection drop or something, but it seems to be unable to resolve some of the link i press. per instance (i can t connect

  • Problem in BAPI for FB70

    Hi all, I have used the BAPI_ACC_DOCUMENT_POST to create the customer invoice.But, when i run the program it is giving the error as    Error in document: BKPF $ DEVCLNT250    Incorrect entry in field OBJ_TYPE: BKPF i am passing the entry as OBJ_TYPE

  • How do I delete a blog?

    I have deleted all its posts etc.

  • Creative Cloud now installs 3 versions of Photoshop, any reason to keep more than one?

    After installing Creative Cloud and recent updates, I now have up to 3 versions of each program on my computer. This is perplexing. Which one should I use: Adobe Photoshop CC, Adobe Photoshop CC (64 bit) or Adobe Photoshop CC 2014 ??? Can I uninstall