IF... COPYDATA... CLEARDATA... ENDIF

HI - trying to find with this calc script correctly.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DIFFICULTY ("Amount Adeath", "S-2055", "T-22300", "VersionC", "FY10", "PLT", 'Studio Output Deal', 'AY08', 'AY09')

"W1 - PR"
(
IF (@ismbr (JAN:MAR))
APRIL = MAR;
CLEARDATA MAR;
ENDIF
)
ENDFIX
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The problem is in the CLEARDATA part. I want the clear MAR script with the same parameters as in the CORRECTION and include "W1 - PR". The error message indicates missing an operator after the CLEARDATA, but I don't see what the problem is.

I don't know what is for the @ISMBR test against months as you would a fixed assignment.

You might want to try:
Fix ("W1 - PR") / * Yes, a FIX on what I think is a dense - same number of crosses of the db, so no worries * /.
"Mar" = "February";
ENDFIX

If it works, then put in the "Feb" = #Missing; line after the transfer. I find running code increments and based on successful measures to be my best approach to get the code to work.

Kind regards

Cameron Lackpour

P. S.
Another alternative could be:
DATACOPY "Feb" to "Mar";
CLEARDATA "February";

But I would probably go for the assignment by a sign '=' first because it is easier to read, and performance differences are going to be so small for what is impossible to measure.

Tags: Business Intelligence

