How to use the @accum function in the calculation script

Dear all.

I'm new in essbase - calculation script so don't know how to use the @accum function.

I want the aggregation value of child to parent

Hierarchy

Product

100 > Storage Dimensions marked as stored (marked as intentionally as I want to calculate the value using the calculation script)

100. 10 (+)

100-20 (+)

100-30 (+)

I'm trying calculation Script

100 = @Accum (@children("100"), jan: Feb);

It works when I use below

100 = @Accum("100-10",Jan:Feb);

Error:-number of Dimensions [1] does not match number of gen/lev [3] office [@Dim]

Don't know how I can roll up to an aggregate value of all the members of the child to the parent.

Error.PNGhierachy.PNG

Advertisement

you do this more difficult it must be. If you want to accumulate up to 100 then you could just make your calc

'100 '.

but that would be only 100, to make the OU any dimension would

AGG (Product);

Or better yet

AGG (Product, Market);

Tags: Business Intelligence

Similar Questions

  • Using the calculation script to write the value of the variable Substitution in a file

    Hello

    I am trying to use the calculation script to write the value of Substitution variable in a text file.
    I use the dataexport command. But it is not able to write values in the text file.

    Any help is appreciated.

    Thank you.

    MaxL would display variable. See: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/dispvarb.htm

    BTW, I mostly prefer Esscmd MaxL. I think that makes me a heretic, but I don't understand why I don't want to type more rather than less to get the same result.

    Running a calc:
    Esscmd - RUNCALC 2 calcname
    MaxL - run calculation Sample.Basic.calcname;

    To be fair, Esscmd requires a dbname appname SELECT before the RUNACALC, but it is always less striking.

    However, time is running, so I don't have too. And of course, MaxL now has many things that Esscmd doesn't like Esscmd is obsolete.

    I always use Esscmd to run scripts of calc I can actually watch the output in real time as opposed to MaxL that exports the console at the end of execution.

    Kind regards

    Cameron Lackpour

  • BlackBerry Smartphones how to use the calculator to divide the numbers

    How can I use the calculator to divide a number?

    RamsesVI wrote:

    How can I use the calculator to divide a number?

    Hi RamsesVI

    Open the calculator application and use the / symbol of division.

  • How to use the transformation script to add columns to the PK?

    I'm working on a script transformation that:
    -create a table
    -Adds the columns to the table
    -create a primary key for the table

    See the below script.
    Now, I want to add the primary key column.
    Documentation fix r: class IndexColumnUsage

    The Index of the class has a getter: getIndexColumnUsageList()
    and the list apply: applyIndexColumnUsageList

    Someone at - it an idea how to use these methods to add the column to the PK?

    I thank in advance.


    relational = model.getDesign () .getFirstOpenRelationalDesign ();
    table = relational.getTableSet () .createTable (null);
    table.setName ("TABLE");
    column = table.createColumn (null);
    column.setName ("COLUMN");
    index = table.createIndex (null);
    index.setName ("PK");
    index.setIndexState ("primary obligation");

    Hello

    If you have the column and index (both belonging to the same table) use:

    the index. Add (Column);

    to remove the column:

    the index. Remove (Column)

    Philippe

  • CDA & QTD calculation using the calculation Script

    Hello

    I named 'Periodicity' in my Essbase database, which has 3 members under the name "BAT", 'QTD' & 'CDA' dimension.
    I'm figuring "CDA" & "QTD" and I wrote following script for the calculation of the "CDA":

    DIFFICULTY)
    @GENMBRS ("VFS planning Dimension entity", 6);
    @GENMBRS ("VFS planning Dimension entity", 7);
    & CurYear,
    @LEVMBRS ("P & L", 0);
    "Local."
    "CDA",.
    "HSP_InputValue,"
    @CHILDREN (the ' scenario Dimension'),
    @CHILDREN ("Dimension" version)
    )

    "Jan" ="BAT"-> "Jan";
    "Feb" ="BAT"-> @PTD("Jan":"Feb");
    'Mar ' =' BAT'-> @PTD("Jan":"Mar");
    "Apr" ="BAT"-> @PTD("Jan":"Apr");
    "May" ="BAT"-> @PTD("Jan":"May");
    "Jun" ="BAT"-> @PTD("Jan":"Jun");
    "Jul" ="BAT"-> @PTD("Jan":"Jul");
    "Aug" ="BAT"-> @PTD("Jan":"Aug");
    "Sep" ="BAT"-> @PTD("Jan":"Sep");
    "Oct" ="BAT"-> @PTD("Jan":"Oct");
    "Nov" ="BAT"-> @PTD("Jan":"Nov");
    "Dec" ="BAT"-> @PTD("Jan":"Dec");

    ENDFIX

    However, the above script gives me following error:

    [Error: 1200354 error compiling formula [Feb] (line 22): type [MEMBER] [number] ([@PTD]) in function]

    Please help me with this calculation "CDA" & "QTD.

    Thank you and best regards,

    AK

    Yep, I missed that...
    but you can get by using the @sumrange function.

    DIFFICULTY)
    @GENMBRS ("VFS planning Dimension entity", 6);
    @GENMBRS ("VFS planning Dimension entity", 7);
    & CurYear,
    @LEVMBRS("P&L",0),
    "Local."
    "HSP_InputValue,"
    @CHILDREN (the ' scenario Dimension'),
    @CHILDREN ("Dimension" version)
    )
    datacopy mtd to CDA.

    Fix (YTD)
    "Feb"[email protected](MTD,"Jan":"Feb");
    "Mar"[email protected](MTD,"Jan":"Mar");
    "Apr"[email protected](MTD,"Jan":"Apr");
    "May"[email protected](MTD,"Jan":"May");
    "Jun"[email protected](MTD,"Jan":"Jun");
    "Jul"="@sumrange(MTD,"Jan":"Jul");
    "Aug"[email protected](MTD,"Jan":"Aug");
    "Sep"[email protected](MTD,"Jan":"Sep");
    "Oct"[email protected](MTD,"Jan":"Oct");
    "Nov"[email protected](MTD,"Jan":"Nov");
    "Dec"[email protected](MTD,"Jan":"Dec");
    endfix
    endfix

    Alternatively, you can use as follows:

    DIFFICULTY)
    @GENMBRS ("VFS planning Dimension entity", 6);
    @GENMBRS ("VFS planning Dimension entity", 7);
    & CurYear,
    @LEVMBRS("P&L",0),
    "Local."
    "HSP_InputValue,"
    @CHILDREN (the ' scenario Dimension'),
    @CHILDREN ("Dimension" version)
    )
    datacopy mtd to CDA.

    Fix (YTD)
    "Feb" = Jan + Feb-> MTD;
    "Mar" = Feb + Mar-> MTD;
    "Apr" = MAR + APR-> MTD;
    "Peut" = APR + may-> MTD;
    "Jun" = May + June-> MTD;
    "Jul" = June + July-> MTD;
    "Aug" = July + August-> MTD;
    "Sep" = August + Ms-> MTD
    "Oct" = Ms + Oct-> MTD
    "Nov" = Oct + Nov-> MTD
    'Dec' = Nov + Dec-> MTD
    endfix
    endfix

    -Krish

    Published by: Krish on August 9, 2010 16:41

  • How to make the calculation script to show 2 decimal places and stop rounding down to integers?

    Hello. First of all, thank you to those of you who have helped me create an interactive PDF file last year that worked perfectly if only integers are entered. This year, my client wants to show two decimal places in the calculations, and I'm back in this forum hoping to find the same expertise to make it happen.

    My form includes 43 fields for various monthly expenses. The sign of dollar for each field is part of the content of the form, not part of the scope of formatting. Users enter values directly in these fields, and the fields are formatted to display two decimal places. Each of these includes a the following validation script:

    Event.RC =! (event.value & & + event.value < 0);


    To the right of each of these fees, the fields are yes/no boxes ( expense Typecalled) that answer the question, "is this essential expense? The value of exports for Yes's 'essential', and the value of exports is "discretionary".


    A value entered in all areas of expenditure is directed to the field Total expenses by checking Yes or field Total discretionary spending by clicking No. two of these total fields are formatted to display two decimal places. In addition to long calculation scripts, the two totals fields include this custom validation script:

    If (event.value == "0") {event.value = util.printx ("", event.value)}

    Here's the problem: when values with two decimal places are entered in any area of expenditure, the calculation in two fields of total script rounded to the whole number closest. When 10.99 is entered in a field of expenditure and the Yes checkbox is checked, the value 10.00 is displayed in the field Total expenses . I want to display 10.99.

    For testing purposes, I inserted a new text field and did a simple calculation in choosing the fields of the somme and the values displayed correctly. The problem is definitely with the script in the two fields in total .


    I can drop the scripts of math here, but they are long and I'm not sure what the Protocol is super-long positions. I could also download the file, but I never did it and will need to understand this.

    Thank you for taking the time to read this. If you can help me, very well!

    To explicitly convert the field values for numbers, do something like this instead:

    var expense0 = + getField('monthly$.0').value,

    depenses1 = + getField('monthly$.1').value,

    etc.

  • How to create an 'if' function in a calculation script custom?

    I need to take a simple "value is the sum of" and to ensure that if a field is less than 1 then the result of the formula is equal to "0".

    For example, here is a simple "SumOf": script

    Encourage Bns.26, time Bns.26, Spec Bns.26.

    Now converted to a custom calculation script:

    event.value = ((this.getField("Time Bns.26").value) + (this.getField("Incent Bns.26").value)) + (this.getField("Spec Bns.26").value);
    

    Where the time SNB is calculated by looking at another formula of field Hours26 using a special to calculate the premium.

    I would like to add something like an 'if' function to the script so that if the Hours26 field is less than 1 then the output of the script is equal to '0 '.

    I have already tried:

    var row = this.getField("Hours26").value

    var value = 0

    If (< 1 grade) {}

    value = 0

    }

    another (rank > 0) {}

    value = ((this.getField_("temps_Bns.26").value) + (this.getField "(Incent_Bns.26").value ")) + (this.getField ("Bns.26") .value Spec);

    }

    Event.value = value

    But the error: SyntaxError: missing; before statement 7 to line 8:

    Thanks for any help.

    Bruce

    Try this:

    var row = this.getField("Hours26").value;

    var value = 0;

    If (rank< 1)="">

    value = 0;

    } else {}

    value = ((this.getField_("temps_Bns.26").value) + (this.getField "(Incent_Bns.26").value ")) + (this.getField ("Bns.26") .value Spec);

    }

    Event.value = value;

  • How to use the same script for several buttons

    Hello

    I have just started using flash if any help would be great!

    I create a blockbuster game, I have a grid of 20 buttons and I need (individually) to turn blue on red and click double click. I managed to do it with the first using this code;

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

    var click: Boolean = false;

    BN1.addEventListener (MouseEvent.CLICK, bn1click);

    function bn1click(event:MouseEvent):void {}

    clicked = true;

    var newColorTransform:ColorTransform = bn1.transform.colorTransform;

    {if (clicked)}

    newColorTransform.color = 0 x 064258;

    }

    BN1. Transform.ColorTransform = newColorTransform;

    }

    /////////////

    BN1.doubleClickEnabled = true;

    var doubleclicked:Boolean = false;

    BN1.addEventListener (MouseEvent.DOUBLE_CLICK, bn1dclick);

    function bn1dclick(event:MouseEvent):void {}

    DoubleClicked = true;

    var newColorTransform:ColorTransform = bn1.transform.colorTransform;

    {if (clicked)}

    newColorTransform.color = 0xac1e23;

    }

    BN1. Transform.ColorTransform = newColorTransform;

    }

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

    Now, I'll have trouble doing the same thing to work for the rest of the buttons, they are each named bn2, bn3 etc. They need to work individually and stay blue/red when clicked. I tried to list them as addEventListener orders but not with not a lot of success!

    Any help would be greatly appreciated, thank you!

    Tomo

    To do this is to use arrays to follow the buttons and their properties.

    var buttonList:Array = new Array (bn1, bn2, bn3);

    var clickedList:Array = new Array();

    var doubleClickedList:Array = new Array();

    Then use a loop for to assign functions and properties for each button:

    var thisMany:int = buttonList.length; This will give you the number of items in the buttonList array

    for (var i: int = 0; i

    buttonList [i] .addEventListener (MouseEvent.CLICK, btnClick); assign the function click on each button

    buttonList [i] .addEventListener (MouseEvent.DOUBLE_CLICK, btnDClick); assign the double-click function

    clickedList.push (false);  Add a value of false for each key in this table

    doubleClickedList.push (false);

    buttonList [i] .doubleClickEnabled = true; Set the property of double-tap for each button

    }

    function btnClick(event:MouseEvent):void {}

    var thisButton:int = buttonList.indexOf (event.target);  know which button has been clicked as an element in the table

    clickedList [Ceboutonselectionnel] = true;  Change the value in the table

    var newColorTransform:ColorTransform is buttonList [Ceboutonselectionnel].transform.colorTransform;.

    {if (clickedList [thisButton])}

    newColorTransform.color = 0 x 064258;

    }

    buttonList [Ceboutonselectionnel].transform.colorTransform = newColorTransform;

    }

    function btnDClick(event:MouseEvent):void {}

    var thisButton:int = buttonList.indexOf (event.target);

    doubleClickedList [Ceboutonselectionnel] = true;

    var newColorTransform:ColorTransform is buttonList [Ceboutonselectionnel].transform.colorTransform;.

    {if (doubleClickedList [thisButton])}

    newColorTransform.color = 0xac1e23;

    }

    buttonList [Ceboutonselectionnel].transform.colorTransform = newColorTransform;

    }

    Now you can have any number of buttons, just add their instance names in the table above.

  • How to use the Print Screen function?

    I've seen various descriptions of how to use the print screen function.

    It would be nice to actually tell one that works.  None have worked for me.

    [Fn] and Prt SCr does not work.

    CTRL and Prt SCr does not work.

    CTRL, Alt, and Prt SCr does not work.

    [Fn], Ctrl and Prt SCr does not work.

    If anyone knows the correct method to activate the screen capture function which would be a good thing.

    From the looks of things, HP has a big problem with this function.

    Here's a microsoft articleon the use of the screenshot function.

    This should answer your questions.

    Thanks for taking a peek.

  • How to use the node to call a library function to convert C++ source codes

    Hi all

    There are two dll name 'QMSL_WLAN_Transport.dll' and 'QCAMSL_MSVC10R.dll' and some codes c ++ to connect to the DUT. The two DLLs work together for communicaite with the DUT.

    I am confused as how to use the node to call a library function to load the 'QCAMSL_MSVC10R.dll' function as

    g_hResourceContext = QLIB_ConnectServer_UserDefinedTransport((HANDLE) USER_HANDLE,
    UserDefinedSend,
    UserDefinedReceive,
    UserDefinedFlushTxRx,
    true,
    true);
    

    It seems that 'UserDefinedReceive, UserDefinedSend, UserDefinedFlushTxRx' Processaddress?  And "UserDefinedReceive, UserDefinedSend, UserDefinedFlushTxRx"'s functions in 'QMSL_WLAN_Transport.dll '.

    UserDefinedReceive = (_UserDefinedReceive)GetProcAddress(hUDT,"UserDefinedReceive");
    UserDefinedSend = (_UserDefinedSend)GetProcAddress(hUDT,"UserDefinedSend");
    UserDefinedFlushTxRx = (_UserDefinedFlushTxRx)GetProcAddress(hUDT,"UserDefinedFlushTxRx");
    

    Attached DLLs and C++ code snippets.

    Need help.

    Thank you.

    These parameters are reminders - pointers to functions that are called by the DLL - and there is no way to duplicate this purely in LabVIEW. Search this forum for the word "recall" and you will find similar questions (for other DLLs). You will need to write your own DLL (in C, C++, etc.) that implements these functions and provides a way to transfer data to LabVIEW.

  • I use Windows 10 and use the Canon SX20 IS. How to use the function of Photo stich?

    I use Windows 10 and use the Canon SX20 IS. How to use the function of Photo stich?

    Is it possible to get the procedure to use feature stich photo?

    Will be Zoombrowser EX for windows 10 wotk?

    If any expert can guide me... that will be great.

    Hi Sat17,

    Thank you for your inquiry.

    For Windows 8 and beyond, ZoomBrowser EX has been replaced by EX. ImageBrowser

    Your software you will need to updated for Windows 10.

    You can access the software for your camera by clicking here.  Once on our site, scroll down to "Drivers and downloads", then use the drop down menu to choose "8.1 Windows" or "Windows 8.1 (x 64)".»  Your camera software has not been updated for Windows 10, but for Windows 8.1 software will run on your computer.

    To update your software, click the [Select] button to the right, then click on "How to download and install" for installation instructions.

  • How to use the scan on a 4215i function all in one printer

    How to use the function scan with this printer with windows 8. I did the installation but the scan function is not wwork

    You have the printer Officejet 4215 all-in-one?

    If so, then there is no complete features in the printer driver.  The printer is using the Windows printer drivers Update menu.  For more information on using the driver from Windows Update, click here.

    You have this printer connected via USB?  If so, then there is workaround methods to get the printer to scan, as the old software package is not available on Windows 8.  In the above linked document, scroll down to the section on how to scan with updated driver for information about how to perform these types of scans.  I hope this helps.

  • using the function - how to use the values of the input variables on the table select statement names

    Hello community, I have a problem when creating a function. The purpose of this function is to check the table of weather gave yesterday or not. We must check this on different tables on different sachems. We are creating a function with input variables.

    CREATE OR REPLACE FUNCTION IN_SCHEMA.IS_YDAYDATA_TO_TABLE

    (

    in_schema IN VARCHAR2,

    in_tablename IN VARCHAR2,

    in_datefield IN VARCHAR2,

    )

    RETURNS INTEGER

    AS

    -Declaring variables

    v_is_true INTEGER.

    BEGIN

    SELECT

    CASE

    WHEN MAX (in_datefield) = TRUNC(SYSDATE-1)

    THEN 1

    ON THE OTHER

    0

    END

    IN

    v_is_true

    Of

    in_schema.in_tablename

    ;

    RETURN v_is_true;

    END;

    /

    When creating, I got error: [error] ORA-00942 (44:19): PL/SQL: ORA-00942: table or view does not exist

    How to use the values of the input variables on the table select statement names?

    Hello

    Here's a way you can use dynamic SQL statements for this task:

    CREATE OR REPLACE FUNCTION IS_YDAYDATA_TO_TABLE

    (

    in_schema IN VARCHAR2,

    in_tablename IN VARCHAR2,

    in_datefield IN VARCHAR2,

    in_first_date DATE DEFAULT SYSDATE - 1,.

    in_last_date DATE by DEFAULT NULL

    )

    RETURNS INTEGER

    AS

    -IS_YDAYDATA_TO_TABLE returns 1 if in_schema.in_tablename.in_datefield

    -contains all the dates in the in_first_date of the range through included in_last_date

    - and it returns 0 if there is no such lines.

    -If in_last_date is omitted, the search only the data on in_first_date.

    -If in_first_date is omitted, it defaults to yesterday.

    -Time parts of the in_first_date and in_last_date are ignored.

    -Declaring variables

    sql_txt VARCHAR2 (1000);

    v_is_true INTEGER.

    BEGIN

    sql_txt: = 'SELECT COUNT (*).

    || 'FROM ' | in_schema | '.' || in_tablename

    || 'WHERE ' | in_datefield | ' > =: d1'

    || «AND» | in_datefield | '< >

    || 'AND ROWNUM = 1';

    dbms_output.put_line (sql_txt |) '= sql_txt in IS_YDAYDATA_TO_TABLE");  -For debugging

    Sql_txt EXECUTE IMMEDIATE

    IN v_is_true

    With the HELP of TRUNC (in_first_date) - d1

    TRUNC (NVL (in_last_date

    in_first_date

    )

    ) + 1                -- d2

    ;

    RETURN v_is_true;

    END is_ydaydata_to_table;

    /

    DISPLAY ERRORS

    If you must use dynamic SQL statements, put all the SQL statement in a single string variable, such as sql_txt in the example above.  In this way, you can easily see exactly what will be executed.  Comment out the call to dbms_output under test is completed.

    Try to write functions that will address not only the question that you have now, but similar questions that you may have in the future.  For example, now that interest you only to the verification of the data of yesterday, but later, you might want to check another day or range of days.  The above function combines the convenience of a function simple (looks like yesterday data if you don't tell him otherwise) with the power of a more complex function (you can use the same function to check any day or range of days).

  • How to use the NVL function in decoding?

    Hi all

    How to use the NVL function in decoding?

    SELECT Decode (Sign (sum (nvl (7), 0)-nvl (sum (5), 0)), - 1, 0, (sum (nvl (7), 0)-nvl (sum (5), 0)) QTY)

    of the double

    Thank you

    You should not do that...

    Greatest (NVL (Sum (Quantity), 0)-NVL (SUM (quantity_received), 0), 0) AS qty_arrival

    will do the same

    HTH

  • Does anyone know how to use the movement of scroller with the function of the fluid width?

    Hi all

    Does anyone know how to use the movement of scroller with the function of the fluid width?

    Thanks, Federico

    This feature is not yet implemented.

Maybe you are looking for

  • Cannot insert picture

    When I try to insert a picture into the body of an email, Thunderbird, I see it, but when it is sent the image is deleted. Is there a solution to this?

  • J5780 "open door. Close print cartridge access door. »

    I just installed a new HP 74 cartridge in my J5780 AIR. Orange flashes and the message 'close the door. Close print cartridge access door"keep scrolling in the message window. I can't find such door. When I close the half top of the machine, the ambe

  • Print spooler still crashes after that one document is printed.

    I am running Windows 7 Home Premium Service Pack 1 64-bit with 8 GB of RAM.  I have a Lexmark X 6650 printer wireless installed on it.  The problem is that I can print a document very well, and then if I try to print another document, the print spool

  • HP Pavilion dv7-3165dx

    Hello I have a HP Pavilion dv7-3165dx that no longer starts.  The screen gives me a SMART hard disk error saying: "SMART hard drive control has detected an imminent failure.  To ensure no data loss, please save the content immediately and run the sys

  • The function "save under" is blocked in Windows Media Player. Why is this and how do I get around it?

    Hello! I shot a few videos that I try to make changes to. First, in Windows Media Player, there are options to change the video as in video and equalizers settings charts.For the project that I'm working, I need to address mainly the saturation, brig