Calc Script problem.

Hello, I have a requirement but do not know what exact command/function should I use to achieve this task.

Nice Rolling Forecast/actual spending requirement, but it should be remaining budget figures instead of actual expenditures for the period where the actual numbers are not generated.

Task: for a member of the time, 'Oct - Sep', FY10, real. OCT to dec should be real FY10. + Jan to [ACTMTH] which is the month, until we have actual FY11 (Jun) + [BUDMTH] numbers in MS, which means, the month that we donot have actuals (Jul) up to seven.

It's the one I thought it would work, but SUMRANGE does not accept 2 parameters before the period range.

FIX (& PRIORYR, 'Real')
"Oct-Sep"=@SUMRANGE("Actual","Oct":"Dec") + @SUMRANGE ("Real", & CURYR, "Jan": [ACTMTH]) + @SUMRANGE ('Budget', & CURYR, [BUDMTH]: MS).
ENDFIX


Please suggest if there is any other command/function that I can use to achieve this. I have 2 DURATION invites in that this calc should be good all year round for what ever periods we get real numbers.

Formula: *.
@SUMRANGE (mbrName [, XrangeList]) *.

You can use the crossbar instead of mbrname here...

Ex:
*@SUMRANGE (FY11-> Actual, Jan: [ACTMTH]) *.

Try this code below...

Fix (& PRIORYR, "Actual")
+"Oct-Sep"=@SUMRANGE ("Actual", Oct:DEC) + @SUMRANGE(FY11->Actual,Jan:[ACTMTH]) + @SUMRANGE (FY11-> Budget, [BUDMTH]: MS) +.
ENDFIX

Please let me know once you have checked...

Published by: Adrian on July 26, 2011 17:50

Published by: Adrian on July 26, 2011 17:54

Tags: Business Intelligence

