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"=@sumrange(MTD,"Jan":"Feb");
"Mar"=@sumrange(MTD,"Jan":"Mar");
"Apr"=@sumrange(MTD,"Jan":"Apr");
"May"=@sumrange(MTD,"Jan":"May");
"Jun"=@sumrange(MTD,"Jan":"Jun");
"Jul"="@sumrange(MTD,"Jan":"Jul");
"Aug"=@sumrange(MTD,"Jan":"Aug");
"Sep"=@sumrange(MTD,"Jan":"Sep");
"Oct"=@sumrange(MTD,"Jan":"Oct");
"Nov"=@sumrange(MTD,"Jan":"Nov");
"Dec"=@sumrange(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

Tags: Business Intelligence

Similar Questions

  • Can I use the .jsx scripts that use with CS6 with Photoshop Elements?

    I have a series of scripts I use at work and have access to Photoshop CS6. I have Photoshop elements 12 at home and I wonder if I can use the same scripts.

    Thanks for any help!

    You can run the same scripts in ESP 12, but they can not work if they use functions is not only pse 12.

    You can test using file > Open in EPS 12 and then choose the script.

    Since 12 PES doesn't have a file > Scripts menu, but uses the file > menu instead, automation tools then you might need to modify the script (javascriptresource) to only show the menu of automation tools.

    Or save some actions which are pointing to the script (s)

  • Use the same script in different areas?

    Is it possible to use the same script in different areas?

    I had several scripts that will validate and modify the entries in the user on different areas. Since they do exactly the same thing, is it not possible to just get out the 'real' on a field script and refer to other fields to this script?

    Of course - we have a fragment of 'commonScriptObjects.xdp' that we all have

    our common methods of javascript in.  Then we add to the form and hide it.

    then use the following reference to point to the script object:

    GET A HANDLE TO THE SCRIPT OBJECT

    var commonScript =

    xfa.resolveNode ("commonScriptObjectsFrag.fragmentScript");

    CALL A JAVASCRIPT METHOD IN THE SCRIPT OBJECT

    commonScript.setupSearch ();

    Here's something else you can do to validate our mandatory fields.  We spend in

    the real to validate field and the name of the field as a text string:

    If (! commonScript.validateRequired (mainContentSubform.customerName,)

    False return 'Customer'));

    and the validateRequired method, which is in our commonScriptObject xdp

    file, looks like this:

    validate required fields

    function validateRequired (oField, fieldName) {}

    Console.println ("enter validateRequired");

    var commonScript =

    xfa.resolveNode ("commonScriptObjectsFrag.fragmentScript");

    If (commonScript.isNullValue (oField.rawValue))

    {

    xfa.host.messageBox ("Please fill out the '" + fieldName +)

    ("' field.", "Error", 3);

    xfa.host.setFocus (oField);

    Returns false;

    }

    Returns true;

    }

    Hope that helps,

    Elaine

    ocen12 [email protected]>

    29/07/2009 09:26

    Please respond to the

    [email protected]

    TO

    Amal [email protected]Schmitz >

    CC

    Object

    Use the same script in different areas?

    Is it possible to use the same script in different areas?

    I had several scripts that will validate and modify the entries in the user on

    different areas. Since they all do exactly the same thing, is not

    possible to just get out the 'real' on a field script and refer to the

    other areas of this script?

  • Permission denied error when you use the Matlab script

    I have the following simple running a Matlab script in Labview.

    K = 5;
    Matrix = randn (4,4);
    matlab.io.saveVariablesToScript ('Parameters.m', {'K', 'Matrix'})

    the last command saves the variables 'K' and 'Matrix' in the m-settings file that I can then use to load the settings 'K' and 'Matrix' to a 'Control Design and Simulation Model'.

    When I run the now from Matlab everything works fine. When I run this LabVIEW so I get the following error:

    LabVIEW: An error has occurred during execution of the script. Error message from the server?: Error using matlab.io.saveVariablesToScript
    Parameters.m: Could not open the file: permission denied.

    I use Matlab 2015 and LAbview 2015 in a 64-bit windows computer 7.

    Any help would be really appreciated.

    For those who have the same permission denied errors, I found the solution.

    I had to specify the current working directory in the matlab script (this is the directory to which you saved your LAbview VI).

    For example, if you have saved your labview vi to C:\Example_Folder

    then you must add the following command in your matlab script node before the command that causes the error

    CD (' c:/Example_Folder')

    I hope this will help.

  • import program does not process customized when you use the shell script

    Hello

    I have the pkg in that

    PROC1 without leaving param in this procedure, I call you created proc2 import and program

    Now, I call this proc1 in the shell script, here my flat program to import does not work

    Why? and I try to use CONSCUB on proc1 using 2 output param which is errbuf, retcode in the newspaper, I'm "wrong number of arguments"

    Please help me?

    Thank you

    Renon,

    Proc1 is your first program at the same time, right?

    How many parameters is defined for that?

    You can paste a screenshot of the window parameter?

    If there is no parameter, just use this:

    $FND_TOP/bin/CONCSUB $LOGIN SQLAP 'Accounts payable Manager' WAIT ' rajesh' = N SIMULTANEOUS SQLAP PROC1

    Assuming that "Renon" is a username of fnd and the program is set in the Application of accounts payable.

    See you soon

    AJ

  • 12 c: SOA deployment using the ANT script

    We seek to deploy a composite SOA 12 c using the Ant.. As a first step, we use "Ant-sca - package.xml ' to create the package and then deploy using the file" Ant-sca - deploy.xml. One of the properties required by the script is "compositeDir". When we set this value to the composite directory, we get an error composite.xml is missing. And if you change its value in the "soa" with composite directory folder, it works.

    Confirmation, as what value need to affect the property "compositeDir".

    Thank you

    compositeDir is the absolute path of the directory that contains composite.xml, then you must set the property compositeDir as baseDirectory/SOA.

    For a question related to the location of the jar file, there is a known issue already documented here: Known Issues for Oracle SOA products

    Check the details under the heading: "Oracle JDeveloper and ant control Deploy SAR files in different directories;

  • Using the shell script sql variable

    OS: Oracle Linux 5.10

    DB Oracle 11.2.0

    I have need to query the database and assign the return value to a variable of shell, but it does not work.

    create table imr_env (key varchar2(1000), value varchar2(1000) ;
    insert into imr_env values('TblspcUsagePct','90');
    commit;
    

    Here is the shell script:

    #!/bin/bash
    echo "in script"
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 ; export ORACLE_HOME
    ORACLE_SID=IMR1 ; export ORACLE_SID
    export PATH=$PATH:$ORACLE_HOME/bin
    
    pct=`sqlplus -S app/manager <<END
           set serveroutput on
           declare
              output_val number ;
           BEGIN
              select value into output_val from imr_env where key = 'TblspcUsagePct' ;
              dbms_output.put_line('output_val: ' || to_char(output_val)) ;
           END ;
           /
           exit;
    END`
    
    ## another sqlplus connection, use $pct in the where clause
    
    echo "var value is $pct"
    
    

    Here is the result:

    SQL> ./test.sh
    in script
    var value is 
    
    output_val: 90
    

    Why isn't the shell variable is populated with the value retrieved from the database?

    I need to use $pct in another query that will be storage spaces that are at least 90% full.

    I had to change to a korn shell - I couldn't get the "READ" command in shell or bash.

    But it is not only "READ" command:

    SQL > select * from IMR_ENV;

    THE KEY VALUE

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

    TblspcWarningLimit 90

    TblspcUsagePct 50

    SQL > exit

    Disconnected from the database to Oracle 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    $ cat test.sh

    VAL = $(sqlplus-S test/test)<>

    Set feedback off

    set the position

    Select (value) from imr_env, including the key to_number = "TblspcUsagePct";

    Select (value) from imr_env, including the key to_number = "TblspcWarningLimit";

    "exit";

    EXPRESSIONS OF FOLKLORE

    )

    set $VAL

    Echo $1

    Echo $2

    $./test.sh

    50

    90

    $ echo $SHELL

    / bin/bash

    $

  • Can I use the following script should set up rman DB only or non-rman configured DB

    Hello

    I need your help this following script

    recover database using backup controlfile until Cancel;

    I can only used in configured RMAN DB.

    (or)

    Can we used above usual script on database (IE. RMAN not configured the database)

    Please suggest me. Thanks in advance.

    If you use RMAN to create backup BackupSet, you use RMAN to RESTORE the database.

    Subsequently, you can use RMAN or SQLPLUS to issue the command to RECOVER the DATABASE.

    (RMAN has no clause 'using backup controlfile' because it identifies the controlfile as a backup, while sqlplus must use the following clause if the controlfile is a backup)

    Hemant K Collette

  • How not to create a partition on an essbase server without using the domain name and the port using the MXL script?

    Hi guys,.

    We know that we can create partitions on the SERVER NAME, SERVER. AREA: PORT only and ESSBASECLUSTERN founded through the Regional service CONSOLE.

    Now my question is how to do the same to CREATE or REPLACE the PARTITION script.   By default, it's get created using SERVER. AREA: PORT only.

    Here is my script that I use to create a partion.

    CREATE or REPLACE REPLICATE one PARTITION "xxxx". "' xxxx ' AREA 'xxxxxxxx' SOURCEAREA to 'xxxx '. "' XXXX ' to 'WZ00339D' AS 'xxxxx' IDENTIFIED BY 'xxxxxxx' AREA"xxxxxx ";


    Where WZ00339D is my name of essbase server.


    Put it in the script is the following.

    WARNING - 1023052 - Partition [WZ00339D:1423 Bullseye Sales] is not valid.

    But the partition is created on essbase app - database with the SERVER. AREA: port only.

    Partition part of orphaned partitions as am I try to open the partition under the name of the SERVER not only through the SERVER. Average Doman:port.

    Partition be created under title

    [WZ00339D.DOMAIN.com:1423.App.DB]-> [WZ00339D.DOMAIN.com:1423.App.DB]

    FYI, the user id used as logins are created by using domain - they are not native users.

    Please let me know how I have to have the syntax so that I can create a partition just as I help Regional service on the name of the SERVER console only.

    Let me know I can provide more information, the entire reason to use a script to create a partition is to refresh the score by a fall and create a partition.

    Roman

    I solved this problem.

    Its very simple all my code and approach was right.

    Everything I did wrong is an active directory account to create the partition and check used a native account on EAS. If you log in with the account active directory - the partition is under the name of SERVER only.

  • 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

  • I want to use the new script (filling) option in ver.14.2

    When I try to use the script to fill new option in version 14.2 the: 'Three' are grayed out.

    Is the problem the new layer I added is tranparent. In julieanne tutorial hers Kost new layer was filled with white?

    She said: create an empty layer and the layer it create filled white show?

    I hope this is a forum for a question like this

    Thank you in advance for your help

    Frank Justesen

    [email protected]

    Oh, the tree option.  Now, I know.  This option and the option of picture frame depend on your graphics card.  Here's another thread that describes the problem:

    http://forums.Adobe.com/message/6024238#6024238

  • Using the event Script to load the Excel model data for users

    Hello

    Whoever did this in the FDM 11.1.2.1.

    We want to exploit the event Script to load the data validated MDF for a standard template so that users can make some adjustments and then load the same data through the FDM? Is there a better alternative. Basically, trying to avoid making adjs data forms in HFM in view of the number of columns that we have and validations for each line required with adjustments.

    Thank you

    PM

    Hello

    google + Administrator's Guide.

    It's just a matter of thought in the solution:

    -Runs a SQL query to export data from table (TDATASEG). You can filter the query by LOADID

    -Write csv file records

  • Select and use the advanced Script data

    Hello

    I developed a script that determines the data but to automate the process more far, I need help with a strategy to select the starting point for packaging data.  I mean, is that I have a piece of raw data that say has 2 events, EV1 and EV2.

    Sometimes, when the data are acquired EV1 is performed first EV2 is performed, sometimes that ev2 is performed first and then EV1 is made, after the acquisition also sometimes only EV1 and EV2.

    I developed a script that processes my data but I have to compensate for a physical value in my script manual then the 'FIND()' function begins to look in the right place.

    I want to do is to have my script request to the user where the script should be considered a starting point for the script or if the part of the script is executed at all.

    Here's how I'm compensating the FIND()

    CtrlTimeVals (i) = Find ("Ch (L2)" > = R1 ', CtrlTimeVals(i-1) + 3537 ")

    RespTimeVals (i) = Find ("Ch (L4)" > = R2 ", RespTimeVals (i - 1) + 35400")

    I use DIAdem 2011


  • Anyone who uses the XcodeLegacy script?

    Anyone using this script XcodeLegacy to compile projects from older versions of Xcode?

    Devernay/xcodelegacy · GitHub

    I am trying to compile the plugins of sample of Illustrator CS6 SDK with Xcode 5.1.1 with an end 2012 running Yosemite 10.10.3 iMac and have run into a wall because Carbon.h is no longer present. I installed the script XcodeLegacy in Xcode 4 a couple of years ago to recompile a plugin CS3 with very slight modifications, and it failed miserably, so not hesitate to try again if there is a simpler solution.

    Anyone care to share your thoughts on this? Thanks in advance...

    Rick

    Change the path of the header

    Add "${SDKROOT}" for the beginning of "/ Developer/header/FlatCarbon.

    It should look like at ${SDKROOT} / developer/Headers/FlatCarbon

  • File close using the prompt script message

    Hi Experts,

    I would like to end my active docment wirthout forcefully save it.

    When I close it manually then it prompts a message:

    Save the changes to the Adobe InDesign "Abc.indd" document before closing?

    Don't Save                                                                    Cancel          Save

    I push button Don't Save and close file.

    I want to make this process using script.

    I use

    indesign #target

    var myDocument = app.activeDocument;

    myDocument.close (1852776480);

    where 1852776480 corresponds to ' save the Option-No ' value.

    But he did not close my active document.

    How do I close it?

    Thank you.

    Hi Joy,.

    I hope it's your expectations:

    app.activeDocument.close(SaveOptions.no)
    

    Thank you

    Beginner_X

Maybe you are looking for