[Time].[Date].[Date] vs. [Time].[Date].Members in a Scope

Hi folks,
I'm just trying to understand how the subcubes are created using SCOPE.
Example 1:
SCOPE([Measures].[Credit Note CA]);
SCOPE([Date NextYear].[Date].[Date], [Time].[Date].Members, [Currencies].[Currency].[Currency]);
THIS = [Measures].[Credit Note LC] * [Measures].[Exchange Rate To Euro NY];
END SCOPE;
END SCOPE;
Example 2:
SCOPE([Measures].[Credit Note CA]);
SCOPE([Date NextYear].[Date].Members, [Time].[Date].Members, [Currencies].[Currency].[Currency]);
THIS = [Measures].[Credit Note LC] * [Measures].[Exchange Rate To Euro NY];
END SCOPE;
END SCOPE;
The difference between both examples is: [Date NextYear].[Date].[Date] vs. [Date NextYear].[Date].Members
If I use the 2nd one I get the results that I expected.
I should explain that the measure [Measures].[Credit Note LC] is related to the 3 dimensions: [Date NextYear], [Time] and [Currency], while the measure [Measures].[Exchange Rate To Euro NY] is only related to [Time] and [Currency].
The only different I can see if when I use the "Members" I get the set of members in the [Date] level, if not I get the same result + the All member, but I don't know exactly how this affect the subcube and my results.
Could anyone explain me that? I would really appreciate it.
Kind Regards,
Paul

Hi Paul ,
Using [Date NextYear].[Date].[Date] will return the Date members without the All member .
Using [Date NextYear].[Date].Members will return all members including the ALL member itself (assuming IsAggregatbla property set to true) .
Please refer the next short but well written post from chris webb about that topic :
http://cwebbbi.wordpress.com/2010/08/03/order-of-nested-scope-statements/
Regards, David .