Similar Questions

  • If I run the calc script to aggregate a BSO cube, it blocks and release each block in a few seconds?

    Hello

    If I run the calc script to aggregate a BSO cube, it blocks and release each block in a few seconds? Or is it keep held locked blocks even after aggregation for this block is over?

    For example if I correct sparse dimensions Forecast, FY15, dec.  and my accounts dimension is only dense, after calc has my senior level members in the accounts, it it will issue after updating (i.e. in fractions of seconds) or is agg keep it held in a lock?

    I ask because I want to run scripts tot., but there is the update of our cube users.  I never had a problem to start agg, while users are updating.  But maybe I am lucky.  If a user updates a closed block, they will receive an error message that I think.  They may try to update again after a few seconds, I hope.

    Thank you.

    Locking behavior for BSO Essbase is described in the database administrator's Guide: http://docs.oracle.com/cd/E57185_01/epm.1112/essbase_db/dstinteg.html

    It is certainly theoretically possible that a user can obtain a lock because of a calc, although I can't say I saw him be a problem in real-world applications (perhaps because access uncommitted is the default).

  • BSO - Calc Script - improve an addition

    Hello

    I have a little problem with my calc script. I want a dynamic script with variables and not explaining each step.

    I want to calculate the EURO currency values.

    Fix ("March")

    'Euro')

    IF (@ISUDA ("Accounts", "AR"))

    IF (@ISUDA ("Entity", "heart")) 'Euro ' is' EUR '.

    ElseIf (@ISUDA ("Entity", "cAED")) 'Euro' = ("AED"-> "January", "AED"-> "February" + "AED"-> "Market") * "AED"-> "Average_Rate"-("euros"-> "Janvier" + "Euro"->"février");

    I want to make the variables of the month as AED-> 'January': 'currmonth'.

    I tried that, but it did not work.

    How to calculate is how: periodical EUR = (YTD(April-LC)*April-FX-Rate)-YTD(March-EUR)

    Can some help me with a Board?

    Thank you very much

    Ben

    Look in the function @SUMRANGE in the Ref of the Essbase Tech, I think this should do what you ask for.

    Oracle Essbase Technical Reference

    Robert

  • Facing the question in calc script while trip data for the current year to the previous year

    Hi all

    Need your serious help in my calc script.

    I am writing a calc script to transfer data from order book of FY15 Q1 to Q4 FY14 here is the problem in my script. If spin this script to copy the same year, it works fine but when trying to load between two different years, it does not work. could someone help me please. where miss me the logic. Thanks for the help in advance.

    Here's the script:

    ESS_LOCALE English_UnitedStates.Latin1@Binary

    SET AGGMISSG

    DIFFICULTY (@List ("real GL", "Real ML", "ACT", & ActualLoadYrBklg))

    () "Dec / (Inc.) in suffering.

    IF (@Ismbr ("Q4"))

    "Dec / (Inc.) in suffering (Non - di) =.

    -1 * (("Q1"-> "starting Backlog",-1,@Relative("Years",0)) @Prior - ' count backward (Non - di) ");

    "DENTE change overdue =.

    -1 * (@Prior ("Q1"-> "Cost",-1, @Relative("Years",0))-"Cost of rear" rear);

    Else if (@IsMbr ("Q1": "Q3"))

    "Dec / (Inc) order book ' =-1 * (@Prior ('Rear start',-1, @Relative("YearTotal",0))-" starting back (Non - di) "");

    'Change of GEAR wheels in suffering' =-1 * (@Prior ("backward Cost",-1,@Relative("YearTotal",0)) - "money back");

    endif ;)

    endfix

    SM.

    My first question is what is the order of members in your dimension years and quarter the level low your dimension of periods? Secondly, what dimensions are rare and dense (can you tell me which members in the calc are in dense and sparse dimensions)

    Third, you cite the specific years FY15 and FY14, I suppose that & ActYearBklg is FY15 assuming this is correct, I would add a substitution variable for & PriorYrBklg with FY14 inside (if I'm back, and then modify the variables) for clarity, I'm going to hardcode the values in the Calc. It also assumes years is sparse

    You can try this

    FIX ("GL 'real 'real ML", "ACT", "FY15") / * you need not @list * /.

    () "Dec / (Inc.) in suffering.

    IF (@Ismbr ("Q4"))

    "Dec / (Inc.) in suffering (Non - di)"-> "FY14 =.

    -1 * ("Q1'-> 'backlog begins' - 'Start rear (Non - di)'->"FY14");

    "DENTE change orders"-> "FY14 =.

    -1 * ("Q1"-> "Of back - cost"Back cost"-> FY14");

    Else if (@IsMbr ("Q1": "Q3"))

    ("Dec / (Inc) order book"-> "FY14' =-1 * beginning backlog->"FY14'-'Begins the backlog (Non - di)');

    'Change of CMV in the order book "->" FY14' =-1 * ('Back cost'-'Back cost'-> "FY14");

    endif ;)

    endfix

    The years may be replaced by the subvars

  • Help with pointing to the ATTRIBUTES - Calc Script

    Hi all

    I have a question about pointing to the attributes in the calc script:

    I want to calculate members (level 0) associated with the attribute 'A', but their parent attribute must be tied to the attribute 'B '.

    So if my Sun structure looks like:

    LVL 1: mbr 1 (ATTR = 'B')

    LVL 0: mbr 2 (ATTR = 'A')

    0:MBR lvl 3 (ATTR = 'C')

    lvl1: mbr 4 (ATTR = "D")

    0:MBR lvl 5 (ATTR = 'A')

    0:MBR lvl 6 (ATTR = 'A')

    According to the above example, the calculated member list should be: "mbr 2.

    I don't know how to do in my script to the PARENT of the CURRMBR its attribute is equal to "B."

    The problem is oriented to the PARENT attribute with the IF statement while you run level 0.

    I also tried to FIX it, but it was not effective, you can not write FIX (@CHILDREN (@ATTRIBUTE ('B'))).

    I'll be happy if someone could share their ideas,

    Thank you

    Really?  Documentation (which I corrected not always, I admit) indicates that the parameter mbrList can be 'a comma-delimited list of members grouped together using @LIST or set function member (for example @DESCENDANTS) that returns a list of members.'.

    I created an additional attribute of 'MarketSize' with 'GRL' and 'Sml' members in Sample.Basic, then labeled 'East' and 'Central' as "LRG" and found that it works very well:

    DIFFICULTY (@EXPAND ("@CHILDREN", @ATTRIBUTE ("Lrg")))

    "Sales" = 999;

    ENDFIX

  • Calc script gives parameters

    Hi gurus

    I'm a new user, but I hope to be helpful... I am tring to sign a script calc ODI form and I had a problem like

    Essbase Error (1030214): [odiuser] user cannot access calc script: < NAME OF THE CALC SCRIPT >

    Anyone know if there are some grants to set and where? or how to fix?

    Thank you very much

    If I remerber properly, through EAS console-Essbase Server-> Security >->

    Published by: David THE on 9 July. 2012 10:47

  • confusion of Calc scripts

    Hi, I have to convert a financial model to Excel at Hyperion, but I am facing difficulties. I made the request, but some members of my hierarchy, that I can not use the member formulas so I said to use business rules and scripts calc etc, I just need advice on how to go about this:

    I have a member "Average AFS debt securities" in my accounts dimension which must be an average of another Member "AFS debt securities" in the years FY04 - AFA 08. The requirement is that for the year FY05 the Member in question must be an average of "AFS debt securities" FY04 and FY05. Like this

    Average securities AFS (FY05) average = [AFS (FY04) debt securities: debt of AFS (FY05)]
    Similarly for FY06 average would be FY05 and FY06 and so on until AFA 08.

    Its the first time I use calc script and I'm desperate for IT/computers/all digital = S but I have to do this so any help is welcome!

    Kind regards
    Noreen

    It seems that you really need someone to help you!

    This should help you with your current problem:

    DIFFICULTY (FY04:FY08, etc.)
    'Average of Member' = @AVGRANGE (SKIPNONE,"Member",@CURRMBRRANGE ("Year", LEV, 0, -1, 0));
    ENDFIX

  • Export of the metadata of Essbase via the Calc Scripts

    Hi guys,.

    Here's my problem,

    We try to export essbase cube intersections in a flat file (so that it can be used by SUN)

    )

    We have developed a calc script to export an intersection to a flat file, but the flatfile is written only to the location of the essbase server.

    But we need this flat file to immerse in an another server (SUN Server), so what would you suggest is the best way to do this on a regular basis (monthly) and huge amounts of data.


    PS: Someone suggested me to use a windows batch file to move the flatfile, but I have no idea how to do that.


    Any help would be really appreciated...

    Thanks in advance
    Arun

    Metadata? You mean, right? DATAEXPORT is only going to write the numbers, not of dimensionality.

    I did deal with this issue, so - DATAEXPORT wrote only the box to Essbase. You can try pointing to mapped drives, but it has not worked for me.

    Why not put together a script MaxL who runs the calc script (standard stuff so far) and then either the caller script in cmd OS either copy it to another location (if on Windows, see COPY) or use the MaxL shell command to launch a shell of the operating system and make the copy?

    Another solution would be to set up a routine watcher file FTP'd the file off the drive, then did a deletion of the exported file. You may have to wait five minutes, but that shouldn't be a big problem in Informatica. In fact, I bet that informatica can do 99% of it.

    Finally, another approach would be to write that all at a table and just picking up here.<--This is="" probably="" the="" easiest="" and="" if="" you="" think="" about="" it,="" what="" informatica="" was="" meant="" for;="" no="" more="" messy="" files="" to="" worry="" about="" and="" it's="" sql="" all="" the="" way.="" i="" would="" do="" a="" truncate="" after="" it="" read="" the="" table="" as="" dataexport="" has="" a="" habit="" of="" concatenating="">

    Kind regards

    Cameron Lackpour

  • My db Essbase corrupt when I complete the calc script why?

    Hi all

    I had the problem with essbase db... It is corrupting data when I closing all running calc script.
    So that whenever I m taking back for that...
    Please let me know how to avoid this... and why it is corrupt?
    Is something wrong with my Essbase?

    Kind regards
    Katia

    If by "corrupt" you mean that essbase breaks down and you can't restart the db so yes it's unusual and something is wrong with the environment. However, if you mean that the data is not the same as it was before you start the script, then no, there is nothing wrong. Essbase is not a restoration have this cancellation, the calc script processed until you killed it.

    Dave

  • Calc script double consideration for some members

    Hello guys,.

    I have the following script calc that works
    great for a couple of hundred members, but
    for two of them the calc script
    duplicate values.
    I'm looking at him for a while but can't
    find a reason. any suggestions?

    Fix (@relative(Accounts,0), @RELATIVE(Periods,0),
    Final, Local, @RELATIVE (CostCentres, 0), @RELATIVE(Regions, 0))

    CLEARDATA ValueCalc;



    ValueCalc
    (
    IF ((ValueInputMonth! = 0) AND (ValueInputMonth! = #MISSING))
    ValueInputMonth;
    ElseIf (@ISMBR (P109, P108) OR @ISMBR (@IDESCENDANTS ("BL")) OR @ISMBR (@IDESCENDANTS ("Staff")))
    ValueInputYTD;
    ELSEIF (ValueInputYTD <>0)
    ValueInputYTD - @PRIORS (SKIPNONE, ValueInputYTD);
    ENDIF;
    );
    ENDFIX;

    Metalray,

    to what size you get this problem? and how many no members are there in this size.

  • Question of design - approach of calc scripts organization

    Nice day!

    I'm a "application design" that must run series of similar calculations.
    My calc script uses variables substitution as calculation "settings".
    I have run this script several times, each time changing the values of the substitution variables.

    To do this, I created a script maxl containing blocks like this:
    ...
    change the BSO_ACCT database. BSO_ACCT set the variable ACCOUNT_NR ' "610120" ";
    change the BSO_ACCT database. BSO_ACCT set the CUSTOMER_NR variable ""40502;"
    run the calculation BSO_ACCT. BSO_ACCT.cust_act;
    ...

    The problem - whenever a new customer is added, I should update my maxl script.
    Y at - there a better idea? How can I automatically get a subset of the Customer dimension and run my script calc for this subset?

    Your suggestions are greatly appreciated!

    Best regards
    Alex

    There are two ways of dio,
    You can send the script as a string calc using esbCalc http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_api/api_vb/mavb/funcs/mavfcalc.htm
    You can put the calcscript in a file and use EsbCalcFile http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_api/api_vb/mavb/funcs/mavfcalf.htm

    I usually use it as read a prototype calc script on the server by using EsbGetObject http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_api/api_vb/mavb/funcs/mavfgobj.htm
    I then change the chips I put it in the script (I use a ~ as ~ account and replace ~ account with my member name) and run the script. Works very well

  • Update a UDA at a member of the main lines of the Calc script?

    Happy new year everyone!

    Is it possible to update a UDA at a member of the main lines of the Calc script? There is a custom for that function?

    We want to check the data, and then update UDA based on what is our data.

    Thank you.

    Not that I know, and it is not possible to write one, since you probably can't restructure with the running calculation (chickens and eggs).

    More likely, you will need to do a multi-step process; export the members that you want to set up a file via DATAEXPORT conditions or report designer, and then use this output to feed in an accumulation of dimension with an appropriate load rule.

    Or write a Java API to fully customized program.

    I'm also curious about the driving condition, as it is a rather unusual request.

  • Manager where do Calc scripts are stored?

    Hello

    I had a planning application that I want to rename.

    So, after you copy the old to the new, I deleted the old,

    Unfortunately, I forgot to save my work at calc Manager.

    I realized that after I get an error in the workspace

    Calc Manager: failed to process the request.

    The session is not authenticated.

    But when I go to GestionnaireCalc, the application is missing.

    Can you help me looking for my Bishop calc scripts where they still exist?


    Thank you

    Nikos

    Manager of calculation rules are stored in the table CALCMGRRULES of the RDM and BODY field if the type is a BLOB.

    If the rules have been made to the planning application, they will be also in the HSP_CALC_MGR_RULES table and field BODY which will take place in XML format.

    See you soon

    John

  • Calc scripts MDX on ASO is 20 x slower than calc on OSB?

    Is it true that calc scripts MDX on ASO's 20 x slower than calc on OSB?

    Our consultants Essbase dear wrote in their e-mail and training documents. I've never heard of this.

    Built a cube BSO staging area, loads all data source BSO. Run BSO Calc staging cube before exporting the level zero to ASO.  Is this crazy?

    Thank you.

    STOP THINKING LOT

    I agree with most of the responses seen above and actually works to understand that the ASO procedural process Calc uses during execution of their work.  This will help us all understand what kind of scripts will be quick and that are frighteningly slow.

    But, my first suggestion seeing most of the manuscripts I am presented with is: why are you using a calc script at all?  Calc scripts are often used when there is no higher level subtotals.  Well, they are always available to ASO.  The way I see it is calc scripts are really necessary when new data of level 0 must be generated and rolled up.  Or in the simple case of copies of data.

    Currency conversion is where they are most often used.  I can't convert each of the 5mm values that contribute to a higher level of $100 mm in order to convert $100 to 91,882,223 euros.  And, often copies of data are not really necessary, especially "real."  Conceivably contours where the plans and forecasts are dynamically seeded with latest figures real or actual same prerequisite.

    So look hard at your old practices first and Rob it of your scripts, anything that can be written as a successful formula of Member.  If nothing else the code remaining will most likely run faster.

    Note: Calc script processing involves the internal tree in which each dat file is organized.  I encourage anyone with an overview of this structure to communicate with me and maybe we can share observations.

  • Dataexport to Essbase Calc script format

    Hello

    We try to write a calc script to export the data from the BSO cube to flat file. We want all the dimensions (currents and Sparse) online and the data in the column. Currently, we have tried all the different options of DataExport but we continue Dense members in columns. Is it possible to get the flat file in the following format?

    Outside dimensions:

    (Dense) account

    (Dense) period

    Company (rare)

    Year (rare)

    File format: (order of dimension is not important for us)

    Company, year, time, account, given

    K1, FY15, Oct, sales, 123

    Please suggest. Appreciate all the help.

    Thank you

    The only way I know to do would be to add a single dense dimension member (let's call it data) can make your dataexportcolumnheader if you can not change your existing cube, and then make a copy of it, add the dimension to export for the first cube in column format and use a load to load into the second cube rule. then you can do the dataexport

Maybe you are looking for