CAL script to replace the value of Member if...

I have data loaded against Member MidPlan and MasterPlan for 2007 (time)
where MidPlan is not null but MasterPlan is nothing I want to write MidPlan in MasterPlan (overwrite the value null with a number)
and when there is the MasterPlan MidPlan AND I want to ADD and overwrite MasterPlan (with a more accurate number).

Can and how can I do this in a calc script?

Thank you
metalray

As a personal practice I do not destroy data, then I would say you have 3 members (1 being the sum of what you want) rather than use only 2 and the value of one of them by replacing with the sum. This way you can always go back, or even to run the script a second time safely. Data problems are quite difficult to debug on their own, you do not need to continue to create your own questions in re-totaling and crash if a calc is accidentally run a second time.

With regard to execution in a calc script, of course.
Good luck
Robert

Tags: Business Intelligence

Similar Questions

  • How to replace the value of a column in a table based on the value in the second column?

    Hi, I would like to find in a table 2D for values that meet certain criteria (for example, a column< 0.98).=""  based="" on="" which="" rows="" meet="" this="" criteria,="" i="" want="" to="" replace="" the="" values="" in="" a="" different="" column="" of="" the="" array="" (change="" to="" 'nan'="" so="" that="" the="" values="" will="" not="" be="" included="" in="" any="" calculations="" on="" that="" column,="" for="" example="" the="" finding="" the="" mean).=""  i've="" attached="" a="" sample="" .csv="" file.=""  if="" the="" values="" in="" column="" 3="" (index="" 2)="" are="" less="" than="" 0.980="" (or="" some="" other="" user="" defined="" value),="" then="" the="" value="" in="" column="" 2="" (index="" 1)="" should="" be="" replaced="" with="" nan.=""  can="" someone="" help="" out="" with="" this="" search="" and="" replace="">

    Thank you

    Keith

    (using LV 2009 SP1)

    A few quick hits.

    You can merge the two for loops

    You have not need one of the constants 1 and 2 in the index table.  They will solve automatically when you expand on the index picture, once you have wired to 0 in the column index.

    It seems a lot of handling additional table spent unnecessarily.

    See below.  I did not try to duplicate your code to see how it actually works, but I believe that I have attached will give the same result with less steps.

  • How can I replace the value of the column with a particular value in SQL

    Hi all

    Is someone can you please tell me how can I format my output with the replacement of a column value with a specific value that really depends on the current value of the column

    I am executing the following SQL statement

    Select state, count (id) from < table_name > where composite_dn = < composite_dn_name > Group by State;
    My current performance is:

    State Instance number
    1 3
    3 28

    I want to replace the value in the State column as follows

    No.OfInstances State
    3 filled
    28 faulted

    I want '1' to be reppaced of 'Done' and '3' is replaced by 'Faulted. '

    Is is possible with SQL or PL/SQL, if it is then how I can achieve this required. Help, please!

    Thanks in advance!

    Published by: Roshni Shankar on October 27, 2012 12:38 AM

    Hi Claude,.

    I guess this CASE clause can be simulated by a DECODE and also it is very easy to use.
    See - http://www.techonthenet.com/oracle/functions/decode.php

    select decode(t1.state,t2.state_id,t2.state_name), t1.count_id
    from  t2, (select state,count(id) count_id
     from 
     where composite_dn= 
    group by state) t1
    where t1.state = t2.state_id;
    

    HTH
    Vanessa B.

    Published by: Vanessa B on October 27, 2012 14:02
    -link added

    Published by: Vanessa B on October 27, 2012 14:19
    -added code sample

  • 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

  • How do you replace the values in a control of the ring?

    Hello

    I have a control of the ring (text values) in Labview 2009 and it is populated by programming with 20 points. The end user selects from the list items or fills with a new item based on a checkbox to add a new item. What I want to do, that's when section 20 is entered and the user selects the check box next to the point 21 to add I want around rap on the first item in the list and crush him. Is this possible and a sample VI would be great demonstrate how this is done. Any help would be greatly appreciated!

    Thanks in advance

    Charlie

    Replace the subset of the table.  You need to keep track of the element to replace in a shift register.  I would also like to keep the list in a shift register to make your life a little easier.

  • Is it possible to use the batch is script to retrieve the value window server political group?

    Y at - it a batch command that will allow me to recover the value of group policy in Windows server? Something like gpedit.msc did, but I want because of the command line I want to convert this value to format I want.

    Example: If I open gpedit.msc, then I go to Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Restore files and directories so I can get the value (administrators, backup operators) of this policy.

    All ways in the batch script can bring me to this path and capture value?

    Thanks, your help is very appreciated.

    Hello

    You could try to look at the list of Group Policy scripts or repost the question to the Scripting Guys or in Forum Windows Server forum.

    The guys from script

    Windows Server

  • PLSQL do not replace the value of the variable

    Here is the small procedure that I write...

    m_t_database_links: this table contains the names of database links in the column link_name

    PLSQL not replaces the "BOLD" part with the value of the variable. I know I'm missing something. Can someone please?

    ========================================================================

    DECLARE
    m_v_var1 varchar2 (10);

    BEGIN
    FOR m_c_link_name IN (SELECT m_t_database_links FROM link_name)
    LOOP
    Select first_name into the emp @m_c_link_name.link_namem_v_var1;
    dbms_output.put_line (m_v_var1);

    END LOOP;
    END;
    /

    I think that you will need to use dynamic SQL here because you can use variables for table names unless it's the dynamic SQL code.

  • using script to get the values of percentage and not able to sum up to 100%

    Hi all

    I am trying to use a parseFloat() function to convert the string value as a percentage, and then try to add all the values of %.

    but for a few scenrios even if the amount is 100% of the service I get the PctValue be <>100.00%

    the calculation of the function is as follows: -.

    code-

    {iterating_through_all_the_fields}

    PctValue += parseFloat (this.getField("Percentage1").valueAsString);

    }

    sample-

    11.12

    11.11

    11.11

    11.11

    11.11

    11.11

    11.11

    11.11

    11.11

    amount is 100

    but through code mentioned above I return 99.99

    Any help is appreciated in this regard.

    It is a result using the floating point IEEE standard and conversion from decimal to binary values values. We need to round up all the calculations of money or mils will accumulate and cause errors. For percentages, it is better to round up receipts and total final eliminate the accumulation of amounts below the figure the least significant.

    It is possible to use the util.printf of rounding.

    The following script will show what is happening:

    function Round (nValue, nDec) {}
    If (typeof nDec == "undefined") nDec = 0;
    Return number (util.printf ('%, 1 0. nDec + "f", Number (nValue)));
    }

    var nValues = new Array (11.12 11.11 11.11, 11.11, 11.11, 11.11, 11.11, 11.11, 11.11);
    nSum var = 0;
    for (var i = 0; i)< nvalues.length;="" i++="" )="">
    nSum = nSum + Round (nValues [i], 2);
    Console.println (i + "" + nValues [i] + "" + nSum);
    }
    Console.println (nSum);
    nSum = Round (nSum, 2);
    Console.println (nSum);

    Progression of the sum at each stage.
    0 11,12 11.12
    1 11.11 22.229999999999997
    2 11.11 33.339999999999996
    3 11.11 44.449999999999996
    4 11.11 55.559999999999995
    5 11.11 66.66999999999999
    6 11.11 77.77999999999999
    7 11.11 88.88999999999999
    8 11.11 99.99999999999999
    99.99999999999999
    100

    true

    It's a good idea to use decimal values a percentage and leave the determination of the field format display and the borough. But for applications of the sum, the user can round up the value of the actual field and not only display.

  • Script to replace the small caps that are typed in capital letters with capital letters (A = &gt; a, B = &gt; b, etc...)

    I am looking for a way to replace the small caps that are typed in capital letters by their normal equivalents.

    I have a text that contains many names that should all be set in small capitals.

    In fact, they are, but because the letters are used for the first letters that they don't fit.

    In short: I would like to be able to look for A, B, c... (in small capitals) and replace them with (a, b, c...) in small capitals only once.

    (compare two tables?-> is this possible in indesign scripting)

    Hi Cramik,

    Try this.

    var doc = app.activeDocument,
        _char = doc.stories.everyItem().characters.everyItem().getElements();
    
    for(var i=0;i<_char.length;i++)
    {
            if(_char[i].capitalization == Capitalization.SMALL_CAPS)
            {
                    _char[i].capitalization = Capitalization.CAP_TO_SMALL_CAP;
                }
        }
    

    Kind regards

    Cognet

  • A database on a button Action replaces the values of DML?

    Greetings,

    I would like to know if a database a button Action (update/SQL Insert / SQL SQL Delete) overrides the Insert/Update/Delete valid DML query values? My application button is "GENERATE", and of course, it is not in valid update request values. It is not an SQL UPDATE Action, even if the update does not occur because the form is reloaded without modification.

    Best regards
    Mathieu

    Greetings,

    I really don't look at with sufficient attention. The update was going on along, I had just forgotten to reset a flag on my page, which is to screw on the session state. Thus, regardless of the request of a button, if you specify an Action of database on this subject, it replaces the rule valid values for request of DML. It's good to know.

    Best regards
    Mathieu

  • compare and replace the value

    Hello

    Just need a quick help. I have 3 tables. I have some data in Array1 table which has 10 columns.

    I take the value in the first column of the array Array1 and compare with the values in table 2. For example, in table 1, is it 133.38 between 30,00 and 230.00 (of arry, 2) then put 50.0 (from table 3) in the last column of the table Array1.

    It simply means, take each value of Column1 of array1, control the scope of this value, then exit in the last column of table 3 of the value of the index in table 3 corresponding to the lower bound index in table 2.

    Example 2. given 400.00 in array1 table Column1, compare its range with the value of array2. We can see that 400 is between 230 and 1000.00 (of array2), so you have to 70.0 in the last culomn of the array Array1.

    Thanks for this help.

    Use the threshold D 1 table to get the index where your first value will be compared to table 2, rounded down (towards - Infinity) and index in table 3.  Relplace the corresponding cell in the table 1.

  • Help! Try to update the values of Member - but does not (completely).

    We are trying to resolve a calculation in the middle of the update of business cycle. There is a push to update existing values for an account specific forecast time scenario.

    Essentially, we want to update the value of forecast current account 56400 to 0.33 * ("56100" + "56110" + "56300" + "56310" + "56320").

    The solution is to make sure only rest of the current year, Apr - Dec, updated forecasts to date.

    Currently the rule runs, but handful of values is never get updates - I'm not doing correctly?

    relatively small cube BSO, Account (dense).

    Here is the rule of this task running

    SET CACHE HIGH;

    FIX (& those 'Forecasts', 'the current iteration","F_00000");

    "56400")

    IF (@ISMBR (& NextMonth: "Dec"));

    0.33 * ("56100" + "56110" + "56300" + "56310" + "56320");

    ENDIF ;)

    ENDFIX;

    -followed by a calc all

    I expect to update all occurrences 56400 in the fix above...

    Thanks in advance!

    Himanshu-

    You probably need...

    UPDATECALC OFF SET;

    .. Smart calc or .in there will prevent 'own' blocks to be recalculated.

  • Replace the values in the columns inversion

    Oracle 11.2.0.1

    Windows

    create table test

    (

    code varchar2 (2),

    col1 varchar2 (2),

    col2 varchar2 (2),

    COL3 varchar2 (2),

    COL4 varchar2 (2),

    col5 varchar2 (2),

    col6 varchar2 (2)

    )

    /

    Insert test values ('01', 'K', 'P', 'o', 'R', null, null);

    Insert test values ('02', 'I', a ', 'L', null, null, null);

    Insert test values ('03', null, null, 'P', null, null, null);

    Insert test values ('04', 'K', ' n, null, null, null, null);

    Insert test values ('05', 'K', 'n, 'Z', 'G', 'H' ', t ');

    SQL > select * from test;

    CO CO CO CO CO CO CO

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

    01 K P O R

    02 I S L

    P 03

    N 04 K

    05 K N Z G H T

    Power required: (reverses the values in columns)

    CO CO CO CO CO CO CO

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

    01 R O P K

    L 02 S I

    P 03

    N 04

    05 H G T Z N K

    Thank you.

    I think OP want something like this:

    SQL > select * from test;

    CODE COL1 COL2 COL3 COL4 COL5 COL6

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

    01 K P O R

    02 I S L

    P 03

    N 04 K

    05 K N Z G H T

    SQL >

    SQL > select code,.

    2 REGEXP_SUBSTR (str, ' [^-] +', 1, 1) c1.

    3 REGEXP_SUBSTR (str, ' [^-] +', 1, 2) c2.

    4 REGEXP_SUBSTR (str, ' [^-] +' 1, 3) c3,.

    5 REGEXP_SUBSTR (str, ' [^-] +' 1, 4) c4.

    6 REGEXP_SUBSTR (str, ' [^-] +' 1, 5) c5.

    7 REGEXP_SUBSTR (str, ' [^-] +', 1, 6) c6

    8 of)

    9 select the code, col6 | nvl2(col6,'-',null) | col5 | nvl2(col5,'-',null) | COL4 | nvl2(COL4,'-',null) | COL3 | nvl2(col3,'-',null) | col2. nvl2(col2,'-',null) | col1 | nvl2(col1,'-',null) str

    10 test)

    11.

    CODE C1 C2 C3 C4 C5 C6
    01 R O P K
    02 L S I have
    03 P
    04 N K
    05 T H G Z N K

    ----

    Ramin Hashimzade

  • Replace the values in the channels, if a string has a model value

    Version: Oracle 10g

    Hi all, I have a need for which I am trying to write a proc.
    I wanted to know if there is an another easier way to do this.
    Please let me know


    T_DATE and v_value will have an equal number of values
    If the value T_DATE or v_value is = # remove this T_DATE value and the corresponding value
    v_value (and vice versa)
    Example 1:
    -------------
       v_date  
          := 'August, 16, 2010~August, 16, 2010~September, 17, 2010~August, 16, 2010~###';
       v_value   := '###~EFGH~IJKL~MNOP~QRST';
       
       O/P required :
       v_date := 'August, 16, 2010~September, 17, 2010~August, 16, 2010';
       v_value   'EFGH~IJKL~MNOP';
       
    Example 2
    ----------
      
       v_date  
          := 'August, 17, 2010~###~September, 19, 2010~###~August, 21, 2010';
       v_value   := '###~EFGH~###~MNOP~###';
       
     O/P required :
     ---------------
       v_date := NULL;
       v_value   NULL;
    Thank you

    Hello

    new learner wrote:
    Version: Oracle 10g

    Hi all, I have a need for which I am trying to write a proc.
    I wanted to know if there is an another easier way to do this.

    Easier than what? Post what you're doing now.

    It seems simple enough
    Are T_DATE and v_value are IN OUT parameters?
    (1) create new variable this_date, this_vlaue, new_date and new_value, NULL string initially.
    (2) loop while T_DATE and v_value are not NULL.
    (3) use INSTR to find date_pos, the position of the first delimiter in T_DATE.
    (4) set this_date: = SUBSTR (T_DATE, date_pos, 1, -1) and then T_DATE: = SUBSTR (T_DATE, date_pos + 1). Watch out for the special case when you are at the last iitem, and there is no delimiter in v_pos.
    (5) do the same thing with v_value, this_value, and new_value.
    (6) If is neither this_date nor this_value ' #', concatenate them (with a delimiter, if necessary) to new_date and new_pos.
    (7) repeat the loop.
    (8) Finally, set T_DATE > = new_date and v_value: = new_value.

  • Need a script to get the values of hide/show

    Hello

    I use Adobe Acrobat 8. I have two radio buttons with perhaps 70 hide/show actions. Unfortunately, when I have to change one of them I have to search through all the actions. Y at - it a script that can give me a .txt file or another way to give me a list of all values?

    Thank you

    Tom

    This can be done with a script, because it has no access to this

    information. It should be a stand-alone tool or plugin.

    On Tuesday, December 23, 2014 19:48, Tom Tomasko [email protected]>

Maybe you are looking for

  • Firefox crashes at startup and we tried all your solutions but none work

    Firefox crashes when I double click the icon. I went through all the patches on the site with no improvement. I am able to do to open only when I right click and use the run as Administrator option. I reinstalled firefox, changed School Board Profile

  • RAM DDR2 & DDR3 on Satellite U400 modules

    Among the most reliable information in my pc/laptop software it seems that Toshiba u400 can manage DDR3 and DDR2, see the image >[http://i48.tinypic.com/2hg4u9l.jpg] I just want to know if someone is using DDR3 in toshiba u400, because as I see it se

  • Upgrades memory battery/Equium L20-264

    Hello I want to improve memory my equium l20-264 to the maximum which is about 2G I think and I was wondering what parts of memory I need to do this? He currently heads the 256 MB standard, but I'm not sure if I need to replace that with a higher mem

  • Extension memory for laptop Satellite 1110-Z15

    Hello I would like to upgrade the memory of my laptop Satellite 1110-Z15 and tried to find a list of approved toshiba memory manufacturers, with no luck. Anyone know of any manufacturers approved for computers laptop toshiba because I can't find the

  • Satellite 4070 speakers do not work correctly

    I upgraded my satellite 4070 CDT with extra memory, and windows 2000. All works really well except for the noise. It is said a very fast 'gragragragra', as long as the music should sound. His two on realplay, Windows Media player, connecting CD HD or