Similar Messages

  • Static data members

    i am trying to change static data members that are in one class in another class.
    so i have to keep making statements like
    classname.datamembername.method()
    i have to keeping calling classname. a lot of times, is it possible to do it without?
    maybe a bit like passing addresses in c++?
    thanks in adavnce,
    T-fox

    Would i not need to do it like this instead?
    Object obj1=classname.datamembername;
    obj1.method();because after you have created obj1, you dont use it?
    thanks anyone in advance.
    T-fox
    The below statement does the same job as of address
    passing
    Object obj1=classname.datamembername;
    datamembername.method();Bye for now
    CSJakharia

  • Adding data members and methods to generated classes that will not produce

    I want to use XMLBeans XMLObject for a project, but for the classes generated by XMLBeans, I want to add some additional data members and methods to handle program state that I do not want to have written out to an XML document.
    I have been using .NET's system.xml.XmlParser class, and it provides this sort of capability.
    In looking at the code produced by XMLObject, it looks possible.
    Question: Does anyone have any thoughts on the best way to accomplish what I want to do? Is there a good design pattern to follow?
    Question: Are there any gotchas in doing this? The only immediate one I can think of is that everytime the .java files are regenerated by XMLObject, I will have to reinsert my data members and methods.

    Hi Chuck,
    Setting the dispaly Field property should in no way affect your validation execution.
    The valiadtion if is working fine on the field value when it is not a display field it should do so when a display field as well.
    Besides if you are working on MDM main table all the main table fields are display fields.even if you do not set the property.As main table fields are always visible in MDM Data manager.
    Which version of MDM you are currently working on.
    As I have tried on the SP06 version on MDM and the  Null  validation runs fine on Display fields as well.
    Check your MDM version and also your MDM clients as well as MDM server be on the same version.
    What I am finding confusing here is that initially you wish to keep the material number as Blank for the approver to enter the material number which will be send through a mail.
    But the validation is checking for the material field to be balnk then how are you poulating the same field with Material number in the later stage.As it will fail the validation here.As per teh vlaidation it should remain blank as soon as someone enters a value it will throw an error.
    Or in either which wise you need to mainatin 2 valiadtion steps before and after the Approver for blank and filled field check.
    Just check your process flow correctly and the order of it in case that is causing the records to fail.
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • Error : Period dimension 'Period' is missing a Base Time Period member 'Jun' that has been deleted since the last deployment. Base Time Period members cannot be deleted once the dimension is deployed

    HI,
    I am using V11.1.2.2 Hyperion Planning. I am currently getting an error:
    Error : Period dimension 'Period' is missing a Base Time Period member 'Jun' that has been deleted since the last deployment. Base Time Period members cannot be deleted once the dimension is deployed
    This is what i got when i tried to add alternate hierarchy to my shared dimension. I tried to delete it and it messed up.
    NOw it wont deploy my application.
    Can any one suggest.
    Thanks in advance
    Cheers,
    XXX

    EPMA!!!!! EPMA!!!!
    I'm playing around with it to write a blog post and it is crazy. Only possible workaround (till now i'm not able to figure out a solution to it) is to copy the application and deploy it as a new one. Take copy of all objects (forms, tasklist etc). Delete the corrupted application and rename the new one to old.
    Regards
    Celvin
    http://www.orahyplabs.com

  • Failed to retrieve long data for column "Contract Scope".

    Error: 0xC0202009 at Task 1 - Import P Data, Excel Source [1]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E21.
    Error: 0xC0208265 at Task 1 - Import P Data, Excel Source [1]: Failed to retrieve long data for column "Contract Scope".
    Error: 0xC020901C at Task 1 - Import P Data, Excel Source [1]: There was an error with output column "Contract Scope" (33) on output "Excel Source Output" (9). The column status returned was: "DBSTATUS_UNAVAILABLE".
    Error: 0xC0209029 at Task 1 - Import P Data, Excel Source [1]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "output column "Contract Scope" (33)" failed because error code 0xC0209071 occurred, and the error row disposition on "output column
    "Contract Scope" (33)" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.
    Error: 0xC0047038 at Task 1 - Import P Data, SSIS.Pipeline: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "Excel Source" (1) returned error code 0xC0209029. The component returned a failure code when the pipeline engine called
    PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
    Information: 0x40043008 at Task 1 - Import P Data, SSIS.Pipeline: Post Execute phase is beginning.
    Information: 0x4004300B at Task 1 - Import P Data, SSIS.Pipeline: "component "OLE DB Destination" (95)" wrote 0 rows.
    Information: 0x40043009 at Task 1 - Import P Data, SSIS.Pipeline: Cleanup phase is beginning.
    I cant seem to change the size of the this column in the EXCEL SOURCE .It just changes it back to
    Unicode string [DT_WSTR] and 255 characters . This field contains strings greater than 255 characters .

    I found a great solution to limitation of excel when reading cells with a lot of text and when firts rows has no data!
    Look here: http://dataintegrity.wordpress.com/2009/10/16/xlsx/
    aaaa

  • Serialization access to data members through SecurityManager?

    Hello,
    What is the standard way to gain access to member variables for "generalized" serialization? For instance, let's say I want to serialize a class but Java's default byte serialization isn't good enough for me (if I want something like object to table mapping...). At the same time I have an "arbitrary" codebase that doesn't adhere to some "easy to predict and map" pattern (such as Java Beans), so I can't easily tell how to access the member variables.
    What I am thinking of doing is splitting my problem up into:
    1) listing and gaining access to all relevant variables
    2) using a 3rd party storage solution (OJB, Castor.......)
    If I use SecurityManager I think I can easily list and give myself access (in the "serialization layer") to all variables of a class (and hopefully I can easily sort out the transient ones) regardless of if they are public, ..., or private. Is this true? Should I be using another mechanism instead (I'd prefer to use Reflection, but if I use it in a class seperate from the one I'm investigating, I think I'll have the same limitations that arbitrary code would have (in terms of access)).
    Once I can inspect arbitrary classes I can hopefully develop a mapping algorithm easily (my task is somewhat complicated by details like inner classes, but it shouldn't be too bad) and generate the "mapping files" (if any are required) for my storage solution.
    Then I plug in the storage solution and run with it.
    Has anyone attempted such a solution? Does this seem like a good approach? I am thinking that, each time my codebase is modified I point my standalone scanner at the relevant classes, and it generates a new and up to date mapping (this eliminates the problems of programmers being burdened with writing mapping files, and the errors and testing this would necessitate). Before the application(s) are run these mapping files are put in place for my serialization mechanism (the 3rd party solution) to use.

    I assume you're talking about classes that you can't reasonably modify yourself. The JRE provides hooks (see java.io.Serializable) whereby classes can change the way they get serialized and deserialized, typically to make it more effecient. Indeed many classes in the JRE do exactly this.
    It would be a bad idea to try to substitute your own serialization from outside the classes. There is no guarantee that classes serialized and deserialized this way will work properly. For example, the readResolve method can be used by a class to ensure that only one instance of a class with a given value(as determined by equals) ever exists within a Java VM. Since an external serialization would have no knowledge of this semantic, it would break any mechanism that relies on this behaviour.
    Sylvia.

  • What are the possible Monitor Object status data members

    I have problems connecting to the object over ethernet. I need to know what the status data member text info means.

    Hi,
    The status datamember of the Monitor object gives the state of the "connection" you're trying to monitor. For instance, when this datamember is displayed on a panel, it shows text like: "Good," "Disconnected," and so on.
    Hope this helps,
    Khalid

  • LVOOP challenge question: How is Memory managed when objects are data members?

    Background:
    I am working on a compact field point and am sensitive to memory usage.
    I would like to know hoe the labview Realtime compiler treats my code (It is a bit of a Black Box.
    My Class contains other objects:
    and then later in my code I use what I call Run Loops: Multiple Parallel loops executing various threads: Below.
    It also calls some of the classes Ancestor objects:
    My question is: does this approach make a second copy of the embedded(Included) objects.
    If so does anyone have any clever ideas about how to avoid this?
    Thanks in advance.
    iTm
    iTm - Senior Systems Engineer
    uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT

    tst,
    Thanks for the Link,  And the response.
    In the spirit of sharing ideas, if my application wasn't a pyramid of classes, it would be an easier solution:
    Use in-place structures, that way they won't be copied
    The hearteache is that when you do that, you lose access to the parent data and functions.
    Plan "b" is to convert the embedded objects to Refnums, That way only the Pointer is retained by the parent class.
    The Drawback is that they can be painful to code as a Data value reference read is required for each thread and may only be used from within the object. Refnums don't polymorph easily
    I have also unearthed some very odd compiler behavior.
    iTm L
    Plan "C" is to "Check out" the Object replacing it with a default. and hope the compiler doesn't allocate memory for it.
    iTm - Senior Systems Engineer
    uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT

  • Private data members vs. local variables

    Hi
    This is more of a basic design question.
    I have a code that retrieves a lot of data from a text file and puts them into the database. I have one function per table for inserting rows which are called from various functions in the code. I have all the functions (calling and called) in the same java class.
    The number of variables that are needed to hold the data are approx 40. I was thinking if I should have them as class variables and update them and just access the values in the functions where I do the database updates or should I have them as local variables and pass them when a function is being called. Or should I be putting them into some data structure and pass the data structure.
    I want to know which method would be memory efficient and would not hurt the performance of my code.
    Please do let me know your valuable opinions.
    I would greatly appreciate any thoughts on this.
    Thanks

    I would strongly advice against using fields as a way to get around long method invocations.
    For one thing, it's not using fields as object state.
    Second, it's a really good source for bugs. I've seen it happen. The "bucket" fields (to coin a phrase; I mean fields used to bypass long argument lists) become messy, unreliable data, and next thing you know some method is breaking other methods. This becomes especially dangerous when there's multithreading, but you don't need multithreading to get bugs from this.
    If you have a lot of values you need to pass around, then two possibilities occur to me. One is that these values are configuration data, in which case they probably do qualify as object state and maybe you can use fields. The other possibility is that you need to refactor your code; all those values may need to live in one or more new classes that you need to write. Another refactoring may be the order in which you perform the steps in your algorithm.

  • Does somebody know a method to download all master Data members in Excel

    Hello,
    i'm searching a method/function which is able to Download all dimension members with a few properties in an excel worksheet? Or should I create an evdre with all base members?
    Thanks,
    Gerrit

    Hello,
    You can use the auto filter option within the Admin console, and place a check next to the properties which you wish to select. Then you can select those member and copy it to another sheet.
    The EvDRE option works just as well.
    Regards,
    Jason

  • Applicom OPC Server Data Members Identification Help

    I am using an Applicom PC104 Profibus DP card with Lookout. I am using the Applicom OPC Server object in Lookout. When I look/try to configure the Profibus slaves - each slave (equipment) has a bunch of modules associated with it (eg. MODULE0-IX0-0 through MODULE0-IX4-8). How do I know which Module contains the information I am looking for (in this case I am looking for an 4-20 mA analog signal from a pH meter). Any help is greatly appreciated. The document that NI has on "useful consideartions..." did not help. Thanks.
    Sudhi

    1. Which version of Lookout are you using? In an old version of Lookout we might forgot to install the appcyc.dll. That should be in the Lookout folder.
    2. Yes, it would be better to contact Applicom, since they install the server, which has to be configured first, before you can connect with a client (Lookout). To test the server configuration you might use as well our OPC Test Client (Server Explorer, which is installed as well with the latest Lookout 5.0)
    Actually, I have just some minor experience with the PCI-1500PFB which however uses the Applicom 3.4 driver and not the ApplicomIO. Even though, I don't know for sure if the native Lookout applicom.cbx would work with the ApplicomIO. But I assume that underneath you just need to configure
    the PC104PFB with any kind of tool (set EquID, ChanID, Protocol...) and the initialisation has to be started at PC startup.
    I've attached the appcyc.dll, just in case you wouldn't find it on your installation.
    Feel free to add any experience you will make. Other DevZone users might find it helpful.
    Hope this helps.
    Roland
    Attachments:
    Appcyc.dll ‏27 KB

  • AT&T Doesn't Care About Long Time Loyal Members Time to Switch

    I recently went to Verzion to see what they offer and they offered me 15gigs for $80 a month while at AT&T I'm paying $80 for 10 gigs. I called AT&T to see if they can do anything about it and both rep for AT&T and the Mananger said nothing we can offer other then 20 gigs for additional $30. After being with AT&T for 15 years and the attitude i got from both the rep and the Manager lack of carring its time to switch to Verzion. 

    asmir03 wrote:
    I recently went to Verzion to see what they offer and they offered me 15gigs for $80 a month while at AT&T I'm paying $80 for 10 gigs. I called AT&T to see if they can do anything about it and both rep for AT&T and the Mananger said nothing we can offer other then 20 gigs for additional $30. After being with AT&T for 15 years and the attitude i got from both the rep and the Manager lack of carring its time to switch to Verzion. 
    AT&T is offering you 20GB of data for $110/month, when they charge $150/month for it to a new customer, and you don't think they are willing to give you anything to keep you as a customer?  Good luck finding another company willing to give you that large of a discount (about 26%) on your data plan just because you think that you are paying too much, and at the same time let you keep all the features of yoru service you already have, not to mention the other benefits form not changing carriers.

  • Time Balance Members in ASO

    <p>Hi-</p><p>I have read in the documentation that ASO doesn't support TimeBalance members at all.Is there a work around involved where in wecan include TB members.</p><p>Please let me know your ideas or a way to implement TimeBalance.</p><p>Thanks in advance.</p><p> </p><p>Narain</p>

    Try this:<BR><BR>Case<BR><BR> WHEN IsUDA([Measures].CurrentMember, "Time Balance Last") AND (IsGeneration([Months] , 3))<BR> THEN<BR> Tail (<BR> Filter (<BR> PeriodsToDate ( [Months].Levels(1) ), Not IsEmpty ([Month Of]) )).Item(0).Item(0)<BR><BR> <BR><BR>where Month Of is not in the time dimension, it’s part of a Time Views dimension. The key to this formula are the Tail and Filter functions. Tail says to get the last and filter is what is checking for missing. Put them together and you get skip missing with TB Last.<BR><BR>Credit goes to George Spoffard for this solution.<BR><BR>

  • Labview example for data capture using 5102 scope card

    How can I program a Labview Vi to control, and capture a waveform using the 5102 scope card. I need to be able to set it up to continually capture a waveform (Channel 1 and Channel 2) when triggered on a rising edge of channel 1 and then store the data on disk automatically, then wait for the next trigger.
    Any help or tips as to how I could do it would be helpful.
    Thanks
    Allan

    Allan,
    Please find the attached zip file that has some useful LabVIEW examples with scope 5102
    Zvezdana S.
    National Instruments
    Attachments:
    scope.zip ‏181 KB

  • Exclude members from a scope - MDX SSAS

    Hi all,
    I'm just beginning with MDX so the answer may be obvious...
    I'm trying to do a currency conversion with an MDX statement in my Cube SSAS 2012.
    Here is my script :
           SCOPE( LEAVES([Entity]) );
    SCOPE( LEAVES([Time]) );
    SCOPE( LEAVES([Currency]));
    SCOPE( [Account].[Account].[Total ACCOUNT].members)
    THIS = ([Measures].[Value],[Currency].[Currency].[Local])*([Measures].[Value],[Account].[Account].[Fx Rate]);
    END SCOPE;
    END SCOPE;
    END SCOPE;
    END SCOPE;
    The problem is I want to exclude frome the scope Currency my local Currency in order to make the conversion only if a currency (€,$, £) is selected.
    I tried the following syntax but it always return a "MDX script is not valid" :
    SCOPE( LEAVES([Currency], Except (LEAVES([Currency],[Currency].[Currency].[Local]);
    SCOPE( [Measures].[Value] , Except ([Currency].[Currency].members,[Currency].[Currency].[Local]);
    SCOPE( [Measures].[Value] , Except (LEAVES([Currency],[Currency].[Currency].[Local]);
    SCOPE( LEAVES([Currency] - [Currency].[Currency].[Local]);
    Could you please help me with this ? Thanks.

    Hi MNelane,
    Please try to use the following MDX command:
    Scope( Leaves([Date]) , Except([Currency].[Currency].Members, [Currency].[Currency].[Local));
    For more information about currency conversion in SQL Serve Analysis Services, please refer to the articles below:
    Currency Conversion in SSAS 2012:
    http://social.technet.microsoft.com/wiki/contents/articles/18672.currency-conversion-in-ssas-2012-multidimensional-tabular.aspx
    Currency Conversion in Analysis Services:
    http://consultingblogs.emc.com/christianwade/archive/2006/08/24/Currency-Conversion-in-Analysis-Services-2005.aspx
    Regards,
    Elvis Long
    TechNet Community Support

Maybe you are looking for