Aggregation in the Calc Script

Hello

Can we gather (with the command of the AGG) any size up to a level? For example, if we have 5 divisions in the entity dimension, and these divisions are level 2 members in the dimension, then how can we obtain values aggregated at the level of the division rather than use AGG (Entity)?

Thank you.

Try

DIFFICULTY (Jan FY10 forecast, Final,@IDESCENDANTS(Account,0), HSP_InputValue, Local)
AGG (entity);
@IDESCENDANTS (Seg01);
ENDFIX

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

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

  • 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

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

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

  • 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

  • You can use variable substitution in the Calc script.

    Hi guys,.

    I want to use variable substitution in the calculation script. I v_SECSUBAREA that my substitution variable and its value would be like C12.00 or C13.00 or C12.00, C13.00.

    But it gives me error mentioned below by checking the syntax of the calculation script.

    Error: parsing formula [statement of DIFFICULTY] (line 15) 1200315 error: invalid object type

    Calculation script:

    -----------------------------

    FIX (& v_CLEARYEAR, & v_CLEARMON)

    FIX (& v_SECSUBAREA)

    DIFFICULTY ('REPGBP', 'REPEUR', 'REPUSD', 'local', @DESCENDANTS ("DIVISION"), @LIST(&v_SECDNBENTITY), @DESCENDANTS ("SubAnalysis"),

    @DESCENDANTS ("RTNROW"), @DESCENDANTS ("RTNCOL"))

    CLEARDATA "RESUB."

    ENDFIX;

    ENDFIX;

    ENDFIX;

    Variable substitution:

    ----------------------------------

    PRCCOR_ALLv_SECSUBAREAC12.00

    Calculation script does not have C12.00 as the value for the variable substitution. If I give FY15 then Script gives me a correct syntax.

    Please help me to get this resolved.

    Thank you

    Shruti

    Hello

    Assuming that you calculate in the PRC. Database COR_ALL.

    You may set the C12.00 value in quotes like "C12.00".

    Kind regards

    Philip Hulsebosch.

  • Running only the calc script wrong using ODI

    Hi John,.

    I ran an interface that runs in a calcscript and it errored out.

    The generated SQL is sql = "" "select where (1 = 1) «»

    And the eror's unexpected token: GO to statement [select of]

    I chose the essbase database as the target and in the IKM model, I selected the only calcscript execution option

    Hello

    I said that if you want to access the file then you should be able to run an agent on the linux machine or make sure that the windows machine can see it.

    DataExport to a db table is in the documentation

    Direct export to a relational database using ODBC:
    DATAEXPORT 'DSN' "dsnName" 'tableName' "userName", "password".

    (if you need to understand how to use ODBC on linux, you will need to check if you are unsure)

    http://download.Oracle.com/docs/CD/E10530_01/doc/EPM.931/html_esb_techref/Calc/DataExport.htm

    See you soon

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

  • 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

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

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

  • assigning calc script to webform

    Hello

    I am familiar with essbase and planning but not an expert .in one of my interview I was asked a question how can we assign a calc script to the web form in the planning?

    I said no (I am aware that only business rules can be assigned to Web forms that I've worked on it).

    reporter said it's possible.


    If it is possible can you someone please let me know how.

    You can create a calculation in Essbase (planning application Essbase) script and that will appear in the planning.

    If you add the business rules in a form, the calc script will appear as CalcScript - the name of your script

    Concerning

    Celvin

    http://www.orahyplabs.com

    Please check the answers as useful/correct as appropriate

Maybe you are looking for

  • iPhone battery 5 swollen

    Noticed that there is a bulge on the screen of my iPhone the day before. I visited the Apple store in Waterloo today to help, but I got is the recommendation to pay for a new iPhone because I bought my phone more than 3 years ago. Apple "suggests" pa

  • I need to cancel a "non-approval" of an extension

    Accidentally, I said 'No' to a request to install an extension of my anti-virus (Avast free). I need to install the add-on. I tried the UN - and re - installing Avast several times, but I can't the coming add-on. I even "upgraded" Firefox (that is, d

  • Battery Equium A300D - 16 c died

    I bought this laptop about 3 years ago and the battery died recently. I tried to replace it with a battery Toshiba not fitted with the part number. This battery does not work. When I put the game in and it rebooted the laptop would make mention of th

  • Satellite M40: Accidentally inserted Memory Stick Pro Duo

    As smart as I am I have not read the sentence about the lack of support for Memory Stick Duo / Pro Duo and inserted. Is there a way to get the stick of memory in the card reader? Thanks in advance!

  • Replacing the drive HARD on Equium M50-216

    Hello I'm looking into upgrading the hard drive in my M50-216, which currently has a MK4026GAX. The player that I am most interested is the MK8032GAX. Is this a suitable replacement, that is going to work? A few questions: 1. I guess it's just a case