Another MDX question.

In MDX, What is the correct way to retrieve the set of level-0 descendants of a CurrentMember that is at Level-2 or higher? I am using the following:
*count(TopPercent([Region].CurrentMember.Levels(0).Members , 80, [Measures].[SALES] ))*
This is counting ALL level 0 members, not just the ones that are descendants of the CurrentMember.. I also tried to use:
*count(TopPercent(Leaves([Region].CurrentMember) , 80, [Measures].[SALES] ))*
but in this case, I get #Missing values for my Count cells!
Lastly, in the hope of simply subtracting Level 1 members from the set of all descendants I also tried the following:
*count(TopPercent(Descendants([Region].CurrentMember) , 80, [Measures].[SALES] )) - count(TopPercent([Region].CurrentMember.Children, 80, [Measures].[SALES])*
this gives me a count which is 2 less than the expected value. What is the best way of getting at CurrentMember level-0s ?
thanks.
Edited by: axe1 on Oct 7, 2010 12:34 PM

I simply want a function that will return a set of all level 0 members for a given Current Member. My Current Member can be at any level higher than 0. If my CurrentMember is at Level 1 then this is simply achieved by using *[<DIM_NAME>].CurrentMember.Children*. But what do I use if my CurrentMember is at Level-2 or higher. I tried using the following:
1. *[<DIM_NAME>].CurrentMember.Levels[0].Members* -> this doesn't work
2. Leaves([<DIM_NAME>].CurrentMember) -> this doesn't work either
3. I also tried *(distinct (union (Descendants( [<DIM_NAME>].CurrentMember), ( [<DIM_NAME>].CurrentMember.Children)* -> this does work when CurrentMember is at Level 2, but at Level 3 and higher it doesn't work, because the resulting set contains both level 1 and level 0 members..
Again, I just want to be able to get a set of Level 0 members that are descendants of a given CurrentMember...
Descendants([<DIM_NAME>].CurrentMember.Levels[0].Members) doesn't work either. This doesn't pass verification itself, because we can't pass a set as an argument to the Descendants function.

Similar Messages

  • Another newb question: multiple virtual servers

    Hi, I have yet another ignorant question. I have several unrelated web projects that I am working on, and I would like to be able to set up a virtual server for each one for testing purposes, such as: http://project1, http://project2, http://project3. Can someone tell me if this is doable, and if there are any tutorials/resources on this for someone who has 0 experience running a web serer? Sorry for being so ignorant!

    Yes, it is doable.
    You can setup virtual server either by IP or by name.
    If you have one IP, and want to set them up by name (ex. http://project1, http://project2, http://project3) you can do so easily with this type of configuration:
    <virtual-server>
        <name>mydomain</name>
        <http-listener-name>http-listener-1</http-listener-name>
        <host>*.mydomain.com</host>
        <document-root>/www/domain</document-root>
      </virtual-server>
      <virtual-server>
        <name>myotherdomain</name>
        <http-listener-name>http-listener-1</http-listener-name>
        <host>*.myotherdomain.com</host>
        <document-root>/www/myotherdomain</document-root>
      </virtual-server>
    ....The important part here is that
    a) all virtual servers share the same HTTP listener
    b) which virtual server serves the request depends on the $HOST request header send by the client. Sun Web Server does the matching for you. It will match $HOST vs. the virtual server's host attribute. Depending on which site you connect to the right virtual server will be used.
    c) if the $HOST request header does not match any of the virtual servers, then the default virtual server defined in the HTTP listener will be used.
    To create a virtual server, use the Admin GUI, access the configuration, and then add new virtual server. Or use the following CLI command.
    wadm> create-virtual-server --config=myconfig --http-listener-name=http-listener-1 --document-root=/www/docs/myserver.com --host-pattern=myserver.com --log-file=../logs/myserver.com-error_logs myserverHost pattern will be used for matching. Some of this elements might be optional.
    Hope that helps. And keep the questions coming :D
    Edit: Also check the documentation
    Using Virtual Servers in SJS Web Server 7.0

  • Statistical calc with MDX question (Mode function as an excel)

    Hi All,
      I need to create an MDX Calc to Returns the most frequently occurring, or repetitive, value in an array or range of data.
      For example, the mode of 2, 3, 3, 5, 7, 10 is 3.
      In Excel I use the MODE() function but I don't know how to do this in MDX and add it as a measure in Universe.
      I can't do the formula in WEBI because we have big data volume and I can't retrieve all the customers in WEBI.
      We have SAP BW 7.0 and SAP BusinessObjects XI 3.1 fix pack 1.3
    Thanks in advance.

    Hi,
    it looks like you created the entry twice so I would suggest you close on of them:
    Statistical calc with MDX question (Mode function as an excel)
    I don't think that those kind of statistical functions are available in MDX. you can always go to se37 and use the bapi_get_functions to see the list of supported functions.
    Ingo

  • Another simple questions

    Hello friends:
    Another simple question: I need to learn things about Oracle on my desktop.
    My machine runs Windows 98. Oracle has some desktop product of its Database Line?
    For example: Oracle Personal?
    And Oracle Lite? What's the main difference between Oracle Personal and
    Oracle Lite?
    Thank You
    Gracias
    Ing. Pablo Romero
    CORDOBA ARGENTINA

    1. I didn't know the answer to your first question, but I googled it and it says the item is the in-call audio boost.
    http://forums.crackberry.com/f71/flag-icon-47659/
    2. isn't this setting determined by the carrier? So it's not a setting in the phone, but when you call in to your voicemail you can change your options?

  • Essbase MDX question

    Hi there
    I am at a client where I have to do comparative store analysis. Basically with MDX I need to do the following:
    When doing comparable store analysis on a daily level in my Time dimension a store must have traded a year ago on the same comparable day as per the company's trading calendar.
    When doing comparable store analysis on a weekly level a store must have traded a year ago for the full same comparable previous year's week (i.e. all the days in the week) as per company's trading calendar.
    If the criteria is not met #missing must be returned else the day or week value.
    On day level my MDX works fine:
    CASE
    WHEN
    IsLevel([Entity].CurrentMember, 0) AND
    IsLevel([Time].CurrentMember, 0) AND
    NOT IsEmpty([Periodicity].[LY])
    THEN
    ([LY], [Act], [Time].CurrentMember, [Entity].CurrentMember, [Account].CurrentMember)
    END
    The question is on a week level how do I check if a store traded on every single day of the same week last year. Getting the week is no problem, but checking every child of that week.
    Just another point on this: I need to do this on month, quarter etc levels as well, so hard coding to check from day 1 to 7 will not suffice.
    Thanks
    Johan

    You are correct, currently Essbase does not support updates via MDX.

  • Another BW question about filter in the query definition

    Hi ,
    I have another question about filter in the query definition.
    <u>Question:</u>
    Which of the following objects can be filtered in the query definition?
    A. characteristic
    B. Key figure
    C. Structure
    D. Units
    E. Hierarchy
    My answer is A,B,D,E.
    The answer in the book is A,B,D
    Can anybody tell me which one is wrong?
    Thanks in advance,
    Liu Jia

    HI
    1.The answer could be A,B,D.you can not apply filters on hierarchies
    2.Whenever there is a change in Attribute data(like Location,Num etc...)that has to be reflected in all aggregates of the cube.Thsi can be done by running "ATTRIBUTE CHANGE RUN".
    sri

  • Yet another standby question...

    Hi gurus,
    Please help to resolve the quiz. I have completed manual physical standby installation. It is up and running. I then decided to install Grid Control and to use Data Guard for the standby creation. I've successfully installed GC, deployed all agents, I can see my previous standbys, life is good in short. Now, when I am trying to create the second standby for my production database using the Data Guard I stuck on a logical question:
    On the step 3 of Data Guard standby creation, there is a note, saying:
    The instance name (also referred to as the SID) must be unique on the standby host.
    Yeah, fair enough. But i can't understand what should I do next? I have:
    db_name YELLOW - primary prod
    db_name YELLOW - standby prod 1st
    and i need db_name YELLOW - standby 2nd
    But I can't create it on the same server where the first standby resides.. What options do I have? Do I need to create the second standby on another server? Do I need to kill 1st standby? Is there any way to avoid this conflict? I am confused. I have no equipment for TWO standby servers... I thought I can install there up to 9 standbys.. But it seems to be a problem.. And definitely, I cannot give my second standby other name than YELLOW as all my applications are strongly tied on db_name...
    Friends, please clarify this if you can. I am kinda lost in here..
    Thanks as usual,
    Maria

    well, that's a good question! :)
    because I don't have spare server for the standby. the question is not about: 'should I or should not put more than one standbys in one server' , but more about: 'is there any way to put two standbys with the identical db_names in one server'. I know that I probably sound unprofessional, but I just wanna know.. If the answer is 'no way', I will kill the first standby then and recreate the second one using DG with the correct name.
    Thanks for writing to me,
    M.

  • Re: another build question! (sorry lol)

    Hi all
    right, after days and days of researching all the excellent articles on here ive had to write a post! So apologies for going over old ground
    Im going to build a new CS5.5 rig (having had a guts full of Apple and their FCPX fiasco its back to pc!)
    so although i appreciate the 990x o'c is prob best option, bang for  buck is leading me down the sandybridge i7 2600k o'c option on p67 mobo with 16gb of ram (option to take to 32 down the line when the chips are out)
    anyway, im sorted on chip mobo (msi big bang marshal p67), nivida 570 etc , its the drives im struggling on!! Im edit avchd video and some after effects, small amount of 3d, and in FCP i always transcoded everything to prores. Now on cs5.5 it looks like real time performance is possible with high end hardwear.
    So mobo, ram, and chip aside, my HDD config im unsure on, ive not really got the cash to go crazy with raid controllors etc, but understand need for seperate drives, etc and tbh might even go downt he cineform route as a prores alternative (prob avoiding hassles of drive speed with avchd)
    im thinking as the SSD's are now dropping in price and the ocz are producing these 500 mb r/w speed sata 6 120gb drives for a reasonable price, would 3 of these drives (one for os, one for media , one for scracth disk ) be a good set up or is it a waste of cash and should i raid 0 from bios/mobo?
    I appreicate that 120 gb drives for media etc are small, but i would take project media from another much large backup drive and just use the 3x ssd set up as working disks for editing & os? once project over, clear out drives to larger back up and start new project!
    Its either that or i go SSD as bootdrive, but some sort of cheap raid set up for my scratch disk, media drives? prob is if i do that, from what ive read (brain dead now) i would be best off with 2 x raid 0 as scratch disk and orginal media respectively when workign with avchd
    HOWEVER, on my mobo there are only 4 sata 6 ports, so if i use one for ssd boot drive, and then im left with 3 x sata 6 ports and another 4 x sata 3 ports to raid on? how does this work? any point in getting the sata 6 drives as one would be stripped with a sata 6 drive plugged into a sata 3 port (this was my reasoning behind using 3 small sata 6 ssd's plugged to the sata 6 ports  and rest of sata 3 ports as storage and backups!
    confused lol!! I just want the overclocked sandybridge system with decent gpu card, as much ram as possible at present, but im thinking my bottleneck will be in the HDD config! any suggestions are much appreicated! im not that techy so whilst have read all the articles am more confused now (plus normally a mac user, so its out of the box configuration usually!) for what its worth looking to purchase something from scan uk in terms of parts! total build cost including a reasonable screen £2,000
    many thanks

    You have a limited budget, especially in the UK, but then don't we all?
    Going for the 980X will triple the cost of the CPU, but even when editing AVCHD material the gains are not sizable enough IMO to justify that cost differential. Add to that you will need 24 GB instead of 16 GB and that carries an additional price tag. Both factors will easily move you out of budget range if you want to have a number of disks and possibly a raid controller.
    Did you read my article To Raid or not to Raid, that is the question. It can be found under the Overview tab at the top of the page? (Currently responding from abroad on my notebook and not having the bookmarks available for easy linking). http://forums.adobe.com/thread/525263
    With media and projects I would advise against a raid0, because of the lack of redundancy. For pagefile, media cache and previews (scratch disks) raid0 is quite OK. They will be recreated if needed. The performance gain from a raid0 for media and projects over a parity raid is easily offset by the time spent on making backups. For parity raids do not use WD Caviar Blacks, but look at the Hitachi 7K3000 line of disks.
    The question of Sandy Bridge versus the old X58 platform is essentially one of 'which limitations are acceptable to me'.
    The Sandy Bridge is a great processor and at least the equal to the old i7-9xx quad cores. However, the platform, the chipset, has its shortcomings in terms of PCIe lanes. Whether that is relevant to you, only you can decide. But hey, we would be in serious trouble if Intel did not manage some progress in two years time from the i7-920 to the i7-2600K. So of course the i7-2600K shows much more potential than the almost retired 920, it is the chipset for the Sandy Bridge that is 'flawed' in comparison to the X58, but that is no surprise, since the Sandy Bridge is a 'middle-of-the-road' platform and the X58 was a 'high performance' platform.
    BFTB-wise I think that within your budget limits, you should look at the i7-2600K, but with the best disk setup you can afford.

  • Another Noobie question - readLine()

    Hi all
    This is another one of the extreme noob questions. I wrote a small program to read form a text file
        String NetworkLine = new String();
        try{
            FileReader inputFile = new FileReader("Test.txt");  //
            BufferedReader in = new BufferedReader(inputFile);
           try{
               while (in.readLine() != null){
                NetworkLine = in.readLine();
                System.out.println(NetworkLine);
           }catch (IOException e){
                System.err.println("Error in reading the file");
        }catch (FileNotFoundException e){
            e.printStackTrace();
        }My Test.txt is
    One
    Two
    Three
    Four
    Five
    Six
    without the *
    The output I get is
    Two
    Four
    Six
    I cannot figure out why only even no. lines are being read. I inserted a breakpoint at the line
              System.out.println(NetworkLine);This shows me that only even no. lines are being read by readLine(). Any help will be appreaciated.
    Thanks
    Ayesha

        String NetworkLine = new String();
        try{
            FileReader inputFile = new FileReader("Test.txt");  //
            BufferedReader in = new BufferedReader(inputFile);
           try{
               while (in.readLine() != null){  // <-- This reads a line, checks it for null ,and drops it
                NetworkLine = in.readLine(); // <-- this reads the next line
                System.out.println(NetworkLine);
           }catch (IOException e){
                System.err.println("Error in reading the file");
        }catch (FileNotFoundException e){
            e.printStackTrace();
        }So the upshot is that you print every other line.
    Corrected:
        String networkLine = new String();
        try{
            FileReader inputFile = new FileReader("Test.txt");  //
            BufferedReader in = new BufferedReader(inputFile);
           try{
               while ((networkLine = in.readLine()) != null){
                System.out.println(networkLine);
           }catch (IOException e){
                System.err.println("Error in reading the file");
        }catch (FileNotFoundException e){
            e.printStackTrace();
        }

  • Invalid mdx question

    Hi experts,
    I've built a dashboard that uses QAAWS against a BEx query. The user selects a parameter from a dropdown list and this is passed to the query. The dropdown is populated via another BEx query. Certain selections cause the error below but others work fine..
    A database error occured. The database error text is: The MDX query SELECT  { [D9E1N6LMLM9YT92Q8JK6JJXTI].[D9E1N6LMLMAQHVEHK2ZSLZC3A], [D9E1N6LMLM9YT92Q8JK6JJXTI].[D9E1N6LMLMC9V42075V0QU4MU], [D9E1N6LMLM9YT92Q8JK6JJXTI].[D9E1N6LMLMDT8CPIU8Q8VOX6E], [D9E1N6LMLM9YT92Q8JK6JJXTI].[D9E1RGK09V98NHYRCDSG9Z852], [D9E1N6LMLM9YT92Q8JK6JJXTI].[D9E1RGK09VAS0QM9ZGNOEU0OM], [D9E1N6LMLM9YT92Q8JK6JJXTI].[D9E1RGK09VCBDZ9SMJIWJOT86], [D9E1N6LMLM9YT92Q8JK6JJXTI].[D9E1RGK09VD32LLJY2YIM47HY], [D9E1N6LMLM9YT92Q8JK6JJXTI].[D9E1RGK09VDUR7XB9ME4OJLRQ], [D9E1N6LMLM9YT92Q8JK6JJXTI].[D9E1RGK09VEMFU92L5TQQZ01I] }  ON COLUMNS , NON EMPTY  { [D9EXRDLJHLX0KVD68TZRK6KFQ].[D9EXVHBZ2PH1IWV1APPDCBNQU], [D9EXRDLJHLX0KVD68TZRK6KFQ].[D9EXUY6POKB6YZZPNWJYWP4VQ], [D9EXRDLJHLX0KVD68TZRK6KFQ].[D9EXUY6POK8VX50FPA94PEY2E], [D9EXRDLJHLX0KVD68TZRK6KFQ].[D9EXUY6POK7CJWCX27DWKK5IU], [D9EXRDLJHLX0KVD68TZRK6KFQ].[D9EXUY6POK6KVA15QNYAI4R92] }  DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM [Z_M25/Z_M25_Q023] SAP VARIABLES [!V000002] INCLUDING 58DFDF3E4D542B47B8128DD98EFB7B6C failed to execute with the error Invalid MDX command with DFDF3E4D542B47B8128DD98EFB7B6C.
    Does this mean that the value of the prompt "DFDF3E4D542B47B8128DD98EFB7B6C" is invalid? If I run the query in Analyzer and paste this value in the query executes successfully.....
    Thanks

    Just an update on this one in case anyone else has the same issue. Turns out to be a bug. See SAP Note 1505565 - "Error WIS 10901 when the SAP prompt value starts with a digit/number in Xcelsius".
    Workaround was concatenating double quotes around the prompt value which the MDX parser accepted.

  • Another beginner question about targeting functions

    I've read what I thought was an excellent thread about scope in EA, but I'm still not getting some of the basics (btw the thread was http://forums.adobe.com/message/5287753#5287753).
    I have "slides" in the symbol library and in the main composition compositionReady script I've set up a generic script for playing back sound. That script works fine when I bind it within the compositionReady script to a symbol and click, so I know the funciton itself is fine. My question, I'm programmatically loading the slides from the library as I go along and want to use the generic function I created in the compositionReady script, but I can't seem to create the proper syntax to call the script. Here's some that I have tried. What is the correct syntax? The script is on frame inside the slide symbol.
    //sym.getComposition().getStage().playSound();
    //sym.getComposition().playSound();
    //Edge.getComposition("CER_1").playSound();

    Thanks for having a look. Yea, it's getting to the script fine but it doesn't like the syntax. Console always indicates javascript error, which is what happens when Edge throws an exception because it doesn't know what to do. The article that Elaine posted on above gives me the sense that it might be best to change the function to a variable, then it would be in scope to call but I have parameters I'd like to pass with it and I don't think  I can pass a parameter with to a variabalized (word?) function. I know it's just me moving from ActionScript to Edge JavaScript and scope. Whereas I could always find a homebase in ActionScript with the stage, it seems that the stage in Edge is just another symbol and calling a function within the stage is never getting there. Elaine hints at putting outside the stage closure and it would be accessible, which, of course, has led me to start readying JavaScript books and learning more about scope etc. It seems like that is life as a developer. I  dont' get that, oh, better take a day or two to  understand that concept, oh, that function works now, next problem. ;-)

  • Another excel question

    hi,
    I read an excel file like this:
      CREATE OBJECT gv_excel 'Excel.Application'.
      SET PROPERTY OF gv_excel 'VISIBLE' = 0.
      CALL METHOD OF gv_excel 'Workbooks' = gv_books.
      CALL METHOD OF gv_books 'Open'
        EXPORTING
          #1 = p_file
          #2 = 1.
      FREE OBJECT gv_cell.
      FREE OBJECT gv_excel.
      FREE OBJECT gv_books.
      FREE OBJECT gv_sheet.
      CALL METHOD OF gv_excel 'QUIT'.
    the question is, why the excel process is not kill in the task manager?
    joseph

    Hi ,
    i think Rich is right.
    another problem could be if you've used an object to
    save your data:
    like :
    CALL METHOD  OF H_EXCEL 'Save' = h_save.     
    so you've to free this too:
    FREE OBJECT H_save.    
    regards Andreas

  • Windows 7 Another Preorder Question :)

    Ok bestbuy.com has taken out the 108$ deposit and now the order is confirmed so does
    bestbuy.com hold the Funds and use them when it ships or can i use the 108$ for something
    else now since the order is done and i Can just put another 108$ in there for them to take it 
    out on 10/22/09 the release date or when it ships
    i need to know if i can do this thanks 

    Well you can purchase either an upgrade or a full copy. Difference is, one has to be upgraded from a previous operating system (XP or Vista) and the other can do a clean install without the need to have a previous operating system. The Windows 7 Upgrade program provides you with an upgrade copy of Windows 7.
    Adam
    Best Buy Community - Retail, Americas
    Forum Guidelines | Terms & Conditions | Community Guidelines | Blogging Guidelines
    *Remember to mark your questions solved and click the star under the user's name to show your thanks!

  • ANOTHER formats question...

    I've been using Streamclip to convert mpeg2's to Quicktime. I've experimented with Apple MPEG4 and Sorenson 3. Not the jpeg format so much.
    My question: which is the best format for keeping the file size about the same and losing the least video quality? These files are for multiple purposes. Some will be used on the internet and others will find their way onto dvds.
    Is the option from streamclip to DV good for Final Cut and Quicktime?
    I realize the short answer to my question is that it totally depends on what I want the file for. But what I'm really looking for is a primer on the diff between Sorenson, MP4, JPEG-A(B)....etc.
    I'm moving toward using h.264 for everything, but not everyone has qt7 - you know?

    My question: which is the best format for keeping the file size about the same and losing the least video quality? These files are for multiple purposes. Some will be used on the internet and others will find their way onto dvds.
    Everybody has their own picks. However, you might also want to consider the fact that not everybody has upgraded to latest QuickTime Player.
    My general pick would be Sorenson Video 3 for general purposes. Sorenson Video 3 performed better (in terms of quality) then MPEG 4 when you limit the bitrate to some small number (i.e. small filesize). As for DVDs, you might want to export in another format for it.
    Is the option from streamclip to DV good for Final Cut and Quicktime?
    It is, assume the original file is good quality.
    But what I'm really looking for is a primer on the diff between Sorenson, MP4, JPEG-A(B)....etc.
    I made this page awhile back, you might find it useful.
    http://mac.sillydog.org/qt/compare.php
    Hope this helps.
    <small>disclaimer: I am not selling any products, but there are Google Ads in that page.</small>

  • Another resolution question.....sorry

    Thanks to Zac and Bogie for helping me out with the whole resolution questions but I do have one more....sorry. Do I need to log and capture in FCP in order to import the file into compressor to change the codec or is there another way? Maybe direct from the camera so it doesn;t get any more compressed than it is?
    Thanks again for putting up with me
    Rick

    If you shot on DV, for example, capturing it isn't compressing more. It is what it is. You shot it DV, it is DV. What's on the tape isn't "better" than what gets captured to your hard drive.
    Anyway, yes, you have to capture or ingest the footage or have some sort of existing movie file to put it into Compressor. You can't take it from the camera directly.

Maybe you are looking for