Question about calculation script 'Fix'

Hi Guys,
I have a question about calculation script 'Fix'. Below is the sample for my question:
Dimension 'Period' has members '2009','2010','2011'. We want to Fix the data which 'Period' is not '2009'.
From Database Administrator's Guide we could use @NOTEQUAL, but version 11.1.1.3.0 seems not support @NOTEQUAL.
Actually, the dimension is dynamic so we cannot use the way fixing other memebers. What should I do for this requirement?
Edited by: 842270 on Apr 24, 2011 7:29 PM

842270 wrote:
Hi Guys,
I have a question about calculation script 'Fix'. Below is the sample for my question:
Dimension 'Period' has members '2009','2010','2011'. We want to Fix the data which 'Period' is not '2009'.
From Database Administrator's Guide we could use @NOTEQUAL, but version 11.1.1.3.0 seems not support @NOTEQUAL.
Actually, the dimension is dynamic so we cannot use the way fixing other memebers. What should I do for this requirement?
Edited by: 842270 on Apr 24, 2011 7:29 PMYou can use @Remove command to avoid 2009.
@REMOVE
Removes values or members in one list from another list.
Syntax
+@REMOVE (list1, list2)+
Parameter     Description
list1
+     A list of member specifications, from which the members specified in list2 are removed.+
list2
A list of member specifications to be removed from list1.

