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

Tags: Business Intelligence

Similar Questions

  • BSO - Calc Script omitting

    Hi all

    I have 15 dimensions of a cube BSO.
    Here is the structure:

    Measure - 6 (Members)
    Time - 50
    Dim1 - 120
    Dim2 - 4
    Dim2 - 4
    Dim4 - 30
    Dim5 - 10
    6 - 10
    Dim7 - 5
    Dim8 - 40
    Dim9 - 50
    Dim10 - 50000
    Dim11 - 6000
    Dim12 - 70
    Dim13 - 400000

    I have the scipt of calculation that calculates all dimensions, except two dimensions. I've got half a million records to take in the cube.

    The calcualtion fails with the error "dynamic Calc processor fails to more environmentally sound management blocks [2] during the math, please try again and incresae CalcLockBlock setting '.

    And please also suggest a better way to design (Structure Dense/Sparse) the outline of this cube. The size of the block is now 1807744 B.

    Should I go for dynamic calc for some dimensions so that the calculation will be reduced? Should I go for glass hour for dense/sparse combination structure? Is it an optimal solution for it?

    TIA

    He probably missed memory doing the restructuring...

    If the only change was to make the sparse time instead of dense, it is suspicious and I don't want to look at the log to see if something happens. If there was other changes at the same time, I'll try it again with just the change of time.

    If possible, you could extract, erase data, restructure, reload data approach. but that could take awhile.

  • BSO Calc Script 11.1

    We have migrated just some Applications to a server running on our new server running 11.1.1.3 6.54 Essbase
    We have some difficulty with some of the calculation scripts that worked in the old version - is an example below.

    Difficulty ("July")
    DATACOPY "11F' to 11 'a ';
    Endfix;

    The error indicates that Datacopy can only be used to copy an entire Partition of currency

    Did someone knows a way around this?
    Andrew

    Take a look at the layout CCTRACK .cfg - I bet he missed in your new configuration of the environment.

  • 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).

  • 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

  • Essbase calc script to determine the number of occurrence

    Hello

    is it possible within a calc script to determine the number of occurrence of a value in the account dimension?

    I have an account called ranks which can contain any value between 1 and 10.  I would like to know how many times each value is repeated for a specific cost center.  It's in a database of planning BSO.

    Thanks in advance for your contributions...

    CL

    This isn't the typical calculation you would do in an OLAP architecture, but yes it is certainly possible.

    you will need to create 10 accounts such as occurrence_of_1, occurrence_of_2 etc.

    Then you increment them according to the value of the 5th year.

    Don't forget to put in your calculation!

  • Several simultaneous calc scripts?

    Hi all:

    Everyone figured out to launch multiple simultaneous calc scripts, for example using MaxL?

    We have an application of multi-cube wherein BSO cube "A" performs calculations and aggregations and then exports data to the cube BSO 'B' to learn more (heavy expense allowances) treatment. Results in cube 'B' are then exported and loaded into a cube ASO, and then we CLEARBLOCK SUPERIOR and restructuring BSO cube "A", he prepares for the next round, which could be immediate, but for another year (each "run" is performed on a single year and sometimes change us the methods of distribution and re - run several years; other times we just the current year).

    I would like if possible perform the CLEARBLOCK cube 'A' while cube 'B' deals with allowances. Any thoughts on how to achieve this?

    Thank you!

    Hello

    Why not put separate tasks in a batch file to run separately?

    1 batch file-> perform the calculation on A Cube

    2 batch file-> export data Cube B & perform Heavy Duty allowances on Cube B

    Batch file 3-> results are exported to a Cube ASO

    4-> CLEARBLOCK controls and restructuring on A file

    Now that they are distinct from batch files, you can run your first batch file 4 while 2 Batch file runs. Just make sure you have one or the variables assigned in your calc script to pick up the value of the current year

    I hope this helps!

    Thank you

    (Please check this post useful or appropriate if this can help you)

  • 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 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.

  • Use of substitution in the calc script variables

    Hi all

    I create a calc script to recalculate my cube BSO for a given date, when I load the data in one night (for the previous day). I have a process that defines a variable substitution SELECT_DATE that load data rule uses to select the data in the source transactional system.

    However when I try to use that in my calc script it seems to like it - by script seems reasonably simple can anyonce advise on where I'm wrong or another method?

    Script:

    ESS_LOCALE English_UnitedStates.Latin1@Binary
    UPDATECALC OFF SET;
    SET CALCPARALLEL 4;

    FIX (@ALLANCESTORS (& SELECT_DATE))
    DIM CALC ({comma seperated list of all dimensions in the cube});
    ENDFIX

    @ALLANCESTORS (& SELECT_DATE);

    SET UPDATECALC

    I get the error:

    Error: 1200354 error analysis formula [statement of DIFFICULTY] (line 5): type [MEMBER] [number] ([]) in function [@ALLANCESTORS]

    & SELECT_DATE contains 21/03/2011

    If I replace it & with "21/03/2011' SELECT_DATE it checks OK.

    Please let know us, using a CALC SET begins to take too long to run quietly all night.

    Thank you

    Is it possible, that you can set the variable with quotes, for example "21/03/2011.

    See you soon

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

  • Calc scripts

    Generic question:
    I need some advice on optimization of calc script.
    How to check, this is my calculation script is timely, what is the additional scope of optimization?

    Thanks in advance.

    For a visual approach on calc scripts give a trial for:
    http://www.Oracle.com/education/america_eblasts/FY09/Q1/Essbase%20calculations%20visual%20approach%20Final.PDF

    Will post the link, if I get something for you.

  • 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

  • Need to run the Calc Script in sequence in MAXL

    Hello

    I need a idea how to run calc in sequence through Maxl scripts. My requirement is to run calc script loads after the end of the last. I try to make the method below, but some how its not working. I'd appreciate any help.

    Thank you

    login password admin on ServerName.

    spool to 'K:\test\MXLTest.log ';

    / * Calculate * /.

    run the calculation App.db.Test;

    function SIERREUR 'error ';

    run the calculation App.db.Test2;

    set the label 'error ';

    spool off;

    disconnection;

    "exit";

    Seems iferror works only with the batch/shell script. I was trying to run EAS.

Maybe you are looking for

  • Re: Satellite A300-29n - blue screen appears during installation of XP?

    Hello I'm working on windows vista and no problemsWhen I tried to put in place XP on the machine, after loading windows filesIt was written "the installation program starts windows.everything was finea blue screen appeared (a problem has been detecte

  • RS - 232 ascii data analysis

    I have a need to compare the incoming of RS-232 ascii data tables or tables for accuracy. I can generate data using the RS-232 module, but I don't know what to do with incoming data. Orders and incoming data vary. The data is a string variable. Becau

  • I would like a video card recommendation

    I am running a 2 GB NVIDIA GeForce GT 420 in a mini-tower of HPE-510 t computer.  I would like a 3 GB video card that has 2DVI, 1VGA, 1HDMI our mini-HDMI supported monitor.  Recommend you I buy is complatable with the computer I have. Thanks for any

  • MCAK Proxy settings - Amazon EC2 connectivity-

    We are facing more tide error when we try to connect with EC2 (from Discover Infrastructure-> subnets (EC2) process) The remote name could not be resolved: 'ec2.us - West - 2.amazonaws.com' Tide running on the local IP address in the laboratory and t

  • Windows embedded standard 7 toolkit

    I am currently installing windows embedded toolkit 7 on a computer that also runing the same operating system. The mother Board that I use is a GA-Z77M-D3H-MVP. The hard drive is a 500 GB. I ran the setup.exe as an administrator. I have set up the pr