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

Tags: Business Intelligence

Similar Questions

  • Using Calc script if loop

    I have a few dimensions. Accounts, time store, product, IDNO...

    When we have the elements in the factory that we incur some costs called Mill costs that cannot be referenced by store and sold day so we put in any store and nodate. At the time it is sold, they must be moved to the store and the appropriate date. We get certain costs such as NetSales for this product with IDNO (manufacturer identification No.). Can I write a script like this

    Fix (@Children "IDNO", "FactoryCosts")
    If(TotalSale<0)
    CopyData storeA-> storeB
    ENDIF
    ENDFIX
    / * IDNO contains the manufacturer for each product identification number * /.

    I also have to transfer these costs if there is a transfer of a storeA to storeB another reason any. Basically, they are returned to the company so there is a negative sale and a separate Bill is generated and it is sold in a different store. The process must be automated and I cannot hardcode it.

    I need some kind of loop so that essbase can automatically reference the data with IDNO-> storeA to IDNO-> storeB.

    Please suggest a better way to do by using or by eliminating the loop to automatically move data

    Essbase don't usually need loop statements, you perform the calculation on a data set that would look at all the stores. If you're looking at individual stores adds @levmbrs ("stores", 0) to your tax fix (assuming that the shops is the name of the Dimension)

  • 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

  • Run Calc Script using MaxL server location

    Hello!!

    I wonder if anyone has tried running Calc script stored on the server (not in the app folder) using MaxL?

    My research on run calculation led to run scripts associated to a particular application, but not on executing a script from a common repository such as the location of the server between multiple applications.

    Any help is greatly appreciated.

    It is sometimes useful, in my case, I had a unique scenario where I had 10 cubes

    Cube 1 essbase process information and then send to the DATA STORE, which then runs a set of calc (some detailed data movement)

    Cube 2 then consumes these data and processes to Cube 10.

    All scripts used in Essbase is the same. However, we had to keep all applications and maintenance was a nightmare. This RUNCALC scenario helps a lot.

    I had to create a dummy app/db to store all Calc and maintenance will be done on this one and a bat script will move those to the respective cubes. I can identify at the request

    Concerning

    Celvin Kattookaran

  • The use of AND and or in the Calc Script / business rule

    I try to use the [newish] AND/OR the parameters in a calc script and can't seem to find the right combination for my task. My current code looks like this:

    Fix ("Version_1")
    DIFFICULTY ("Outlook_3", "FY12")
    CLEARBLOCK ALL;
    ENDFIX
    DIFFICULTY ('Plan', "FY13")
    CLEARBLOCK ALL;
    ENDFIX
    ENDFIX

    I'd like to be able to do the CLEARBLOCK in one pass, combining the two internal fixes in one alone.

    Any thoughts?

    Fix ("Version_1")

    CLEARDATA 'Outlook_3'-> "FY12;
    CLEARDATA 'Plan'-> 'FY13.

    CLEARBLOCK VACUUM;

    ENDFIX;

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

  • How to operate only a calc script using ODI

    Hi John,.

    I would like to run only a calc script using ODi. Could if it you please let me know the process. Is it mentioned in your blog anywhere?

    Awaiting your response

    Thanks in advance
    Sravan

    The km - 'IKM SQL for Hyperion Essbase (DATA)' there is an option 'RUN_CALC_SCRIPT_ONLY', set to Yes and then enter the name of the calc script in "CALCULATION SCRIPT".
    It will take still a source and a target in the interface for it to run, but it will ignore the source and the target and just run the calc script, it is possible to customize the KM so it didn't need a source/target, but you should be fine with the method I proposed.

    See you soon

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

  • The use of variables in the Calc scripts and business rules

    I'm sure that there have been previous discussions on this topic, but can anyone let me know the benefits of using variables in scripts of Calc and BRs?

    Thank you
    A
    I've never used variable Calc and after reading a guide to the study, which has talked about them, I didn't really understand the benefits.

    ^ ^ ^ I use variables all the time to make difficult abstract formulas. Here is an example.

    /*     Declare variables     */
    VAR varSalaryCosts ;
    VAR varProdOHLabXXXX ;
    VAR varXXXX ;
    
    A whole bunch of code here along with very limited FIX statement and then...
    
    "Salaried Labor"
    (
         varSalaryCosts = "Salary Costs"->"No Department"->"No Category"->"Salaried" -
                             "Wage Bonus"->"No Department"->"No Category"->"Salaried" -
                             "YYYY Retention Bonus 40%"->"No Department"->"No Category"->"Salaried" -
                             "YYYY 60% Ret Bonus Accrual"->"No Department"->"No Category"->"Salaried" ;
         varProdOHLabXXXX = "Number of Employees"->"ZZZZDepartments"->"Codes"->"Salaried" +
                             "Number of Employees"->"Blah Departments"->"Codes"->"Salaried" +
                             "Number of Employees"->"Humph Departments"->"Codes"->"Salaried" +
                             "Number of Employees"->"TTTT"->"Codes"->"Salaried" ;
         "Salaried Labor" = varSalaryCosts * ("Number of Employees"->"Salaried" / varProdOHLabXXXX) ;
    )
    

    The last formula is how the formula was described to me by the owner of the company. I find it much easier to read something like:

    "Salaried Labor" = ("Salary Costs"->"No Department"->"No Category"->"Salaried" -
                             "Wage Bonus"->"No Department"->"No Category"->"Salaried" -
                             "YYYY Retention Bonus 40%"->"No Department"->"No Category"->"Salaried" -
                             "YYYY 60% Ret Bonus Accrual"->"No Department"->"No Category"->"Salaried") *
                             ("Number of Employees"->"Salaried" /
                             ("Number of Employees"->"ZZZZDepartments"->"Codes"->"Salaried" +
                             "Number of Employees"->"Blah Departments"->"Codes"->"Salaried" +
                             "Number of Employees"->"Humph Departments"->"Codes"->"Salaried" +
                             "Number of Employees"->"TTTT"->"Codes"->"Salaried")) ;
    

    I used the TABLE in a calc script really-cool-but-alas-not-invented-by-me do better than planning made the conversion of currency currency conversion in planning. (How's that for a run-on sentence?) It is one of the six blog posts that I'm trying and I will end it soon, I hope. I am now thrash mode. It doesn't have its uses and I'll try to remember to update this thread when I'm done.

    Kind regards

    Cameron Lackpour

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

  • 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

  • Calc Script Editor

    Hello

    Any knows there at - it a calc script editor. We can create via EAS, but it is too limited.

    Thank you

    Shahid

    Yes, Notepad ++ can be used.

    Check this: http://www.orahyplabs.com/2011/06/essbase-language-for-notepad.html

    Kind regards

    Santy

  • 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

  • How to get a list with calc scripts and forms from a planning application?

    Hi gurus,

    Is it possible, using SQL charly or something else, to get a list with the data forms and its calc scripts associated with the place of open one by one and their Visual verification?

    Thanks in advance

    Try looking at HSP_FORM, HSP_FORM_CALCS, HSP_OBJECT

    See you soon

    John

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

Maybe you are looking for