Similar Messages

  • Questions on Calculation Scripts

    I have two questions on Calculation Scripts:
    1. When executing a Calculation script via the Administration Services console (right-click execute) besides the Messages lower window pane, is there a detailed log/trace of the script activity?
    2. We had a calc script #1 and we wanted to modifying it. We cut the entire script out into Windows notepad, made the adjustments then paste back into the script. When we go to parse it came back with validation errors. However if we simply edit the existing script within the console (do not cut and paste outside of AAS) it correctly validates. Bug? Limitation?
    Thanks
    JTS

    Just to add to that, each application has its own log.
    For example if you the Sample essbase application will have a log named sample.log and will be located in <essbase home dir>\app\sample or in V11 <hyperion home>logs\essbase\app\sample
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Question about multiple Script declarations

    I'm reading Flash Builder 4 and Flex 4 Bible.
    On page 121 it states:
    "Any particular <fx:Script> element can contain nested ActionScript or use the source property to link to an external Actionscript file, but it cannot do both at the same time. You can, however, have as many <Script> declarations in a single MXML file as you need>"
    My questions are about the last sentence.
    1)  They specifically used <fx:Script> and <Script>. Are these two different entities?
    2)  I've never seen examples of using multiple <fx:Script> declarations in a project. How would this work?
    3)  Are they promoting bad practices by making this claim?
    Thank you
    Kristin

    Although multiple script tags are allowed, I'd guess that they're not commonly used.
    Gordon Smith
    Adobe Flex SDK Team

  • Question about simple script?

    Hello,
    I would like to write a small program/script and am looking for advice on how to do so. I do not have a preference about which method or language to use, hopefully looking for the simplest way to do this (if it works with Windows or DOS command line this is
    preferable).
    I have a program that runs on text files e.g. "program file1.txt file2.txt"
    I have 20 folders that each have 5-10 text files. I want to automatically get the name of the largest size text file from each of the 20 folders, and then run the program on these 20 files as described above.
    Ideally I could point my script to a folder, and it will automatically find the largest .txt file in each of the subdirectories and run "program file1.txt file2.txt file3.txt ..."
    Any ideas on how to most efficiently accomplish this? Ideas or links to tutorials if applicable are helpful.
    Thank you

    Yes this is very helpful, thank you so much. I have a couple of questions:
    What I am doing is actually running a perl wrapper that calls a java program, so my command looks something like this and it works fine if I enter multiple full path file names without quotes:
    perl Program C:\Folder1\Subfolder1\file1.txt C:\Folder1\Subfolder2\file2.txt C:\Folder1\Subfolder3\file3.txt
    The script as you described above does exactly what I am hoping for. For the $Path variable, I would like to either
    1) have this script begin from the directory that is it run from so if I copied it to C:\Folder1\ then it would run the command as shown above, or
    2) allow for a parameter to be passed to it with the path of the directory to begin from e.g. "powershellscript.ps C:\Folder1"
    How would I go about doing this?
    So I believe the last line of this script would be:
    perl Program ($Results -join " ")
    Does this make sense? If so I will give it a try. Thanks again.

  • Music streams but no internet connectivity and a question about a poss. fix

    Forgive me if this question has been answered already (searched the forums for two hours and found none that were answered). Where I work there are two wireless networks, set up completely separate from one another using Linksys WRT54G routers. I've set up my Express to join one of the networks, (let's call it Network "A"). I chose this one because it's closer, signal is stronger and when I tried Network "B", streamed music would crackle out regularly.
    Lately though I find that my internet connectivity disappears on Network "A" while music continues to stream flawlessly (airport signal shows full strength). I reset the Express, restart my computer, nothing seems to fix it outside of leaving for the night and coming back the next day. I switch to the other network, no problems with the internet, but streaming music becomes problematic. So here are my questions:
    1. Anyone have advice on how I can fix the internet connectivity problem on Network "A"?
    2. Failing that, does anyone know if it's possible to set up my express in such a way where it's only being used for streaming music (without joining or extending a wireless network) and then also connect my computer via wireless to either network for internet access? Wired access is not an option here unfortunately...
    Again, sorry if this question has been answered somewhere else.
    Message was edited by: Clavin
    Message was edited by: Clavin

    1. Anyone have advice on how I can fix the internet connectivity problem on Network "A"?
    When joining an existing network with the AirPort Express Base Station (AX), the AX is acting no different than you laptop connecting to that same wireless network. If there is connectivity problems with this network, both the AX and your laptop should "see" the same problems.
    It is very possible that you may have some form of Wi-Fi interference in the immediate area that is preventing your Mac from getting a good clean signal from the Linksys router.
    I suggest you perform a simple site survey, using utilities like MacStumbler or iStumbler to determine potential areas of interference, and then, try to either eliminate or significantly reduce them where possible.
    2. Failing that, does anyone know if it's possible to set up my express in such a way where it's only being used for streaming music (without joining or extending a wireless network) and then also connect my computer via wireless to either network for internet access? Wired access is not an option here unfortunately...
    The only other option would be to configure the AX to be its own wireless network. The disadvantage of this would be that you would have to "switch" wireless networks in order to either stream audio or access the Internet.

  • A simple question about Calculation property

    Hello friends at www.oracle.com ,
    I tried to create a summary column that sums data from another block, but it has failed - Oracle showed the FRM-30377 error, and it was needed to create a non-database item at the block to be summarized.
    This situation has raised one question: if you can't summarize data that comes from another block, why can you choose the block to be summarized at "Summarized block" at Calculation property?
    Thanks, and best regards,
    Franklin Goncalves Jr.

    You can summarize data that comes from another block. But the calculated item must be in a block that has its Single Record property set to Yes.
    So you can create the calculated item in a control block, set Single Record to Yes for the control block, and use the calculated item to display a sum of data from another block.

  • Question About Calculation

    A previous forum user help me out by giving me this code:
    form1.#subform[0].Term_Start_Date::exit - (FormCalc, client)
    // Get the number of days from the epoch for the starting date
    var startNumber = Date2Num(Term_Start_Date.rawValue,"YYYY-MM-DD")
    // Add the lease term to the startNumber
    var diff = startNumber + LeaseTerm.rawValue
    // change back to a date
    Term_End_Date.rawValue = Num2Date(diff, "YYYY-MM-DD")
    This allows me to calculate a lease date based on start date and lease length. It works like a dream. My question is currently once I choose the lease term and the lease start date I must manually click on the Term_End_Date to have it populate properly. I have this code in the "exit*" section. Is there anyway to have the field auto populate once a user pick a begining date, essentialy eliminating the need for a user to click on the Term_End_Date field?
    Thanks to the memeber's.

    You could put it on the change event of the start date field. That will populate the enddate when a start date is chosen. Now if they decide to change the lease period after the start date has been selected the calculation will not fire..... is that acceptable?
    Paul

  • Question about fx:Script

    Hi,
    I have a form using many functions of calculations in fx:Script.
    Can I create a separate file with part of my fx:script? it is getting to long.
    If I can separate this file, can I use this in a different form?
    Thanks!

    You can use the source property:
    <fx:Script source="scripts.as"/>

  • Question about unix script

    Hi all,
    I know this is not the question for this forum but in case :)) if somebody knows.
    I have a shell script to run this completely I need to enter two times if I run it mannually. Now I want to automate that script and want to call that script from another script. Will anybody tell me how to automate 2nd carriage RETURN.
    Thanks in Advance
    Aqil

    > It doesnot give me any error but it doesnt work.
    When I asked "Does that work?" I meant does that approach work in general? i.e. can you ever have a background command as the subject of a here-document construction? I don't see how that could work, because once the command is kicked off in background in a separate process, how can you feed the rest of the input to it? It would make more sense to write
    needcarriagereturn.sh <<END
    END
    ) &or
    function runmyscript
              needcarriagereturn.sh<<-END
              END
    runmyscript &or perhaps
    echo | needcarriagereturn.sh &Message was edited by:
    William Robertson
    Ignore the ">" character in the middle example. The forum software adds it for some reason.

  • Question about using script library

    Dear Mavens,
    I am writing a script that has lots of predefined text items because it deals with reprocessing certain javascript files.
    Here is an example from the beginning of the script (with the actual javascript code mangled because it seems to mess up the display):
    set sdinTXTcf_imgsrc to "<i_mg src=dfaasfaf"<P>
    set sdinTXTcf_onload to " onLoad="p_arent.frames[1].readystate(sfsafasfads"
    set sdinTXTcf_inBetween to "</d_iv>');
    } else {
    parent.frames[0].document.write('<div align="c_enter"><img src=\""
    this section is now getting quite long and I thought of putting it into an external file. What I was hoping to do is to load all these "set this to that" commands into my script then use them as if they had been defined in it.
    The following is a toy script to demonstrate my problem.
    I wrote a mini library which ilooks thusly:
    set var1 to "VAR1"
    set var22 to "VAR22"
    set var333 to "VAR333"
    Then a mini script that calls the mini library:
    load script file "whatever:toylib.scpt"
    get var1
    The result is
    tell current application
    load script file "whatever:toyscript.scpt"
    set var1 to "VAR1"
    set var22 to "VAR22"
    set var333 to "VAR333"
    "The variable var1 is not defined."
    setting up var1 as global does not help either, either in the scrip or in the library
    Now, I can set up the mini library script as a subroutine to be called, such as
    on toy()
    set var1 to "VAR1"
    set var22 to "VAR22"
    set var333 to "VAR333"
    return {v1:var1, v22:var22, v333:var333}
    end toy
    and in the main scipt I can do a
    set loaded to load script file "whatever:toylib.scpt"
    tell loaded
    set var1 to v1 of toy()
    end tell
    get var1
    which works but it is actually more cumbersome than simply having to scroll down dozens of lines of code on the top of the script.
    I'm sure I'm missing somethig here, your help will be appreaciated
      Mac OS X (10.4.8)  

    Hi Asu,
    There are several ways to do this. The easiest is to
    use properties. Your script library might look like
    this:
    property var1 : "VAR1"
    property var22 : "VAR22"
    property var333 : "VAR333"
    You might load it and get values like this as an
    example:
    set f to choose file -- the script to load
    set s_lib to load script f
    var22 of s_lib
    Note that this is not the only syntax.
    When you do things like 'set' in the script library,
    you need to run the loaded script or subroutines
    within it.
    gl,
    It worked. THANKS!

  • Question about calculation example with Query Designer

    Hi guys,
    I have to calculate within columns and rows and I am not familiar with the settings in Query Designer that could be done to achieve the results.
    For example:
    Payments----
    Delay -
    Weighted Delay
    1000USD--10 days--
    10000
    2000USD--20 days--
    40000
    3000USD--xxx--
    50000 (this is the sum row)
    The column marked with the xxx is calculated with the sum of weighted delay divided by the sum of payments (50000 / 3000).
    Has anybody an idea how the sum row can be calculated separately?
    Thank you for suggestions!
    Edited by: saplaz on Jul 13, 2010 8:47 AM
    Edited by: saplaz on Jul 13, 2010 9:08 AM

    Hi,
    Assuming you have the Payments Infoobject in the rows and WD Infoobject in the columns; Delay as a formula object.
    > Payments----
    Delay -
    Weighted Delay
    > 1000USD--10 days--
    10000
    > 2000USD--20 days--
    40000
    > 3000USD--xxx--
    50000 (this is the sum row)
    > The column marked with the xxx is calculated with the sum of weighted delay divided by the sum of payments (50000 / 3000).
    You may try this workaround of using
    NODIM( SUMCT(WEIGH_DELAY) / SUMCT(PAYMENTS) )
    on a formula variable. (In this case, the assumption is you have not static type-restricted the rows/cols) If you find any hinderances in the default approach, you may check this out as a formula & insert this at the cell editor level.
    If not, use a simple formula variable; here define the replacement path as 0(N) for your Payments. (N being the # of digits)
    Use a simple calculation:
    SUMGT(WD)/FV
    But you may not get an result o/p in the last row, as the values are not linked (sans relation with Payments). as it will return a X for the delay in the Result row.
    Pls. let me know know if this works or some sample o/p if the initial assumption was wrong.
    Thanks,
    Arun Bala

  • Help  question about calculating sum????

    what do i need to fix to make it so the digits add together to give a sum i know its in the loop but i cant figure it out can someone giv me a hint
    thanks
    import java.util.Scanner;
    import javax.swing.JOptionPane;
    public class ch10q8
        public static void main(String[] args)
            String input;
            char[] array;
            int digits = 0;
            input = JOptionPane.showInputDialog("Enter numbers seperated by commas");
            array = input.toCharArray();
            for (int i =0; i < array.length; i++)
                if (Character.isDigit(array))
    digits++;
    JOptionPane.showMessageDialog(null, "The digits total" + digits);
    System.exit(0);

    Hey Mr. javakinglow, you never responded to replies in your last three threads:
    [thread 1|http://forums.sun.com/thread.jspa?threadID=5376244&messageID=10656940#10656940]
    [thread 2|http://forums.sun.com/thread.jspa?threadID=5376219&messageID=10656857#10656857]
    [thread 3|http://forums.sun.com/thread.jspa?threadID=5373645&messageID=10642792#10642792]
    This kind of implies that you possibly didn't even read the replies and that you'll likely not read or respond to replies to this thread. Are you sure that this is the message that you want to send?
    Best of luck.

  • Question about PHP scripting

    i just did a PHP script for a web form, it works fine that
    when i press submit, it displays the page said "thanks for
    submitting," but the problem is i never receive the email of the
    data, any idea?

    I agree with GarryCT that you should try a simple test (no
    HTML) to see
    if you can send mail at all. If that succeeds, then try
    building it up
    to the point you're hoping for.
    When sending HTML mail, you /might/ want to consider
    including a plain
    text version and sending multi-part email.
    Anyway, here are some comments I have for the code posted
    here:
    Try
    temporarily turning on display errors.
    > <?php
    ini_set('error_reporting', E_ALL);
    ini_set('display_errors', 1);
    > /*subject and email variables*/
    > $subject = 'php scripting';
    > $me = 'my email';
    > /*gathering data variables*/
    > $name1 = $_POST ['name1'];
    > $name2 = $_POST ['name2'];
    > $email = $_POST ['email'];
    > $company = $_POST ['company'];
    > $brief = $_POST ['brief'];
    >
    > $body = <<<EOD
    > <br><HR><br>
    > First Name: $name1 <br>
    > Last Name: $name2 <br>
    > E-mail Address: $email <br>
    > Company: $company <br>
    > Brief: $brief <br>
    > EOD;
    Hopefully, that indent was caused by the Web forum.
    Otherwise, EOD;
    should be at the very start of the line - no white space[1].
    EOD;
    > $headers = "From: $mail\r\n";
    You have not assigned a value to $mail. Some hosts require
    this to be
    an address in your domain. Try using your $me variable here
    (assuming
    it is a valid email address from this domain).
    > $headers .= "Content-type: text /html\r\n";
    Try removing that extra space. You might also need to add
    mime
    version[2]. Does order make a difference? Try this for the
    $headers
    variable:
    $headers = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' .
    "\r\n";
    $headers .= "From: $me\r\n";
    > $success = mail($me, $subject, $body, $headers);
    You are not acting on the TRUE/FALSE result stored in
    $success.
    Everything after this point assumes mail was accepted for
    delivery. Of
    course, TRUE does not necessarily mean the mail actually got
    to its
    intended destination[2], FALSE does indicate that it was not
    delivered
    at all.
    > /*results rendered as HTML*/
    > $theResults = <<<EOD
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    > <title>Untitled Document</title>
    > </head>
    > <body>Thanks for your time, we'll get back to you
    within a day.
    > </body>
    > </html>
    > EOD;
    Hopefully, that indent was caused by the Web forum.
    Otherwise, EOD;
    should be at the very start of the line - no white space[1].
    EOD;
    > echo "$theResults";
    > ?>
    [1]
    http://php.net/echo (see "here
    document" in examples.)
    [2]
    http://php.net/function.mail
    Mark A. Boyd
    Keep-On-Learnin' :)

  • Network Management: Question about calculating network,host and broadcast a

    I would like to say i am new to this forum and I do not know if this is the right place to post this but i am currently in a cisco academy for CCNA and if anyone else is in this class i am stuck @ 6.2.2 in the online cisco material.....
    given the following address/prefix of 141.124.88.174/30
    enter the last octet in binary of the network,
    I am totally lost @ how to find the network octet i know /30 means the first 30bits are network and the last 2 are host i also know the last octet is 10101100 or 172
    my question how do you get .174 to .172??? if you are wondering how i know the answer --it is in the book i just dont know how to do it on my own :)
    thanks much

    Eric
    My sense is that you may have skipped a step (or maybe I skipped in understanding your post). The best way to explain this is to refer to binary - which you have started to do.
    For address ...174 the last octet is 101011 10 (in which 101011 represent the network bits and 10 represent the host bits). To find the network bits make the host bits all binary 0 - which means that the subnet address is 101011 00 or 172.
    So the answer to your question is that you get from 174 (host address ) to 172 (network address) by changing all host bits to binary zero.
    HTH
    Rick

  • [SOLVED]A simple question about bash scripting

    Just for fun, I thought I'd try making Arch as "parent friendly" as possible (i.e., easy to use once set up).  I've already made a nifty little "system maintenance" script that presents you with a "select" bash menu, with options being "Install, Remove, Update [Without AUR, with AUR, abs, exit], Search, Install and Search (using Yaourt), and exit"
    That works wonderfully, and it only requires typing "sm" into the terminal.
    But just to make it yet *more* "parent friendly", I thought I'd make a .desktop file.
    This is the problem.
    I want the shortcut to essentially open up the script in a terminal.  So it would have to execute, say, "xterm" and then open the "sm" script within the called terminal.
    I believe this would mean I need to either add something to my "sm" script or make a new script that opens terminal and calls sm.
    I'm sure this has an easy solution, but I'm a total amateur just having some fun.
    Any suggestions?
    Last edited by hwkiller (2010-07-13 00:32:48)

    I am not a 100% on .desktop files since I never use them.
    but if your command in the desktop file is something like
    xterm -e /path/to/your/sm/file
    that should work.
    EDIT: Bah too late !
    Last edited by Inxsible (2010-07-12 19:27:11)

Maybe you are looking for

  • Can Oracle HTTP Server 2.0 be installed with Oracle App Server 10.1.3.4.0?

    Or I guess a related question is what version of apache comes with the latest App Server Patch Set (10.1.3.4.0)? We are running OAS 10.1.3.3.x and we are having issues with URLs that end in a number but which have query parameters at the end. E.g. ht

  • Releasing Licenses Crystal Reports 2008

    We are considering to migrate our infrastructure  to Crystal Reports Server 2008. We have setup a test server with 5 CAL, and in order to make our reports work here,  we had to modify our code slightly to use a different viewer (Interactive viewer is

  • SAP DMS configuration

    Hi all, Can we upload primavera files in SAP DMS? What settings are required for that from configuration side of DMS. Kindly help.

  • Mapviewer 11ea Problem

    Hi I have developed application to display map [stored in oracle spatial] on web using Mapviewer 10.0.2 and Jdeveloper 9.0.5.2 and is working fine. Now i am trying same application using Mapviewer 11ea but it gives the following error. Can anbody sol

  • Canon Powershot S50 hack to be supported by Aperture 2.

    Hello S50 users (and possibly others). I do have a Minolta SLR, and a old PowerShot S50 which happens to have a RAW mode, unlike new compacts by Canon. I also bought a waterproof case for it, so it's my only one which i want to risk it underwater. As