Script to Calc or formulas

Hi all

In Web forms, we have accounts in lines & years in columns... There is a calc which is fresh * tax... Fresh has years in lines... but the tax is introduced into the different webform in 1 single cell... How can I calc this value... the formulas or BR...

Webform1:*.
Lines: accounts
Cols: years

POV
Scenario: Budget
Version: work
Period: Jan

Page
Entity

Webform2:*.
Lines: tax
Period: Jan

POV
Scenario: Budget
Version: work
Cols: Fiscal 2010 - it's fixed

Page
Entity

The % of tax varies depending on the entity...

How to calc it.

Hello
If you want to point one or more variables in the setting of a fixed combination of dimension calculation, you must use dimension cross members predefined function. It's easy. Say the % tax is only available in 2010. then you call it in a formula of Member or business rule would be '% Tax'-> FY10 (or better 'tax %'-> & BudYear1 assuming & subs BudYear1 var is FY10).
Below is a good read for understand the calc script and how it works in action.
http://www.Oracle.com/education/america_eblasts/FY09/Q1/Essbase%20calculations%20visual%20approach%20Final.PDF

See you soon,.
Alp

Tags: Business Intelligence

Similar Questions

  • Convert calc script for Member MDX formula

    Hello

    I'm new to ASO cube. I need help to convert a calc a script formula MDX. Any help will be greatly appreciated. Please see the example script to calc, but I need to use a large number of dimensions within the statement of Fix.
    How to use the Fix is MDX forumla?

    Fix (@Remove (@relative("Dimension1",0), "Member1"))

    "Dimension_Acct" = "OperatingUnit'-> 'product '.

    ENDFIX

    Although you can use the function here, with the exception, it may be easier to use something like:

    Case When ISlevel([dimension].currentmember,0) and IS not ([Dimension] .currentmember, [member 1]) then

  • Script in Calc Manager

    Hi guys,.

    I asked to generate a file with information .rle in Calc Manager. Because I'm not really good at VBScript, I would like to know if it is possible to take the scripts in Calc Manager and include them in the file .rle. Will this work? Should I get a VBScript programmer to examine it?

    Please, advise.

    Thank you!

    It is a somewhat odd request that normally we are challenged to do the opposite--put an a rle file vb script in Calc Manager!
    That said, that in the Manager of calc, you script objects that can be copied and pasted directly into a file of ELA and vice versa. Other objects such as arrays, objects of calc, variable etc do not expose easily the vb script that they then validated or deployed to an application. Therefore, you have to interpret these rules yourself in VB script, while someone revisit.

    Out of curiosity, how has the obligation to take calc Manager objects in VB arise?

  • How to track what made your Script/Business Calc rule?

    Hello

    I wanted to know the methods or the best way to keep track of what made your business rule calculation Script after run you it.

    Or suppose he fails for some reason any and that the reason is not a syntax error (which she usually come in EAS during the validation) how can you know what goes wrong?

    Please let me know!
    ~ Hervé

    The CDF are available at-https://www.samplecode.oracle.com/tracker/tracking/linkid/prpl1004/action/ExecuteQuery?query=essbase1
    There's also the CDF Echo in the collection of String-

    @JechoBoth - echoes back all the arguments passed to the function. To pass an array of the arguments using @List (list by commas).
    @JechoString - echoes back all the arguments passed to the function. To pass an array of the arguments using @List (list by commas).
    @JechoDouble - echoes back all the arguments passed to the function. To pass an array of the arguments using @List (list by commas).

    Saying they generally need to be a calco block, so if you expect to find where a calc is to aggregate it won't tell you much.
    It should also beware if you are a large number of calculation blocks so that you can eventually see more info you need.

    If you look in the essbase application log, you can actually get an idea of which part of the script the calc is execution and time without the need for CDFs.
    Also if a script fails, then the application log is the place to go and check.

    You can also consult the standard controls in essbase calc

    NOTICE - the VALUE http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?set_notice.html
    "Watching the progress of your calculation by providing a notice of completion at intervals during the calculation. The number of reviews depends on the level you specify. »

    SET MSG - http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?set_msg.html
    "Sets the level of the e-mail you want returned on calculations and simulate calculations.

    or if on 11.1.2.x then the function @RETURN - http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?return.html
    "Leave the calculation immediately in specified logical conditions. You can use the FI... ELSEIF calculation block of commands to specify logical error conditions, and use the @RETURN function to exit the calculation with the custom error messages and levels. »

    See you soon

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

  • an error occurred when executing log checking script specified calc for dtls

    I get an error message occurred while execution log checking script specified calc for dtls. This occurs when users save data in the online form (there are 2 rules attached and we chose run on customer service option in the properties of the business rule) and it took 10 to 15 minutes, then a meesage gets displayed error has occurred during execution of the specified calc script.

    I ran the same Regional service console management rules, they work very well. Can someone help me with this.

    Hello

    For a long term business rule I would not recommend their execution save, they are probably timing out in planning, long runnning rules are generally best left regular, eas, launcher web or possibly from the menu of business rule in planning.
    If you want to run them from planning you should look into sending them in a background process, this can be set for some time. For more information on how to do so have a read of:-http://download.oracle.com/docs/cd/E12825_01/epm.111/hp_admin/ch02s07s06.html

    See you soon

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

  • Calc script for Member MDX formula

    Hello ASO brain trust

    I'm trying to move a member of ASO formulas calc script. Many parts of the calc script are piloted by the UDA.
    BSO

    ElseIf (@ISMBR (@UDA ("Entity", "NR_U41110")))
    "U41110"=@SUMRANGE ("R41100", @UDA ("Entity", "S_U41110"))
    + @SUMRANGE ("R41200", @UDA ("Entity", "S_U41110"))

    ASO
    IIF)
    IsUDA ([person]. CurrentMember, "[NR_U41110]"),
    Sum (CrossJoin ({"[R41100]"}, {UDA ([entity], "[S_U41110]" "")})) +.
    Sum (CrossJoin ({"[R41210]"}, {UDA ([entity], "[S_U41110]" "")}));
    0
    )


    It sounds good, but it won't scan.

    Any ideas how to get around the fact that the UDA does not work well with the cross join or the sum. Assuming that it is formatted correctly.

    Thank you

    IIF)
    IsUDA ([person]. CurrentMember, 'NR_U41110'),
    Sum (CrossJoin ({[R41100]}, {UDA ([entity], "S_U41110")})) +.
    Sum (CrossJoin ({[R41210]}, {UDA ([entity], "S_U41110")}))
    0
    )

    Try this. I removed the quotes of member names and I took the place of brackets from the values of the UDA which I guess do not belong there.

  • Execution of Scripts of Calc automation

    Hi, how we automate the calculations that are required to do so in a sequence?

    I have about 12 Calc which are dependent on each other and must be performed in a sequence (01 to 12).

    3/4 Calc are on a granular level, so few of them take some time 6-7 minutes, and we have a step of aggregation that takes 15 minutes. But outside of these, the rest take 1-2 minutes to run.

    Problem is when I use the MaxL editor in the Regional service console - using the command "run the calculation.

    Set Message level.

    Set timestamp

    coil 'Aug - 12.log';

    echo "Execute - start - calculation."

    function SIERREUR 'ErrorExit;

    run the 'Sample' calculation.' Sample '.' 01-step ';

    run the 'Sample' calculation.' Sample '.' 02-step ';

    run the 'Sample' calculation.' Sample '.' 03-step ';

    ....

    ...


    These statements-error - saying previous request is still in progress if the calculation takes more time

    For by example 01-step 2 minutes

    -It works very well and the next step is executed successfully

    02-step took 6 mins

    -then it does not perform successfully step 03 - it does not wait for the earlier execution at the end and when he tries to run the 3rd step it error saying 'previous request still pending '.



    Any help would be appreciated.



    Ankur


    If you run these MaxL (not FRO EAS) they will work in serial mode using something like:

    Call pathname...\startMaxl.bat myscript.mxl

    Where myscript.mxl has the calculation of performance in orders.

    Depending on if you want to check for codes back and forth between the steps, you could have separate MaxL scripts and call each

    Call pathname...\startMaxl.bat step_1.mxl

    Call pathname...\startMaxl.bat step_2.mxl

    Call pathname...\startMaxl.bat step_3.mxl

    Call pathname...\startMaxl.bat step_4.mxl

  • Essbase in time of accomplishment calculation script record calc

    As the last line of code in a calculation script is possible to save in the format YYYYMMDD hh runtime?  It looks like using the @TODAY and @FORMATDATE that you can capture only the year, month and day.

    I downloaded the new compiled with JRE 1.6 and tested on 11.1.2.2 jar file

    https://files.secureserver.NET/0sQfjTrGfs5z1a

    AC_Year formula @Get_Cur_Date (1);

    AC_Month formula @Get_Cur_Date (2);

    AC_Day formula @Get_Cur_Date (5);

    AC_Hour formula @Get_Cur_Date (11);

    AC_Min formula @Get_Cur_Date (12);

    AC_Sec formula @Get_Cur_Date (13).

    You have not need be updated in both places. (udf.policy)

    Concerning

    Celvin

    http://www.orahyplabs.com

  • Calc script to calc variance b/t scenarios in HFM

    I am trying to write a script that will calculate the difference between actual and budget for the current year in HFM and I can't function. I have tried with scenario on my rack and in my box POV and who does not make a difference. Here is the script I wrote, can someone please take a look and see if it's obvious what I am doing wrong? I tried until a dynamic calc and a flow of calc, the dynamic is the only one that returns data, the data just is not correct.

    Thank you!!
    Kristen

    HS. Dynamics ' a GALLONVAR_ACTBUD # = (a #GASGALLONS.» #GASGALLONS S #ACTUAL - A. (Y#2011.S#BUDGET) ".

    Many testimonies of statistics are defined Pentecost stream attribute in the account type field, which will allow them to accumulate (CDA), but not translate (as in volume accounts) if they are at a given time and do not need foreign currency, they are put in Balance. Since you mentioned "he pulls periodic when I've had ONE in my box POV", this will lead me to believe that they are defined as balance. However, your calculation may have to be more precise on different members of all of the dimensions to achieve the appropriate result, sometimes statistical accounts do not have the attribute Consolidate verified or appropriate "activate custom aggregation" flag. Check all the attributes and find where your data is, so you can precisely point to it on your statement of GetCell.

  • using script simple calc

    Need a script calc for the scenario below.

    4 dimensions with level 0 members

    Time
    ...... Jan08
    ...... Fev08
    .. .mar08
    ...... NoTime
    Market
    .. .North
    .. .South
    ..... NoMarket
    product
    .. .P1
    .. .P2
    ..... Noproduct
    measures
    .. .Number1
    .. .number2




    to copy the data of--> with the calcscript
    Jan08-North-p1-number 1-> notime-nomarket-p1-number 1
    Jan08-North-p2-1-> notime-nomarket-p2-number 1
    :
    :
    :
    1,000 records...
    :
    :
    :

    Jan08-North-p1000-number 1-> notime-nomarket-p1000-number 1

    There is a better way to express your need, I hope you're just trying to copy data from North-Jan08 to notime-> nomarket for each product/measure.

    In this case, you are looking for a simple copy of data unique in a calc script:

    DataCopy 'Jan08'-> 'from the North' to 'Notime"->"Nomarket ";

    Somehow, while it completely does exactly what you say you want, I still suspect that you do not express the need accurately.

  • Custom script to Calc for value selection drop down box

    I have a drop down called "EffectiveDate" with 12 elements (01/01/16; 16/02/01; 01/03/16...-01/12/16).  I need the number of pay periods in the year according to their effective date to fill in a field of text on the left.  Can anyone see why this custom calculation script does not work?

    var v = this.getField("EffectiveDate").value;

    If (v == ' 01/01/16') event.value = 26;

    otherwise if (v == ' 01/02/16') event.value = 24;

    else if (v == ' 01/03/16') event.value = 22;

    else if (v == ' 01/04/16') event.value = 20;

    else if (v == ' 01/05/16') event.value = 18;

    else if (v == ' 01/06/16') event.value = 16;

    else if (v == ' 07/01/16') event.value = 14;

    else if (v == ' 01/08/16') event.value = 11;

    else if (v == ' 09/01/16') event.value = 9;

    else if (v == ' 10/01/16') event.value = 7;

    else if (v == "01/11/16") event.value = 5;

    else if (v == ' 01/12/16') event.value = 3

    else event.value = "";

    * NOTE: I already use the value of exports for a different purpose, so I can't use them for that.

    If the value of exports of "01/01/16" is "1000", then replace this line in your code:

    If (v == ' 01/01/16') event.value = 26;

    With this:

    If (v == "1000") event.value = 26;

  • Simple Script to Calc custom, returning the odd value

    Hi all

    I'm not really familiar with Javascript and I'm checking here something simple.

    ----------

    Event.Value = (this.getField("Applicant_1").value + this.getField("Bonuses").value + this.getField("Commissions").value + this.getField("Dividends_Interest").value + this.getField("Net_Rental_Income").value + this.getField("OtherBefore_1").value + this.getField("OtherBefore_10").value + this.getField("OtherBefore_4").value + this.getField("OtherBefore_7").value + this.getField("Overtime").value)

    ------


    As long as I put a value in all the fields, it works very well. If I leave a field in the empty middle, my return value is really wide. By example, if I provide the value of '1' for overtime, bonuses and commissions, and leave the rest blank, my returned value will be 111.

    Any help on this would be greatly appreciated. Thank you!

    The reason for that is what happens when you get the value of an empty field, it returns an empty string. The operator '+' is used in JavaScript for digital addition and string concatenation, please make sure to ecxplicitly to convert the field value to numbers before adding them together. IF the script could be modified to:

    (function () {}

    Get the field values as numbers

    var v1 = + getField("Applicant_1").value;

    var v2 = + getField("Bonuses").value;

    var v3 = + getField("Commissions").value;

    var v4 = + getField("Dividends_Interest").value;

    V5 var = + getField("Net_Rental_Income").value;

    var V6 = + getField("OtherBefore_1").value;

    v7 var = + getField("OtherBefore_10").value;

    var V8 = + getField("OtherBefore_4").value;

    var = v9 + getField("OtherBefore_7").value;

    V10 var = + getField("Overtime").value;

    Calculate the sum

    Event.Value = v1 + v2 + v3 + v4 + v5 + v6 + v7 + v8 + v9 + v10;

    })();

  • Need help with script to Calc

    I have a requirement as below.

    If has! = #Missing AND B == missing OR C == #Missing

    To copy the last week same value from one day to the current date.

    I've written as below.

    DIFFICULTY ('FY15', 'D01')

    "Qty")

    IF (A! = #MIssing AND (B is #Missing or C == #Missing))

    "Qty" = "D07;

    )

    ENDFIX

    I have to write like that for all the permutations and combinations for all the combination date D1 to D31.

    Is there an elegant way, that everyone knows to do this using variables. Please throw some light on this for me.

    Thank you
    Vishal

    Hi Vishal,

    In this case, you should be able to do it with @PRIORand taking "Days" out of the statement to FIX.  The exact syntax depends on if the "days" are labeled as a time dimension.  If it is marked at the time, the assignment would be:

    "Qty" = @PRIOR ("quantity", 7);

    Because you don't want to cross the borders of the month I guess 'D01' through "D07" will always end up #Missing.

  • using Calc script

    Hello

    Can you please help me understand how to get the result for ACC3. Here are the numbers of different accounts for the intersections, which is used in the calc script. I am trying to understand the script below calc formulas but I don't you how is calculated the value for ACC3. Can you please help me understand how the value of the account ACC3 is "274.4529403" is derived.

    Excel output addins:

    Deviation MAIN OD 2011 08 parts_80 Platform_1Z0000 operation

    ACC1 11

    Deviation MAIN OD 2011 08 parts_80 Platform_1Z0000 operation

    ACC2 18564.81

    Deviation MAIN OD 2011 08 parts_80 Platform_1Z0000 operation

    ACC4 254.43

    After you run the following Calc script I get the value of ACC3 as mentioned below.

    Deviation MAIN OD 2011 08 parts_80 Platform_1Z0000 operation

    ACC3 274.4529403

    CALC SCRIPT

    ==========

    DIFFICULTY ((@LEVMBRS("Platform","Lev0,Platform") AND @DESCENDANTS ("Entity"))

    @LEVMBRS ("parts", "Lev0, shares")

    ('hand')

    '' Operation. ''

    "Deviation".

    "08 2011")

    "ACC1")

    PERCENTAGE = ("ACC2" / 'ACC2 "->" platform "->" parts "-->" operation '->' OD'-> 'deviation '->' main '->' 2011 08');

    IF ((ACC1 <> #MISSING) AND (ACC1 <>0))

    "ACC3" = "ACC4 '->' platform '->' pieces '->' operation '->' OD '->' deviation '->' hand '->' 08" 2011 * PERCENTAGE; "."

    ENDIF

    )

    ENDFIX

    I think the main thing that you may be missing, it is that PERCENTAGE and ACC3 formulas depend on what is at the top of the 'Platform' and 'Parts' - dimensions is what the '->' alias 'transdimensionnels operator' done in there.  So you are not showing a couple of intersections in your recovery of Excel that are in fact essential in the calculation of the value.

    PERCENTAGE is the ACC2 value to low 'Platform' and 'Parts' in percentage of the value of ACC2 at the top of the 'platform' and 'parts '.

    ACC3 is then (assuming that ACC1 is not #Missing or zero) the value of ACC3 at the top of the 'platform' and 'parties' multiplied by the PERCENTAGE.

    In plain language, the calc is spreading the value of "ACC4" from the top of the "platform" and "parties" to the bottom of these dimensions, using "ACC2" as driver and put the result in "ACC3".

  • Error: 1200416 formula to [staff] runtime error (line 0): impossible to assign [DOUBLE] objects of different length in the exercise of calcing the dimension to calculate the formula of Member

    Receive the below error message:

    Error: 1200416 formula for [AccountMemberName] (line 0) runtime error: could not assign [DOUBLE] objects of different length

    I added the following member formula to a dense account member name. {end: I created an account called S_BegBalance to contain the data for numbers codes.} For example, if S_BegBalance = 1, effective must be 1 for the whole year (January-December). If the balance S_Beg = 2, staff: Feb-district of Columbia, for S_BegBalance = 3, effective is Mar - Dec.

    Effective is a member (dense) S_BegBalance shop is also a dense Member store.

    [Please indicate why There getting worse this error? Can I take care of this with calc script only?]

    Aggregate and script to calc Calc the Member of the calc formula is:

    Fix ("FYxx", "script", "version")

    Fix (@LEVMBRS(Product,0), @LEVMBRS(Entities,0), @LEVMBRS(Region,0), @LEVMBRS(position,0))
    @DESCENDANTS ("AccountParentMember");
    ENDFIX

    DIM(Entities,Region,Position) CALC;

    ENDFIX

    Formula Member

    IF (@ISMBR ("Budget") AND @ISMBR ("1st Pass - Budget"))
    IF (@ISMBR ("FY14") AND ("S_BegBalance" == 1))
    @IDESC ("YearTotal") = "Downsizing" == 1;

    END IF

    IF (@ISMBR ("Budget") AND @ISMBR ("1st Pass - Budget"))
    IF (@ISMBR ("FY14") AND ("S_BegBalance" == 2))
    "Feb" = "Downsizing" == 1;
    'Mar' = 'Downsizing' == 1;
    @IDESC ("Q2") = "Downsizing" == 1;
    @IDESC ("Q3") = "Downsizing" == 1;
    @IDESC ("Q4") = "Downsizing" == 1;

    END IF

    ELSEIF (@ISMBR ("FY14") AND ("S_BegBalance" == 3))
    'Mar' = 'Downsizing' == 1;
    @IDESC ("Q2") = "Downsizing" == 1;
    @IDESC ("Q3") = "Downsizing" == 1;
    @IDESC ("Q4") = "Downsizing" == 1;

    ELSEIF (@ISMBR ("FY14") AND ("S_BegBalance" == 4))
    @IDESC ("Q2") = "Downsizing" == 1;
    @IDESC ("Q3") = "Downsizing" == 1;
    @IDESC ("Q4") = "Downsizing" == 1;

    ELSEIF (@ISMBR ("FY14") AND ("S_BegBalance" == 5))
    'May' = 'Membership' == 1;
    "Jun" = "Downsizing" == 1;
    @IDESC ("Q3") = "Downsizing" == 1;
    @IDESC ("Q4") = "Downsizing" == 1;

    ELSEIF (@ISMBR ("FY14") AND ("S_BegBalance" == 6))
    "Jun" = "Downsizing" == 1;
    @IDESC ("Q3") = "Downsizing" == 1;
    @IDESC ("Q4") = "Downsizing" == 1;

    ELSEIF (@ISMBR ("FY14") AND ("S_BegBalance" == 7))
    @IDESC ("Q3") = "Downsizing" == 1;
    @IDESC ("Q4") = "Downsizing" == 1;

    ELSEIF (@ISMBR ("FY14") AND ("S_BegBalance" == 8))
    "Aug" = "Downsizing" == 1;
    "Sep" = "Downsizing" == 1;
    @IDESC ("Q4") = "Downsizing" == 1;

    ELSEIF (@ISMBR ("FY14") AND ("S_BegBalance" == 9))
    "Sep" = "Downsizing" == 1;
    @IDESC ("Q4") = "Downsizing" == 1;

    ELSEIF (@ISMBR ("FY14") AND ("S_BegBalance" == 10))
    @IDESC ("Q4") = "Downsizing" == 1;

    ELSEIF (@ISMBR ("FY14") AND ("S_BegBalance" == 11))
    "Nov" = "Downsizing" == 1;
    'Dec' = 'Membership' == 1;

    ELSEIF (@ISMBR ("FY14") AND ("S_BegBalance" == 12))
    'Dec' = 'Membership' == 1;

    ENDIF

    I edited the formula to find out where is the error?

    IF (@ISMBR ("Budget") AND ("S_BegBalance" == 1) AND @ISMBR ("1st Pass - Budget") AND @ISMBR ("FY14"))
    @IDESC ("YearTotal") = "Downsizing" == 1;

    ENDIF

    IF (@ISMBR ("Budget") AND ("S_BegBalance" == 2) AND @ISMBR ("1st Pass - Budget") AND @ISMBR ("FY14"))
    @IDESC ("Q2") = "Downsizing" == 1;
    @IDESC ("Q3") = "Downsizing" == 1;
    @IDESC ("Q4") = "Downsizing" == 1;
    "Feb" = "Downsizing" == 1;
    'Mar' = 'Downsizing' == 1;

    ENDIF

    7e3ca589-4260-401d-ba03-77f60bdde99e wrote:

    I added the following member formula to a dense account member name. {end: I created an account called S_BegBalance to contain the data for numbers codes.} For example, if S_BegBalance = 1, effective must be 1 for the whole year (January-December). If the balance S_Beg = 2, staff: Feb-district of Columbia, for S_BegBalance = 3, effective is Mar - Dec.

    Effective is a member (dense) S_BegBalance shop is also a dense Member store.

    Assuming you enter value to BegBalance during Sun, we can write something like this:

    FIX (& VarYear, & VarScenario, & VarVersion)

    Fix (@LEVMBRS(Product,0), @LEVMBRS(Entities,0), @LEVMBRS(Region,0), @LEVMBRS(position,0))

    FIX(JAN:DEC)

    "Workforce".

    (

    IF ("BegBalance"-> "S_BegBalance" == 1))
    1;

    ENDIF

    )

    ENDFIX

    FIX(FEB:DEC)

    "Workforce".

    (

    IF ('BegBalance'-> 'S_BegBalance' == 2))
    1;

    ENDIF

    )

    ENDFIX

    FIX(MAR:DEC)

    "Workforce".

    (

    IF ('BegBalance'-> 'S_BegBalance' == 3))
    1;

    ENDIF

    )

    ENDFIX

    ENDFIX

    ENDFIX

    There may be many other ways of writing this is an optimized way!

Maybe you are looking for