Local variables with cross dimensional operator

Hello

I have a business rule that has the following calculation:

VAR TOTPROD;
TOTPROD = "Prod1" + "Prod2" + "Prod3."

"MBR1" = "MBR2"->"Jan"-> TOTPROD / "MBR2"-> "YearTotal"->"TotalProducts";

The statement above does not work for obvious reasons, that TOTPROD is not a member name.
Is it possible to use a local variable in a cross dimensional operator statement?
I want to use the local variable in order to avoid another hierarchy.

I use Essbase / DGPS 11.1.2.2

Help, please.
Thank you.

Hello

As you say, I don't think that the approach you have will work.

What is to be

a. creating dummy product member in your plan and put your result on it (or use an existing Member of "dummy" product)

b. re - write your code to handle you want to... do something like (assuming you add Prod1, 2 and 3):

'MBR1' = ("MBR2"-> "Jan"-> "Prod1" + "MBR2"-> "Jan"-> "Prod2" + "MBR2"-> "Jan"-> "Prod3") / 'MBR2'-> 'YearTotal"->"TotalProducts ";

Not sure if I'm missing something here, but or one of these suggestions do not help?

JB

Tags: Business Intelligence

Similar Questions

  • proxy for a cross-dimensional operator

    All,

    Essbase doesn't like it:

    "Jan")

    ('Real'-> '2011 '->' 001 '->' abc') = ("Run1'-> '2011 '->' 000' - > & overhanging);

    )


    I have a variable substitution inside a cross-dimensional operator?

    The error you mention, that's what you see, if you put quotes around the subvar reference in the formula, but have you tried including the double quotes in the value of substitution variable when set you it in the dialog box "Variables of Substitution" in environmental assessments? In other words, so that what appears in the "Value" column looks like this...

    * "Your member name" * "

    .. .not this...

    Your member name

  • Change local variables with dll c#

    Sub AppMgr_UserMessage (UIMessage uiMsg)

    {

    Try

    {

    switch ((int) uiMsg.Event)

    {

    10200-case: //update the UI to reflect the current status

    progressBar.Value = (int) uiMsg.NumericData;

    label. Text = uiMsg.StringData;

    break;

    10201-case: //Close form, cleaning of the AppMgr reference

    AppMgr = null;         This. Close();

    break;

    //=========================================================

    10202-case: / / send the text to the caller App test bench

    label. Text = "10202."

    uiMsg.AsPropertyObject (). SetValString ("Locals.opText", 0, "Something");

    break;

    //===========================================================

    It is a code in your example of Panel floating .net

    In the last case above trying to change one of the local variables of the test bench. I think that it is probably not wise to cast as a how PropertyObject uiMsg which I have here.

    I think it is more likely that I'll have to pass the variable I want to change benchmark to the DLL.

    Don't know how to do this, any ideas?

    Hi Krugman2,

    To do this, you need the coresponding SequenceContext!

    Try uiMsg.Thread.GetSequenceContext(0,frameId). AsPropertyObject()

    Maybe this thread could be interresting:

    http://forums.NI.com/NI/board/message?board.ID=330&thread.ID=17870&view=by_date_ascending&page=1

    Greetings

    Jürgen

  • Put quotes around a Substitution Variable with MaxL

    All,

    I need to have quotation marks (that is to say, 'brands) around the value in a variable substitution for the sub. var to work inside a-> cross dimensional operator. I can add the quotes in Server | Change | variable in assessments environmental but can't make it work with the SET command alter database. It works very well with quotation marks around it, but when I check the value of the variable in the EAS do not show the quotes. If I try to put two pairs of quotation marks around it, I get an error MaxL.


    Thank you
    T.

    Single quotes around the double quotes should work for the value parameter.

  • Copy a structure of event containing local variables

    Hello

    I am a state machine design in Labview and next state transition logic to wait be clicked a few buttons on the Panel.

    If I press a Boolean button from 1 to 9, next State should be X, otherwise condition (10 to 16 tags) should be there.

    I thought that the right approach, because it would be a structure of the event, where I added two cases: case 1 (button 1: mouse to the bottom button 2 down,..., 9 of the mouse down) and box 2 (10 mouse buttons down,...). For each of these cases, I'm reading & writing the local variable of some double digital.

    When I copy the structure of the event in another case of structure of outer case, I note the following: all cases in the event loop is missing, and the local variable renamed automatically and a new created indicator digital.

    • How to make an exact copy of the structure of the event, without the problems described above?
    • Could you suggest a different approach more effective than mine?

    Thanks for any response.

    Start by reading the guard and recommendations for using events in LabVIEW - LabVIEW 2011 help

    The fact that you try to copy and structure of the event to another, and that a structure of the event will be buried in a case initially tells me you are already heading on the wrong track and yourself in creating a world of problems.  Your architecture will never seem to work for you.

    The event structures are always active and capture events.  Even when the structure of the event is not in the path of execution, it's queue of events to which he attributed to him.  If you have events that are set to lock the façade until full, then you're really screwed because the event structure will capture the event, locking of the front panel and the execution path of your code with the state machine may never come to the specific case that has captured the event to support then release the façade.

    In general, you should have the structure of a single event in a VI, and should not be buried in a case structure where he can never carry.  You also shouldn't have several event facilities manage the same events.   These are not hard and fast rules, but until you are quite familiar with how the event structures work and completely understand the architecture of your code, you should not violate or you will just ask trouble.

    Similarly with the help of local variables.  The fact that you say that you have local variables and you try to copy tells me that you already have too many.  There is certainly a better way to build your VI, which does not require local variables with the exception of a few cases and certainly won't need several structures event buried in the structures of the case.

    You should probably have a producer/consumer architecture that handles the events.  Have a simple loop with a structure of the event which captures all user interactions.  Pass events to a loop of consumer who is also your computer through a queue of State.  (Also known as a computer state in queue or the BAU).  Let the state machine to determine how to manage the events, he received based on what is the current state of the VI.

  • Local variables are comparable to the value property of a control or indicator?

    I use the buttons / switches mechanical locking action, event structures and local variables to track the status of my switches.  I used local variables with indicators, too.  Now I see that this could be done via the node property of a switch or an indicator.  Should I use the nodes property instead of local variables?  Should I use "switch" mechanical action and control the State of the control buttons / switches?  I used a mechanical locking action because it automatically reset when it is read, but who pushed me in the use of local variables.

    I know the property values to adapt the data flow model, while local variables might be placed in a sequence structure to ensure the order of execution.

    I just don't want my program all except if it is a correct approach.

    Thank you

    DH

    Dark Hollow says:

    Well, I'm changing the properties of user interface in my state machine.  For example, when you push a button to START the TEST, I want to disable and gray this button and activate the button to STOP the TEST.

    No engineer too much. In this case, you can use a single button and label the FALSE case a 'start Test' and the REAL case as TEST 'STOP '. No additional code needed at all. At the same time, you only use the half-Panel space! (and 10% space diagram!)

    Dark Hollow says:

    Another example... I have a couple of dozens of LEDs on the front panel to show the TEST SUCCEEDED.  If I have the wiring all of them, my state machine diagram gets messy.

    Define disorder! In my mind, code is not held together by wire is much messier because it is impossible to determine the order of execution and so program logic. A thread is a small 1 d object. A property node is a significant 2D object. 20 wires are much less messy than 20 knots of property, especially given that each property nodes still hanging by a thread in one way or another!

    In order to reduce the number of threads, use the most appropriate data structures. Instead of a few dozen sighted use a single Bay of LED. A single wire! Keep the table in a shift register and update alone LED as necessary by using "replace subset of the table".

  • Shift register to replace local variables

    Hello

    I'm looking for a way to make a marquee on a Boolean LED. Currently, I use a local variable to make the scrolling action (see the code, the loop For on the right). However, this method requires CPU more power and also prone to several other error. Therefore, can someone help me to replace local variables with shift register? If possible, do not change the other loop. Thank you.

    -l' scrolling action must be continuous

    -use the attached config. file

    -allows to test with any text message

    Why do you think that you need so many loops?

    Try this, perhaps this may give you some ideas...

    (Look at buffer allocations. My table of Boolean 2D works at constant size and completely in place. Not only were constantly read and write to and from the local variables, you were also constantly growing and reducing the size of the table. It's very ineffiicient. I don't see the purpose of your outside while loop or FOR your first loop. None of your shift registers makes a lot of sense. You probably want to close the file of configuration (not shown in my modification)).

  • Question parliamentary formula - a member formula can be crossed dimensional

    How you would write something like this

    "XXXXXX" = account of range 40000 to 48999 and BU XXXXX-XXXXX-XXXXX-XXXXX


    Thank you

    Yes, the formula of Member can be three-dimensional cross.
    You can use the calculation functions and cross dimensional operator that you use in the Calc script.

  • In collaboration with a no engine in the types of different scheme (local variables).

    The program below is used to control a motor with the NI 9401. However, it has been designed to work in two ways, when you push the buttom "adelante" or "ago" he turns in one direction or another, but if you press 'Start' it begin to move in a particular way (which I mentioned) and if you press again the same ('Start'), we need to stop (this way you can push the door "adelante" or "ago" If you want to). The problem I have is with the "local variables", because when the 'Start' button is the I three while loop and I Don t know how said it stops when the 'Start' button has been pushed and the same when the 'Start' button is pushed, and I press the 'Start' button to stop it. I have a mess with the function of local variables.

    I know it's a little complicated to understand by Word, I tried to explain more clearly.  I hope you can help me.

    Hello matt198717,

    Yes, I think that the problem was trying to use local variables in parallel loops. I use this property at the time of the node and it works!.

  • Simulation & Control with local variables

    Why should I use a local variable in a loop of simulation, but not in a Subvi simulation?

    Local variables will only work in a Subvi are those that relate to controls or indicators located in the Sub - VI.  If you need to pass data between different from the Subvi, so you have several choices.

    1. common variables, as you said.

    2. global variables, as you said.

    3. pass the data in or out through the pane of the connector of the Subvi.

    4. functional Motors Global Variables/Action.

    5 lines of

    6. the references to the controls in the VI main so that they be used with nodes of property in the Sub - VI

  • How to set multiple values clustered with local variable?

    Hi all

    Okay, I made my way through Labview for everyone and have some basic concepts down. I can see with a cluster, if acting directly on it, you can ungroup, change values, rebundle, etc..

    I try something a little more complex... and just do not know how to start on this.

    I have a menu menu ring set. I created this with a typedef, with 4 values.  I used this typedef 7 times, more a few LED bool, in a cluster. I made this cluster a typedef.

    Therefore, in my main vi, I started designing, I put an example posted here... and inside, I have two instantiations of the typedef cluster commands selection of left and right.

    I dropped in this vi, a copy of the menu ring typedef (same typedef as in clusters, values) called reset all tubes.

    Now, I am trying to understand how, with an event to change the value to 'reset all the tubes'... that I can start with the left switch and change all tubes (here is the menu ring selector) to the same value as what has been selected with the ring of menu 'Reset all the tubes'.

    I created a local variable for the selector on the left. It is configured to read values. (I'll be doing the same thing with the right too, but just to start with the left).

    In the examples I've seen where access to a cluster, you could ungroup the cluster... browse and change the values... maybe pull out all the "hits" in a table and go through to update the values.  And when you group or ungroup the bunch... you can see the values, etc., when you stretch on the block diagram.

    With the local variable... I do not see to 'stretch' it as I expected... so I can access the values "tubes"... and all at the value of the 'reset all the tubes' ring menu value.

    Someone can put me on the path on the best way to do... or is it a component structure I'm missing here?  Am that I on the right track everything first here?

    It seems pretty basic to me, but miss me just something here on the way to start...

    Thank you in advance,

    Cayenne

    You can't do this with a for loop of how the Department is structured, but why make it so complicated?  Just group the new value in the cluster, as shown below:

    If you do not want to use a loop for example, consider the restructuring of your cluster.  Group ring and a Boolean value in a cluster, and then unmold 7 of those in the cluster of selector.  Then you can use 'cluster to the table' and 'picture of cluster' for all elements of the external cluster will be of the same type.

    Also, be careful when using rings in the form of type definitions.  You probably want to use an enumeration instead.  The elements of a ring do not update the when you update the type definition because they are considered to be cosmetics. the elements of a definition of enumeration type update, because the elements of an enumeration are considered as part of the data type.

  • LabVIEW: Concerns with local Variables and the readability of the program

    Hello everyone. I was hired for the summer to work at my University to a new laboratory. All right, but I have some problems with my main VI. I am a new user of labview coming from a C++ background. I went through several iterations of adding features, fixing bugs and doing my readable program. Before the last "cleaning" my program was so big that I couldn't see it all at once on my screen. My goal was to solve this problem. My solution contained three parts: use a state machine show parts of my code at the same time, to remove the son as much as possible, and use structures element to position my code manually.

    I met since problems write other programs that brought me here, and I saw a series of messages condemning the new programmers for their use of local variables instead of cables. I do not know my use of structures element as fancy boxes I can exclude the automatic cleaning is also a terrible practice.

    After doing some more reasearch on the subject I see local variables to add the duplicate in memory entries and their suppression can significantly speed up execution time. I have a delay programmed in a part of my code, but the rest can run as fast as he can as far as I'm concerned.

    I have attached my main program. Looking at it I think I did a good job to make it readable. But I'm not a user expert labVIEW.

    How to balance (do not use local variables, these structures element, etc.) efficiency and readability. Before you make these changes, there was so many things and so many threads all over the place that I couldn't even tell what was going on, and even less my teacher. I really wish I could see my entire program without scrolling on this computer of the laboratory (resolution 1280 x 1024).

    Advice on how I can achieve the efficiency, simplicity and common readability would be greatly appreciated. I feel I've done the latter while sacrificing the first two. Ultimately the three should probably be equally important.

    Thank you.

    Nukem

    LabVIEW 2010

    As said altenbach, attach your event structures.  It should really be only need structure of an event, especially for a simple VI like that (I counted 3).  This is the second time I have recommended this today, but fetch JKI State Machine.  I use as the basis for most of my interfaces.

    Here's a way to manage the break with JKI.

  • update with local variables

    Hello

    I'm sure that this should be easy for the LV user, but I still get angry with the case.

    In the circle 1 Gauge_error has the value true, but when it happens in the circle 2, it is set to false (which is the default).

    I don't understand why because between the circles is true, as it should.

    I know I did something wrong with this local variable. I tried with the property node: value but the problem is still there.

    Thanks for your help.

    It's a classic race condition and is precisely why you should not use inhabitants. You assume that the second room is read after the first local in. Absolutely not true.

    Really, really work to replace the premises with a wire.

  • How can I get the changed data in a def type control containing an Xcontrol with a local variable

    Hello

    I did an Xcontrol and I inserted this control in a def type.

    When I want to change the data of the control with a local variable in a VI the VI change nothing. The change of the data is not complete

    How can I fix this problem?

    Thanks for your help

    Hello

    What is your version of LabVIEW? You have a simple example program that demonstrates this behavior?

    I found an other discussions related to your problems with Xcontrols:

    update of type defs Xcontrol faade

    No data change event generated for an XControl in a Type definition

    XControl facede.vi

    I hope this helps.

    Kind regards

  • How to replace the variable with the help OF the operator?

    Hello

    I'm creating a form where the user selects the check box which products he wants to see. After the choice, I should show all sales of this product, but the selection does not recognize the variable after the IN operator, for example:

    SELECT the product, price, quantity
    FROM the sale
    Product WHERE IN (vcProducts);

    Can someone help me?

    Cree

    I guess that vcProduct is a varchar2 variable where you have a chain of your prodids, as ' 4711,4712 concatinated, 4713'. May be you have each place value '. Is not the question, which is not part of the sql syntax set. You either have a list of enumeration or a subselect.

    Where do you need it? In the block or Pl/Sql where clause.
    In the latter case, you can configure the list in a variable (with enclosing "") and set the block where property.

    In the first of may by INSTR is useful, INSTR (vcProduct, vcDelim | table.prod_id | vcDelim) > 0. Make sure you have your list attached and separated by the vcDelim. If you prodct table with the number of lines (million), it can be slow because no index will be used.

    Dynamic sql or.
    Or write a subquery und temp-table.

Maybe you are looking for

  • A100 HDD replacement

    We need to recover the disk hard as a former employee has deleted some files in the operating system.We do not want to reinstall Windows because it my effect some other files being deleted, and by accident!We have the software to recover the data, bu

  • Unable to detect and open the HARD drive

    Hello. I have a Seagate 1 TB external hard drive. And my mac is running on the latest OS, I was still able to connect and open my hard drive on my mac, but after reboot my macbook only once after an update, I can access is no longer my hard drive. Wh

  • comment the view administrator

    I noted as possible for new users of this show. When looking for answers to problems will add their questions to permanent positions which, in some cases, are two three years old or more. Or new, instead of creating a new question from their own. is

  • Equium L30 is very slow

    H it. Has been working for some time with computers. The behavior on this computer: Incredible slow when ever do something, fix something, try to access the system of setting etc..Two times I have used the recovery cd, but problems occurred again. Ev

  • my files and photos disappeared from my site to administrators only on my desktop PC

    Does this mean that my PC was hacked and they took all my gear or could they have been moved to a different location on my PC