Similar Questions

  • ClearData @Remove

    Hello everyone,

    Within my cost center hierarchy, I try cleardata except for a specific group of members I've identified under another hierarchy and defined as shared members.  My current calc is the next, and for the life of me, I can't seem to make it work.  I have searched the forums and found discussions and similar responses, but always going somewhere.  Can anyone see what I'm doing wrong or not understanding?


    DIFFICULTY (& CurYr,@REMOVE (@IDESCENDANTS ('Total Cost Center'), @LIST (@IDESCENDANTS ("list"))), 'End', 'Avg', & CurMo)


    CLEARDATA "real."

    ENDFIX

    Ess Hierarchy.JPG

    Best regards

    Bret

    I play with @share but not with not success.  I'm starting to think I should use a UDA or attribute based on what I found here:

    http://www.Network54.com/Forum/58296/thread/1295376820/@remove

    Is - that the best route to go?

  • CLEARDATA for brothers and sisters of a Member

    Hi all.

    There is a need to write a clear script, not the parent but using a child member existing and delete the data of that Member, including his brothers and sisters.

    Is there an Essbase feature where you can choose 2 children and he will remove Child1 and Child3?

    Parent

    Child1

    Child2

    Child3

    I think that you are looking for the function, @ISIBLINGS (membername). This allows you to select a member and his brothers and sisters (@SIBLINGS will return only the brothers and sisters).

    You could do something like the following:

    Fix (@ISIBLINGS (Member1));

    clearblock all;

    ENDFIX;

    Or you can use cleardata if you do not want to clear all the blocks.

  • CLEARDATA

    Gurus,
    I need to erase the data of members in Essbase.
    It's the structure
    ACCOUNT
    BUILDINGS
    I01
    I0101
    I0102
    102
    I03
    I have to cleardata lowest level I0101, I0102, etc., and there are a lot of members of the lower level.
    How can I remove them.
    I tried:
    FIX (Versionname, year)
    CLEARDATA BUILDINGS;
    ENDFIX

    But it did not work.

    Y at - it something wrong I do, do I have to use some @descendants, etc.

    I think that "Buildings" are rare, if that is the case why not use clearblock:

    http://docs.Oracle.com/CD/E17236_01/EPM.1112/esb_tech_ref/clearblock.html

    Use clearblock in TROUBLE for which you want to clear data and don't forget If CLEARBLOCK is used in an order of CORRECTION on a dense dimension, FIX instruction is ignored and all blocks are analyzed for missing cells.

    See you soon... !!
    Rahul S.

    Published by: Renu on November 9, 2012 20:54

  • ClearBlock vs ClearData

    I need to erase the actual data before loading updated data. I so below two options, even if both are working for me, I would like to know which is recommended and why.

    Fix (& CurrentMonth and those "Final")
    ClearData "real."
    EndFix

    or

    Fix (& CurrentMonth and those, "Final", "Real")
    ClearBlock All;
    EndFix

    PS: Pls don't tell me to read the documentation, if he makes a lot of sense, I wouldn't be here.

    Another point... the documentation is a little mislieading. Consider the following example of the Ref of the Essbase Tech:

    If you use CLEARBLOCK in order FIX, Essbase erases only the cells in the fixed range and not the entire block.

    This is not true if you are fixed on the sparse dimensions. I just test and it WILL remove the block within a PATCH. (according to my statistics database)

  • Endif prevents formcalc process

    I finally understood how to remove errors of syntax with endif. The problem is now I have no more errors and these fields no longer to calculate.

    Example for a repayment of loan: the field requires other fields to calculate so "endif" was necessary. The other fields are zero until I filled the form.

    if (>0 Pmt) then Pmt (LoanTotal, Blendrate / 1200, term * 12) (Taxes Ins + + HOA)endif

    Payment calculated perfectly before "endif" as follows. (LoanTotal, Blendrate / 1200,, term * 12) (Ins of Taxes + + HOA)

    Not sure how this can be fixed? The form works fine, but I hate all syntax errors.

    Thank you.

    the if condition should be something like:

    If (LoanTotal > 0 and Blendrate > 0 and term > 0) then

    otherwise you would get a division by 0 error.

  • Behavior of FI... ENDIF

    I am posting this both as a question and a clarification for those who would like to...

    If you are using IF condition to filter on the month (to avoid running calc for every month) and assuming that time is dense.

    Yes
    (

    IF (@ISMBR (& CURRMTH))

    your calc here;

    ENDIF

    )

    What happens to the other months 11, the system erases the data with #missing. So if you run this using the variable substitution for February, after Jan running, then you find Jan disappeared (#missing)...

    So I moved the logic for FIX (& CURRMTH) which is actually against the rule of thum sparse difficulty so on dense...

    Anyone has any observation/comment on this behaviour of FI... ... Is ENDIF possible to use and keep the other months they are (without disturbing them)? I tried ELSE; ENDIF where; is a blank line... do not help either.

    BTW, it is CSC... formula no Member

    By the way, FIX runs much more quickly than if, which is strange, considering the time is dense dimension!

    Well, then guess. Semicolons. While you need a semicolon inside for the calc, I usually put a semicolon outside the parens jurisdiction as well.

    Yes (IF (@ISMBR (& CURRMTH)) your calc here; ENDIF);

    I know I got interesting results where statements are not properly completed.

    Apart from that, what is in the rest of the Calc. We don't need to know what means 'your calc here', but perhaps if there is any statement or a set of instructions, leading to the calc Yes as a DIFFICULTY. In addition, is there something after this step in your script. I think we all came to the conclusion that the statement that you provided should only impact & CURRMTH and not the other months, so I think that what everyone is curious to see what the rest of this calc script. An example might be a step that, for example, removes every month, and then this step runs and fills & CURRMTH. This paragraph would not affect any other month outside of & CURRMTH... at least that this assumption semicolon has made something... ;-)

  • Very basic question about how to speed script CLEARDATA.

    CLEARDATA:
    ========
    Hi there, the two scripts will cause the same, but the following, which is faster (1) or (2)? Assuming that the data and the same sets for each. Thank you!


    CACHE ALL TOGETHER;
    SET CACHE HIGH;
    SET AGGMISSG
    SET HIGH LOCKBLOCK;
    SET CALCPARALLEL 4;
    UPDATECALC OFF SET;

    (1)
    DIFFICULTY (& InitPeriod: & ActualPeriod, & ActualYear, & CalcScenario, "WorkingInput")
    @IDESCENDANTS ("business district"), @IDESCENDANTS ("CC"), Fix (@IDESCENDANTS ("Entity"), @IDESCENDANTS ("Product")) <-sparse Dimensions
    CLEARDATA "USD";
    ENDFIX
    ENDFIX
    CLEARBLOCK VACUUM;


    (2)
    DIFFICULTY (& InitPeriod: & ActualPeriod, & ActualYear, & CalcScenario, "WorkingInput")
    CLEARDATA "USD";
    ENDFIX
    CLEARBLOCK VACUUM;

    CACHE ALL TOGETHER;
    SET CACHE HIGH;
    SET AGGMISSG
    SET HIGH LOCKBLOCK;
    SET CALCPARALLEL 4;
    UPDATECALC OFF SET;

    DIFFICULTY (& InitPeriod: & ActualPeriod, & ActualYear, & CalcScenario, "WorkingInput")
    DIFFICULTY (@RELATIVE ('entity', 0), @RELATIVE ("Business Area", 0), @RELATIVE ('CC', 0), @RELATIVE ("product", 0))
    CLEARDATA "USD";
    ENDFIX
    ENDFIX
    CLEARBLOCK VACUUM;

    Fixing Level0 blocks like the above calc data erasure
    Loading new data
    Setting the update rollup on Aggmissing
    The Total process takes less time compared to
    Deleting the data for all levels
    Loading new data
    ROLLUP

  • If / EndIf Calc Question

    I try to allocate fresh staff for all our stores with dirty and full of restaurant kitchens (some stores sell food made other cuisines).

    I've never done an if statement in hyperion:

    Cost of staff Acct # = if ("Month of Restaurant" = 0, 0, '% of sales staff costs'->-> actual 2009 fiscal year)
    * "Sales of restaurants'->-> Budget FY2010

    My goal is that CAJ % of sales is calculated in the store according to 2010 sales # s for all stores with kitchens.

    The staff, the rest of the month, remains sales and sales & staff costs are all rare measures.
    Fiscal 2009 & 2010 are the dense years.

    I use 1 fix enunciated by region:

    Difficulty ("fiscal 2010", "CO 001")
    @DESCENDANTS ("2010 budget - same store - West'), 'Budget')

    I can't even past error messages about the parenthesis.

    Any help is appreciated.

    I didn't test the exact syntax, but it must be really close.
    IF statements need to be locked up in a block header

    "Cost of staff Acct #
    (IF ("Month of Restaurant" == 0);)
    "Staff cost Acct #" = 0;
    ON THE OTHER
    "Staff cost Acct #" = "staff costs % of sales"-> E2009-> real * 'Sales of the restaurants'-> 2010-> Budget fiscal year;
    ENDIF ;);

  • Model RTF - IF EndIf for Not null checking

    Hello

    I have a group of values, following

    -< LIST_G_COST_COMPONENTS >
    -< G_COST_COMPONENTS >
    < FREIGHT_COST > 5.0015 < / FREIGHT_COST >
    < INSURANCE_COST > 5,999 < / INSURANCE_COST >
    < OTHER_EXP_COST > 7 < / OTHER_EXP_COST >
    < / G_COST_COMPONENTS >
    < / LIST_G_COST_COMPONENTS >

    In my RTF model, I have an article I don't want to show that if all of the above are null, I wrote a Condition if according

    IF Field
    <? If: not (FREIGHT_COST) and not (INSURANCE_COST) and not (OTHER_EXP_COST)? >
    Group_Begining
    Section
    End if <? end if? >
    End of group

    Let me know if its correct or not, because even if there are values of the section is not displayed.

    Kind regards
    Ashoka BL

    Hello

    You can try the following


    case of duplicated data

    concerning
    Charlotte

  • Hyperion Planning calco - FIX and IF condition script.

    Gurus

    I'm new to Hyperion Planning and have a question:

    I'm writing the script of followgin and he looks up and as the listed error.

    SCRIPT:

    / * STARTCOMPONENT:SCRIPT * /.

    COPYMISSINGBLOCK OFF SET;

    DIFFICULTY ('AC_91100', 'AC_91380', 'AC_92105', 'AC_93100', 'AC_94105', 'AC_95100', 'AC_96100', 'BegBalance',

    ('Current Service level', 'FU_0', 'FN_00000', 'LO_000000', 'FD_100', 'FD_200' and ProposedYear,"Baseline",@Relative ("project", 0), @Relative("Total Entity", 0))

    ("AC_91100"

    IF ("Start Date"->"projected" is #MISSING AND 'End Date'-> 'projected' == #MISSING)

    DATACOPY 'Start Date'-> 'Budget' to 'Start Date '->' projected ';

    DATACOPY 'End Date'-> 'Budget' to 'end '->' Date projected. "

    ELSEIF ("Start Date"->"projected" == #MISSING AND 'End Date'-> 'projected'! = #MISSING)

    DATACOPY 'Start Date'-> 'Budget' to 'Start Date '->' projected ';

    ElSEIF ("Start Date"->"projected"! = #MISSING AND 'End Date'-> 'projected' is #MISSING)

    DATACOPY 'End Date'-> 'Budget' to 'end '->' Date projected. "

    )

    ENDFIX;

    / * ENDCOMPONENT * /.

    Error message when I validate the script:

    An error occurred while parsing the script.

    Please check the script between the column in the row: 9: 71 and column: C9: 78.

    Found token '#MISSING'- expected tokens: <EOF>,<DIGIT>,<LETTER>,"/*STARTCOMPONENT:SCRIPT*/","/*ENDCOMPONENT*/","/*STARTCOMPONENT:FORMULA*/","/*STARTRULE*/","/*ENDRULE*/","/*STARTTEMPLATE*/","/*ENDTEMPLATE*/","\"File\"","\"Binfile\"","\"DSN\"","DataExportLevel","LEVEL0","\"LEVEL0\"","INPUT","\"INPUT\"","DataExportDynamicCalc","DataExportNonExistingBlocks","ON","\"ON\"","OFF","\"OFF\"","HIGH","LOW","DEFAULT","ONLY","AFTER","SUMMARY","DETAIL","ERROR","WARNS","INFO","NONE","DEBUG","WARNING","DataExportDecimal","DataExportPrecision","DataExportColFormat","DataExportColHeader","DataExportDimHeader","DataExportRelationalFile","DataExportOverwriteFile","DataExportDryRun","@_false","@_true","NUMBER" , 'MEMBER', 'BOOLEAN', 'STRING', < COMMENT_CPP_STYLE >, < SPACE >, "/ * ',' ' * / ', '\n', < token of type 56 > '\"","\"","\n', < token of type 60, > '[[',']]', '\n', < token of type 64 >, < SUBST_VARIABLE >, < hfm_VARIABLE >, < MACRO >, < REAL_NUMBER >, < INTEGER_NUMBER >, ' Tot ', 'ALL',"\ 'ALL\' ", 'AND', 'TABLE', < CALC >, 'CCONV', 'CLEARBLOCK'" ,"CLEARDATA","DATACOPY","DATAEXPORT","DATAEXPORTCOND","DATAIMPORTBIN","DIM","DYNAMIC","ELSE","ELSEIF","ENDFIX","ENDEXCLUDE","ENDIF","ENDLOOP","EXCEPT","FOR","ENDFOR","FIX","EXCLUDE","IF","LOOP","MBR","NONINPUT","EMPTY","NOT","OR","REFERENCE_TO_PARAMETER","RUNJAVA","SET","TO","TOLOCALRATE","UPPER","VAR","DATAEXPORTOPTIONS","AGGMISSG","CACHE","CALCPARALLEL","CALCTASKDIMS","CCTRACKCALC","COPYMISSINGBLOCK","CLEARUPDATESTATUS","CREATENONMISSINGBLK","CREATEBLOCKONEQ","DATAIMPORTIGNORETIMESTAMP","EMPTYMEMBERSETS","FRMLBOTTOMUP","FRMLRTDYNAMIC","LOCKBLOCK","MSG","NOTICE","REVERSE","REMOTECALC","UPDATECALC","UPTOLOCAL","::","#MISSING","=","->",<EQOP>,<MULOP> , < MDXMbr >, < SHORTQUAL >, < ID >, < INTEGER >, < CHAR >, < RELOP >, '@Loopback', < FUNCTION > "(", ";", ",", "[","]", "{","}", "-",") ReplaceAll ',' ','. ',' + ',': = ','": ' "

    *****************************

    Let me know what mistake I am doing here. Any help is greatly appreciated. Thanks in advance.

    Thank you

    SR

    A few errors in this script:

    1 DATACOPY is not allowed inside the IF block. You can use the assignment ('=') instead of datacopy

    2 ENDIF is missing. You should have ENDIF before hook closing.

  • Customization of load a script in FDM

    Hi all

    I'm trying to change the upload script in the FDM, but does not receive the correct syntax of the calc script in VB script.

    My requirement is: I load the data with two different place in the two different version in Essbase. Being the script common load for all locations, I want to avoid clear data

    version based on location to replace what is used...

    As if Planner load data specific to the entity, the workload file should remove the data in version 1, but when any user in business (access to all entities) load the data of a business location,

    the script should remove the Corp. Version data. I'm trying to change the load script but which gives syntax error.

    strTYear = API. . StrTargetYear of POVMgr.fPeriodKey (CStr (strPer (0)))

    ' * CALC SCRIPT *.

    ' NOTE: CALC SCRIPT CAN BE MODIFIED for each CLIENT

    ' Clear the intersection of (category, period, entity).

    strClear = "difficulty (" ")" & strTCat & "" "", "" "" & strTYear & "" "", @Idescendants ("" "& strCurEnt &" ""), ""WORM 1"") ' & + "\n" * declaration of attachment for worm 1 *.

    strclear = strclear & strTPer (0) & vbcrlf * Member Block for IF condition *.

    strclear = strclear & "IF (strLoc <>" 'Corporate' "" ") THEN" & vbcrlf * IF condition to check the name of the place, if it is made up, then remove 1 worm else data do nothing so no other condition *.

    strclear = strclear & "strTPer (0) = #MISSING;" & vbcrlf * no cleardata script such that it will not operate under an if condition *.

    strclear = strclear & "ENDIF;"  & vbcrlf

    strClear = strClear & "EndFix".

    I am using logic right ahead of the Calc script but in error writing even in VB script...

    Help me get this correct script or anything else to solve the problem I am facing to...

    Kind regards

    CM

    Journeyer...

    I don't really like the words I've read from you.

    Journeyer wrote:

    Hello

    I can write hundreds of logic to make this script to delete data. But there is no problem with the calc script, it is write in VB with an IF condition.

    I tried a lot of combination to see if something might work, but it gives syntax error.

    If you really want to help, could you provide me the correct syntax can I use correct atleast my syntax above or at least make it simple for me to do this job...

    Thank you...

    You must take into account the fact that people in this community devote their time to help others.

    Help does not mean doing their job. Assistance means putting people in the right way, give advice, and try to share knowledge.

    Having said that, your logic is that a calc script will be executed for a specific location. Your problem is that you try to put the conditional statement in the statement to FIX rather than the vbscript itself

    strClear = «»

    If YOUR State of HEALTH may

    strClear = "TROUBLE."... »

    End If

    If strClear <> "" then

    Use the fcalculate function, which is in the LOAD SCRIPT

    EndIf

    This link is a lot of examples of conditional statements: VBScript conditional statements

  • #MISSING does not always

    I have a script to erase data using an IF statement.  Thus, instead of ClearData, I put the Member to #MISSING.  He worked for a long time and recently was discovered to not work.  More background: I use this to charge the actual data every night of our ERP.  So, I erase the data (or set it to #MISSING), then reload.

    It seems that many members of the 0 level are preparing to #MISSING, but some are not.  I looked to see if there are differences between the good and bad members and can not find any differences.  They are members of store, etc.

    To fix, I went in SmartView and submitted a new amount of $, and then reran the same calc and it erased everything in the block (but not yet members of the 'bad').  So, now I wonder if there is some sort of caching the thing going on or something like that.

    I used the SET CREATENONMISSINGBLK ON; to move data across cubes.  But it's like the reverse of that.  So I am confused.

    Any obvious response to this?

    Thank you-

    Cameron

    Code:

    ESS_LOCALE English_UnitedStates.Latin1@Binary

    FIX (@Relative("ALL_RESOURCE_TYPES",0), "Incurred")

    "Final".

    (

    IF (& IncSpanYr == 1)

    IF (& CurMoNm == 12)

    IF (@ISMBR (& CurYr))

    'May' = #MISSING;

    "Jun" = #MISSING;

    ELSE IF (@ISMBR (& NxtYr))

    "Jul" = #MISSING;

    ENDIF

    ELSEIF (& CurMoNm <>12)

    IF (@ISMBR (& PriYr))

    "Jun" = #MISSING;

    ELSE IF (@ISMBR (& CurYr))

    IF (& NxtMoNm == 1)

    "Jul" = #MISSING;

    ELSEIF (& NxtMoNm == 2)

    "Jul" = #MISSING;

    "Aug" = #MISSING;

    ELSEIF (& NxtMoNm == 3)

    "Jul" = #MISSING;

    "Aug" = #MISSING;

    "Sep" = #MISSING;

    ELSEIF (& NxtMoNm == 4)

    "Jul" = #MISSING;

    "Aug" = #MISSING;

    "Sep" = #MISSING;

    "Oct" = #MISSING;

    ELSEIF (& NxtMoNm == 5)

    "Jul" = #MISSING;

    "Aug" = #MISSING;

    "Sep" = #MISSING;

    "Oct" = #MISSING;

    "Nov" = #MISSING;

    ENDIF

    ENDIF

    ENDIF

    ELSEIF (& IncSpanYr <>1)

    IF (@ISMBR (& CurYr))

    and priMo = #MISSING;

    & CurMo = #MISSING;

    & NxtMo = #MISSING;

    ENDIF

    ENDIF

    )

    ENDFIX

    Until I saw your post, I was looking at some of my other Calc and I wondered if it was one of the calc commands that I've been away.  So, I added SET UPDATECALC OFF; and that did the trick.  I wonder again how/why this calc worked for 9 months, but recently stopped working.  I know that this parameter is related to own/Sales cells but need to research why my data was previously sales and now own recently.  Any validation of blog on this topic would be useful.  Thank you!

    Cameron

  • Script: calculate CDA of PTD

    Hi all

    need help with this script. He must calculate a year PTD data, but only for specific accounts and

    only from Jan to the current month for the real scenario, year-round for other scenarios.

    It returns error

    Runtime error [CT] (line 0) formula: attempt to cross a member function [@X] null

    DIFFICULTY

    (

    ((@UDA («Compte», «Valeur patrimoniale») OR @UDA ('account', 'Responsibility') OR @UDA ('account', 'Equity') OR @UDA ('account', "saved the hypothesis")) AND @LEVMBRS ("account", 0));

    {vScenario},

    {Version},

    @DESCENDANTS ("Entity"),

    {vYear},

    @IDESCENDANTS ("PKI"),

    'By default'

    )

    CLEARDATA "PTD";

    DATACOPY "CDA" TO "PTD";

    SET CREATENONMISSINGBLK

    Fix("Jan":"Dec")

    ('TDM'

    IF ((@ISMBR ("Actual") AND @ISMBR ("Jan": & svCurrActualMonth)))

    OR NOT (@ISMBR ("Actual"))

    OR NOT (@ISMBR (& svCurrActualYear))

    )

    @CURRMBR ("Period")-> "PTD" = - @MEMBER (@PREVSIBLING (@CURRMBR ("Period")-> "CDA")) + @MEMBER (@CURRMBR ("Period"))-> "CDA";

    ENDIF;

    )

    ENDFIX

    CREATENONMISSINGBLK OFF SET;

    CALC, SUN ("Period");

    ENDFIX

    Okay, I think I got it.

    SET AGGMISSG

    UPDATECALC OFF SET;

    SET EMPTYMEMBERSETS

    SET CALCPARALLEL 3;

    SET CACHE HIGH;

    SET HIGH LOCKBLOCK;

    DIFFICULTY

    (

    ((@UDA («Compte», «Valeur patrimoniale») OR @UDA ('account', 'Responsibility') OR @UDA ('account', 'Equity') OR @UDA ('account', "saved the hypothesis")) AND @LEVMBRS ("account", 0));

    {vScenario},

    {Version},

    {vYear},

    'By default',

    @Levmbrs ('period', 0)

    )

    CLEARDATA "PTD";

    DATACOPY "CDA" TO "PTD";

    ENDFIX

    DIFFICULTY

    (

    ((@UDA («Compte», «Valeur patrimoniale») OR @UDA ('account', 'Responsibility') OR @UDA ('account', 'Equity') OR @UDA ('account', "saved the hypothesis")) AND @LEVMBRS ("account", 0));

    {Version},

    {vYear},

    'By default',

    "PTD."

    'Jan': 'Dec '.

    )

    {vScenario}

    (

    IF ((@ISMBR ("Actual") AND @ISMBR ("Jan": & svCurrActualMonth)))

    OR NOT (@ISMBR ("Actual"))

    OR NOT (@ISMBR (& svCurrActualYear)))

    @CURRMBR ("Period") = @MEMBER (@CURRMBR ("Period"))-> "CDA" - @PRIOR (@CURRMBR ("Period")-> "CDA", 1, @Levmbrs ('period', 0));     ENDIF;

    )

    ENDFIX

  • Script to copy actual and forecast plan

    Hallo,

    Please, colud again you this script, it returns error on the line with IF.

    Thank you very much

    SET AGGMISSG
    UPDATECALC OFF SET;
    SET EMPTYMEMBERSETS
    SET CALCPARALLEL 3;
    /*
    Variables: Scenario, Version, year
    Accounts is dense = > Calc Dim
    PEAK period, entity, are rare and no formulas = > tot.
    Discovers, aliases have no aggregation
    */

    DIFFICULTY)
    {vYear}
    )
    CLEARDATA {vTrgForecastScenario};

    {vTrgForecastScenario} (
    IF (@ISMBR ("ForecastQ1"))
    DIFFICULTY ("Jan": "Mar")
    DATACOPY 'Actual' to {vTrgForecastScenario};
    ENDFIX
    DIFFICULTY ("Apr": 'Dec')
    DATACOPY {vSrcForecastScenario} to {vTrgForecastScenario};
    ENDFIX
    ELSEIF (@ISMBR ("ForecastQ2"))
    DIFFICULTY ("Jan": "Jun")
    DATACOPY 'Actual' to {vTrgForecastScenario};
    ENDFIX
    DIFFICULTY ('Jul': 'Dec')
    DATACOPY {vSrcForecastScenario} to {vTrgForecastScenario};
    ENDFIX
    ELSEIF (@ISMBR ("ForecastQ3"))
    DIFFICULTY ("Jan": "Sep")
    DATACOPY 'Actual' to {vTrgForecastScenario};
    ENDFIX
    DIFFICULTY ('MS': 'Dec')
    DATACOPY {vSrcForecastScenario} to {vTrgForecastScenario};
    ENDFIX
    ENDIF
    )
    ENDFIX

    You didn't say which version. Then I use @Count to perform this

    Fix ({vYear}) - Are all back for this year, including at higher levels?

    CLEARDATA {vTrgForecastScenario};

    Fix("Jan":"Mar")

    DATACOPY 'Actual' to {vTrgForecastScenario};

    ENDFIX

    Fix("Oct":"Dec")

    DATACOPY {vSrcForecastScenario} to {vTrgForecastScenario};

    ENDFIX

    -You can set on my colleagues here, but once again depends on what data you copy and where everything you want

    "Apr")

    IF (@count (SKIPNONE, @list ({vTrgForecastScenario} AND "ForecastQ1")) == 1)

    {vTrgForecastScenario}-> "Apr" = {vSrcForecastScenario}--> "April";

    {vTrgForecastScenario}-> 'May' = {vSrcForecastScenario}--> "may";

    {vTrgForecastScenario}-> "Jun" = {vSrcForecastScenario}-> 'June ';

    {vTrgForecastScenario}-> "Jul" = {vSrcForecastScenario}--> "July";

    {vTrgForecastScenario}-> "Aug" = {vSrcForecastScenario}--> "Aug";

    {vTrgForecastScenario}-> "Sep" = {vSrcForecastScenario}--> "Ms."

    ELSEIF (@count (SKIPNONE, @list ({vTrgForecastScenario} AND "ForecastQ2")) == 1)

    {vTrgForecastScenario}-> "Apr" = "Actual"-> "April";

    {vTrgForecastScenario}-> 'May' = 'Actual'-> 'may '.

    {vTrgForecastScenario}-> "Jun" = "Actual"-> "June";

    {vTrgForecastScenario}-> "Jul" = {vSrcForecastScenario}--> "July";

    {vTrgForecastScenario}-> "Aug" = {vSrcForecastScenario}--> "Aug";

    {vTrgForecastScenario}-> "Sep" = {vSrcForecastScenario}--> "Ms."

    ELSEIF (@count (SKIPNONE, @list ({vTrgForecastScenario} AND "ForecastQ3")) == 1)

    {vTrgForecastScenario}-> "Apr" = "Actual"-> "April";

    {vTrgForecastScenario}-> 'May' = 'Actual'-> 'may '.

    {vTrgForecastScenario}-> "Jun" = "Actual"-> "June";

    {vTrgForecastScenario}-> "Jul" = "Actual"-> "July";

    {vTrgForecastScenario}-> "Aug" = "Actual"-> "Aug";

    {vTrgForecastScenario}-> "Sep" = "Actual"-> "Ms."

    ENDIF

    )

    ENDFIX

    Concerning

    Celvin

    http://www.orahyplabs.com

