DRE: return same-level members

What DRE member set option could I use for this report scenario:
Rollup
-A
--A1
--A2
-B
--B1
--B2
Report
I'd like to be able to select A as my member and have the report return these rows:
1. A
2. B
I know you can specify A, B in the member set, but that's not an option in this case. I have to be able to select A and get all the parents (A and B).
Thanks for any suggestions...

The valid keywords are:
o     MEMBERS [, PARENTAFTER]     All members in the dimension
o     BASMEMBERS          All leaves in the dimension
o     BAS               All leaves below current member(*)
o     DEP               All children of current member(*)
o     ALL [, PARENTAFTER]     All descendants of current member(*)
o     SELF               The current member(*)
o     LDEP(n)               All descendants down n levels
o     LALL(n)               All descendants down n levels
o     LBAS(n)               All leaves down n levels
o     LMEMBERS(n)          All members with level n or less
o     LBASMEMBERS(n)          All leaves with level n or less
o     NOEXPAND          Make the current dimension static
o     SKIP               Make all dimensions in the axis static
o                    Expand a set of no members (suppress axis)
Online help is great and has all this informatin and how to use them.

Similar Messages

  • How to select same descendant members from different hierarchies?

    Hi All, 
    please help, how it is possible to select same values for only the same hierarchy member names from different hierarchies?
    Example:
    L1          #L1          L2          #L2          Value
    A          #A          a1          #a1          7
    A          #A          a1          #a2          2
    A          #A          a2          #a2          0
    A          #A          a2          #a1          6
    A          #A          a3          #a3          1
    A          #A          a3          #a3          9
    A          #A          a3          #a1          2
    A          #A          a4          #a2          2
    A          #C          a4          #c1          2
    B          #B          b1          #b1          5
    B          #B          b1          #b2          8
    B          #B          b2          #b2          2
    B          #B          b2          #b1          6
    B          #C          b3          #c1          4
    Query1:
    Select sum(value)
    where L1 = #L1
    Result:
    L1          #L1          Value
    A          #A          29
    A          #A          21
    Query2:
    Select sum(value)
    where L2 = #L2
    Result:
    L2          #L2          Value
    a1          #a1          7
    a2          #a2          0
    a3          #a3          9
    b1          #b1          5
    b2          #b2          2
    Names of level members with or without hashmark are identical (A=#A, a1=#a1 etc.).

    [Hierarchy].[L1]*[Hierarchy].[#L1] returns all possible combination of the two hierarchies.
    Here I would filter those cases only, where [Hierarchy].[L1].MEMBER
    = [Hierarchy].[#L1].MEMBER, in aggregated format (Query1 result).

  • How to Use different icons for JTree in the same level

    Hi guys, i come cross a problem with JTree. The module need a JTree which need to represent items in the same level using different icons. For example:
    [Icon for Root]Root
    |
    |_____________[Icon for Table] TABLES
    |
    |_____________[Icon for Index] INDEXS
    |
    |_____________[Icon for Views] VIEWS
    As i know, the default behavior for JTree is using the same icon for all leaves and
    the same icon for all node that has children. How can i achieve that?
    Thansk a lot!

    subclass DefaultTreeCellRenderer. if you overwrite the method below, then you can set the icon to whatever you want....!
        public Component getTreeCellRendererComponent(JTree tree, Object value,
                                    boolean sel,
                                    boolean expanded,
                                    boolean leaf, int row,
                                    boolean hasFocus) {
         String         stringValue = tree.convertValueToText(value, sel,
                               expanded, leaf, row, hasFocus);
            this.tree = tree;
         this.hasFocus = hasFocus;
         setText(stringValue);
         if(sel)
             setForeground(getTextSelectionColor());
         else
             setForeground(getTextNonSelectionColor());
         // There needs to be a way to specify disabled icons.
         if (!tree.isEnabled()) {
             setEnabled(false);
             if (leaf) {
              setDisabledIcon(getLeafIcon());
             } else if (expanded) {
              setDisabledIcon(getOpenIcon());
             } else {
              setDisabledIcon(getClosedIcon());
         else {
             setEnabled(true);
             if (leaf) {
              setIcon(getLeafIcon());
             } else if (expanded) {
              setIcon(getOpenIcon());
             } else {
              setIcon(getClosedIcon());
            setComponentOrientation(tree.getComponentOrientation());
         selected = sel;
         return this;
        }

  • Slowdown with loadmovie even replacing on same level

    I have a very strange problem and have looked around the net
    to no avail.
    If I use loadmovie to load the same swf into the same level
    even if I have a movie on level 0 and load into level 0 to replace
    the other movie, the movie slows down more and more each time I try
    to load into the level.
    Has anyone seen anything similar? has I have tried everything
    I can think of to fix this.
    Thanks
    Michael.

    Well, I went ahead and activated the 8G phone with a new number. I'm going to return the 4G phone at the AT&T store for the 10% penalty. I'd rather sell it on ebay or sell to someone else, but I don't think that's possible without incurring a cancellation fee or something.
    It's weird, at ATT when I got the 4G they checked my credit and entered my information which took about 10 minutes or more. At the Apple store, they simply asked me for a credit card and I was on my way in less than 5 minutes.
    Question: how do I deactivate this 4G phone. I've restored the software to factory settings and it is still listed as activated (my phone number is on the phone). I've tried settings/general/reset phone on the iPhone and it still goes on the ATT network like a regular phone. I can still make calls on it.
    Macguyincali

  • Bottom level members

    I'm writing a part of my servlet using the JAPI that needs take a member name at at any point in the outline and get all of its bottom level members. Very similar to the bottom function in the reports- however I need to take each individual bottom member name and put it into an array to do some tasks. Using the API to get a report from the cube I can only get a dump of the entire results and can't put put the members into an array. Any thoughts on how to do this, or perhaps another way to go about it? Thanks in advance.

    Try thisstatic String[] getBottomLevelMembers(IEssCube cube,String memberName) throws EssException {        try {            IEssMemberSelection mbrSel = cube.openMemberSelection("Sample member selection");            mbrSel.executeQuery(memberName, IEssMemberSelection.QUERY_TYPE_BOTTOMLEVEL,                IEssMemberSelection.QUERY_OPTION_MEMBERSONLY, "", "", "");            IEssIterator mbrs = mbrSel.getMembers();            String[] result=new String[mbrs.getCount()]; for (int i = 0; i < mbrs.getCount(); i++) {                IEssMember mbr = (IEssMember)mbrs.getAt(i);                      result[i]= mbr.getName(); } mbrSel.close(); return result; } catch (EssException x) {            System.err.println("Error: " + x.getMessage());            return null;        } }

  • Is there a way to "mix" the nodes and leaves of the tree so if they are at the same level, they will display in a specified order.

    Is there a way to "mix" the nodes and leaves of the tree so that even if they are at the same level (1,2,3...), they will display in a specified order (via sort sequence, alphabetical, etc.).
    History:
    We are using the Tree UI element to display/manage a material bom interface. We seem to be running into an issue with displaying the nodes/leaves of the tree.. regardless of the order that the context is built (which is currently the order of the exploded BOM from from CS_BOM_EXPL_MAT_V2), the bom is displayed with the nested boms at the top of each level and the single materials below them. For example. If  TK1 contains Material1, Material2, Material3, Kit1(containing component1, comp2, comp3), Material4, Kit2(containing comp4, comp5, comp6), and Material5 (in this order), the tree will display with the A level node as TK1, the next node as Kit1 (with its subleaves of comp1,comp2,comp3), Kit2(with subleaves of comp4,comp5,comp6), THEN Material1, material2, material3, material4, material5.  Our users are adamant about the items displaying in the correct order (which should be alphabetical based on the description for one report and by location for purposes of inventory for another). I've searched but not been able to locate a similar question. If I've missed it, please point me in the right direction. The users want the tree,  not a "tree" table.  This is our first attempt at the tree, so maybe we're missing something basic?
    TK1
    -Mat1
    -Mat2
    -Mat3
    -Kit1
    --Comp1
    --Comp2
    --Comp3
    -Mat4
    -Kit2
    --Comp4
    --comp5
    --comp6
    -Material5
    displays as
    TK1
    -Kit1
    --Comp1
    --Comp2
    --Comp3
    -Kit2
    --Comp4
    --Comp5
    --Comp6
    -Mat1
    -Mat2
    -Mat3
    -Mat4
    -Mat5

    co-workers said example picture is misleading.. we can make the order work if everything is a "folder" but not a mix of "folders" and "files" (if making a visual reference to the windows browser). i.e - a file is represented as an empty folder.
    TK1    
    . Mat1
    . Mat2
    . mat3
    > kit1   
    .. comp1
    .. comp2
    .. comp3
    . mat4
    > kit2
    .. comp4
    .. comp5
    .. comp6
    . mat5
    displays at
    TK1
    > kit1
    .. comp1
    .. comp2
    .. comp3
    > kit2
    .. comp4
    .. comp5
    .. comp6
    . mat1
    . mat2
    . mat3
    . mat4
    . mat5
    we can make it work if everything is a folder. This is our current workaround.
    TK1
    > mat1
    > mat2
    > mat3
    v kit1 (when expanded)
    .. comp1
    .. comp2
    .. comp3
    > mat4
    > kit2 (when not expanded)
    > mat5

  • How to insert Group into Report Footer or have two Groups in same level

    Hi,
    I am wondering whether it is possible to have two indepent groups---they are at the same level, in one report.
    I tried insert a group into Footer section or just insert two unnested groups in Group Section, but seems undoable.
    Thank you for your help!

    My suggestion will work.  The basic layout would be:
    G1Ha - printed when grouping field = 1  (your "Group header #1" above)
    G1Hb - printed when grouping field = 2  (your "Group Header #2 above)
    Da  - printed when grouping field = 1 (your "AccountNumber1 Account Name1" under group header 1)
    Db - printed when grouping field = 2 (your "Subreport for AccountNumber1 under group header 2)
    G1Fa - printed when grouping field = 1 (your "Group Footer #1 above)
    G1Fb - printed when grouping field = 2 (your "Group Footer #2 above).
    Since the grouping field is the primary grouping, the order that the formats will display is:
    G1Ha
    Da
    Da
    Da
    G1Fa
    G1Hb
    Db
    Db
    Db
    G1Fb
    matching your example perfectly.
    HTH,
    Carl

  • Why does getdate() function return same time value for multiple select statements executed sequentially

    When I run the following code
    set nocount on
    declare @i table(id int identity(1,1) primary key, sDate datetime)
    while((select count(*) from @i)<10000)
    begin
    insert into @i(sDate) select getdate()
    end
    select top 5 sDate, count(id) selectCalls
    from @i
    group by sDate
    order by count(id) desc
    I get the following results. 
    sDate                   selectCalls
    2014-07-30 14:50:27.510 406
    2014-07-30 14:50:27.527 274
    2014-07-30 14:50:27.540 219
    2014-07-30 14:50:27.557 195
    2014-07-30 14:50:27.573 170
    As you can see the select getdate() function returned same time up to the milisecon 406 time for the first date value.  This started happening when we moved our applications to a faster server with four processors.  Is this correct or am I
    going crazy?
    Please let me know
    Bilal

    Observe that adding 2 ms is accurate only with datetime2.  As noted above, datetime does not have ms resolution:
    set nocount on
    declare @d datetime, @i int, @d2 datetime2
    select @d = getdate(), @i = 0, @d2 = sysdatetime()
    while(@i<10)
    begin
    select @d2, @d, current_timestamp, getdate(), sysdatetime()
    select @d = dateadd(ms,2,@d), @i = @i+1, @d2=dateadd(ms,2,@d2)
    end
    2014-08-09 08:36:11.1700395 2014-08-09 08:36:11.170 2014-08-09 08:36:11.170 2014-08-09 08:36:11.170 2014-08-09 08:36:11.1700395
    2014-08-09 08:36:11.1720395 2014-08-09 08:36:11.173 2014-08-09 08:36:11.170 2014-08-09 08:36:11.170 2014-08-09 08:36:11.1700395
    2014-08-09 08:36:11.1740395 2014-08-09 08:36:11.177 2014-08-09 08:36:11.170 2014-08-09 08:36:11.170 2014-08-09 08:36:11.1700395
    2014-08-09 08:36:11.1760395 2014-08-09 08:36:11.180 2014-08-09 08:36:11.170 2014-08-09 08:36:11.170 2014-08-09 08:36:11.1700395
    2014-08-09 08:36:11.1780395 2014-08-09 08:36:11.183 2014-08-09 08:36:11.170 2014-08-09 08:36:11.170 2014-08-09 08:36:11.1700395
    2014-08-09 08:36:11.1800395 2014-08-09 08:36:11.187 2014-08-09 08:36:11.170 2014-08-09 08:36:11.170 2014-08-09 08:36:11.1700395
    DATE/TIME functions:
    http://www.sqlusa.com/bestpractices/datetimeconversion/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Ive just got a new iPhone4 and I am trying to get the App's ie games from my iPhone3 onto the 4 and retain the same levels that I have reached on the 3, The Apps have gone onto the 4 but its making me re-start everything from level 1?

    Ive just got a new iPhone4 and I am trying to get the App's ie games from my iPhone3 onto the 4 and retain the same levels that I have reached on the 3,
    The Apps have gone onto the 4 but its making me re-start everything from level 1?
    Ive paid $$ for the games and then more $$ within the games via iTunes for in game purchases and desperatly want the games on the 4 with the levels that I have reached on the 3!
    Can anyone help!! Please!!!! My Smurfs and Animals are starving Hahahaha

    Mate, it's good to hear that you have gotten the iPhone 4 but sorry to burst your bubbles. Not all games can have the "saved" data ported over.
    Normally when you save a game in iPhone, the memory used is in the flash memory of the device. Those that can be ported over, reason is due to the data being saved over the air and when you logged in on a new device, it recognises you via the userID.
    Maybe you can try to backup your iPhone 3, and restore the file onto your iPhone 4. Not too sure if that would brick your phone though.

  • How do I get the volume on my ipod classic to the same level for all songs?  Some are louder than others.

    How do I get the volume on my ipod classic to the same level for all songs?  Some songs are a lot lower than others.

    Coverflow in iTunes is sorted by Album Artist whereas coverflow on the iPod classic is sorted by Artist. Unfortunately, there is no way to set this on your iPod. This is such a fumble on Apple's part that I'm beginning to think they're becoming another Microsloth with buggy firmware and products.

  • Will a sequence return same value for two different sessions?

    Is there a possibility that a sequence will return same value to two different sessions when it is referred exactly at the same instance of time?

    @Justin... Thanks for your insight; indeed, we too feel this shouldn't ever happen and never heard of it either, but there it is. (No, we haven't logged a TAR yet -- whatever that is -- partly because it didn't occur to us and partly because we only recently came across the issue and sensibly want to do some testing before we cry foul.)
    However, the code is pretty straight-forward, much like this (inside a FOR EACH ROW trigger body):
    SELECT <seqname>.NEXTVAL INTO <keyvar> FROM DUAL;
    INSERT INTO <tblname> (<keyfield>, <... some other fields>)
    VALUES(<keyvar>, <... some other values> );
    (where <tblname> is NOT the table on which the trigger is fired). This is the only place where the sequence is ever accessed. The sequence state is way below its limits (either MAXVALUE or <keyfield>/<keyvar> datatype size).
    In this setup, end users sometimes got an out-of-the-blue SQL error to the effect that uniqueness constraint has been violated -- as I said, we used to have a unique index on <keyfield> -- which leads us to assume that the sequence generated a duplicate key (only way for the constraint to be violated, AFAIK). We released the constraint and indeed, using a simple SELECT <keyfield>, COUNT(*) FROM <tblname> GROUP BY <keyfield> HAVING COUNT(*)>1 got us some results.
    Unfortunately, the <tblname> table gets regularly purged by a consumer process so it's hard to trace; now we created a logger trigger, on <tblname> this time, which tracks cases of duplicate <keyfield> inserts... We'll see how it goes.
    @Laurent... winks at the CYCLE thing Our sequence is (needless to say) declared as NOCYCLE and the datatype is large enough to hold MAXVALUE.

  • Div not at same level as logo image

    I imagine I am missing something basic on this the end of my
    first leg of my css journey.
    I have added a new div into my page call "whatwedo" which is
    in the header div and meant to be at the same level as the logo on
    the righthand side (where it is floated correctly I believe).
    Why is it not in the right place, what am I missing?Thanks
    for any pointers
    .whatwedo { float: right; width: 200px; font-weight: bold; }
    http://216.219.94.105/david1.htm
    Thanks

    Updated: 2015-07-16Hello!
    Your idea has been submitted a while ago but unfortunately hasn't gathered enough kudos (25 per year). In order to keep an overview of the active ideas in this forum, we will close this idea for now. However this does not mean that your idea has been declined by Spotify.
    If you still feel strongly about your request, we encourage you to post your idea in a little different form again! Maybe now is the right time to receive the support of our community for your suggestion! ;)
    Do you have any further questions on how the idea exchange is managed? Just click here!

  • How to transfer game from iPad to iPad and still maintain the same level of game play of each game?

    How to transfer game from iPad to iPad and still maintain the same level of game play of each game?

    Check the following:
    That both your Mac and your iPad are signed into the same iCloud account
    Go to System Preferences>iCloud on your Mac, confirm that you have checked Documents & Data, then click Options and confirm that Pages is checked.
    Go to Settings>Pages on your iPad and confirm that "Use iCloud" is turned on.  Also go to Settings>iCloud and confirm that Documents & Data is on, and that Pages is turned on in the app list.

  • Importing packages at the same level

    Hi,
    I have two packages A at B (with some classes) in the same level. How do i import the classes from one packages to other.......

    Hi,
    By level i mean that the packages are in the same directory.
    I created two packages A & B. In the classes belonging to A, i used
    package A; import B.*;
    In the classes belonging to B i used
    package B; import A.*;
    I then tried to run the program in JCreator IDE. But it generated error as package is missing.
    I also tried to place both packages in another package 'C'. i.e. C\A and C\B. In A's classes i used
    package C.A; import C.B.*;
    In B's classes I used package
    C.B; import C.A.*;
    Even then i got the same error and also moreover i was unable to access other classes in a package by a class belonging to the same package.
    Kindly help me out.

  • Several nested loop at the same level in an execution plan

    Hi, I am using 11gR2, and I've seen a execution plan in the trace of my SQL query (also shown in pl/sql explain plan) with 4 nested loops all at the same level, what does this mean?
    i.e.
    - SELECT STATEMENT, GOAL = FIRST_ROWS
    + NESTED LOOPS
    + NESTED LOOPS
    + NESTED LOOPS
    + NESTED LOOPS
    each NESTED LOOP can be expanded to 2 further actions, which make sense to me. e.g.
    + NESTED LOOPS
    + TABLE ACCESS BY INDEX ROWID
    + TABLE ACCESS BY INDEX ROWID
    THANKS
    Ye

    >
    why there are 4 Nested Loops
    what is the final result set for the SELECT statement come from (any one of the 4)
    the query run so slow in 11R2
    >
    So far you are the only one who knows what the query and execution plan are because you haven't posted them
    >
    Then you need to post the query, tell us what indexes are on the join columns and post the complete plan.
    >
    We can't even begin to explain why Oracle might have chosen the plan it did if we can't see the query and plan you want explained.
    And if we only see the plan we might be able to tell you what Oracle is doing but without knowing what indexes might be on the join columns and the filter criteria columns we can't tell you why Oracle chose the plan it chose.
    And the excerpt of the plan you did provide is incomplete. You removed the indenting possibly because you did not enclose it in 'code' tags (see the FAQ).
    >
    - SELECT STATEMENT, GOAL = FIRST_ROWS
    + NESTED LOOPS
    + NESTED LOOPS
    + NESTED LOOPS
    + NESTED LOOPS
    >
    There can't be four nested loops like that at the top level since the top level will be combining the result sets from it's children. A nested loop will have two children; like the last part you showed:
    >
    + NESTED LOOPS
    + TABLE ACCESS BY INDEX ROWID
    + TABLE ACCESS BY INDEX ROWID
    >
    The two 'TABLE ACCESS ...' will be indented on a normal plan.
    Without the query and plan there isn't much we can tell you.

Maybe you are looking for

  • XML DB: XMLType encoding

    Hi I am new in using XMLDB. I extract XML data from the db using a query like this: select XMLElement(...).getClobVal() from... and everything works fine. I encontered a problem with the encoding: e.g. by default apostrophe is encoded as &apos ; whil

  • Info record & PO creation withou master data

    Dear experts, Please explain me 1. Can we create an Info record without material master 2. For creating a PO without material master,     i) Account assignment, material text entry is must, apart from this any         configuration is required?     i

  • 1.3 save as preflight problem

    in acrobat, when we do a save as 1.3 preflight check (we do this to flatten transparencies among other things) acrobat ask you to save the new document and after this it does the preflight action. We then open the new 1.3 document and the new documen

  • Role of a CRM  Technical consultant in SAP C4C and CRM on HANA

    Hi, What would be the role of a CRM Technical consultant in the following. SAP C4C SAP S4/HANA SAP CRM on HANA Thanks & Regards Sunil

  • My ipod has died, nothing is coming on when I hold the button in

    My ipod was plugged in my computer. The computer sent a message not recognizing the usb device, my ipod won't turn on now.