Maybe you are looking for

  • Photosmart HP 7520 - loss of WiFi connection

    Hello Have recently purchased a 7520 - works well however when the printer goes to sleep I can't access them from my iPad or iPhone using AirPrint. I have to turn on/off the wireless connection to use it, that beats the point of having a wireless pri

  • Printer HP OfficeJet Premium 6700

    I had just come out of the original 'color cartridges' when more ink message came... went and bought new... returned... "tray" cartridge is on the far right and not in the position to put in... machine does not off... always open Panel... message say

  • Cannot get any browser to view a web page.

    Vista problem - dns related navigation I am running Vista on a laptop computer with connection mobile broadband and a standard dial-up connection. I connect directly to the internet and have no router or other devices on the network. I'm having a pro

  • How do to transfer itunes from computer to my LG900g phones MP3 player

    How can I move itunes from my computer to my phone LG900g MP3 player.  My computer does not show an additional removable storage device when I connect, as the tutorial says it should.  I have a memory card in the phone

  • WINDOWS 7 allow interrupt sharing. We have a system that has several COM ports and IRQS not enough.

    Original title: some j WINDOWS 7 allow interrupt sharing.  We have a system that has several COM ports and IRQS not enough.  In XP Pro, there was a sharing bit interruption that you can set in the registry editor that would allow this sharing.  Sound