MDX: Selecting specific dimension member and its descendants from parent child dimension where dimension member names can be same in dimension hierarchy

I'm creating a SSRS report using SSAS cube as a source.
When creating a dataset for the report, I'm having trouble with MDX to select a specific dimension member and its descendants from parent child dimension where dimension member names can be same in dimension hierarchy.
Lets say for example that I have an account dimension where,
In level 02 I have company ID:s 101, 102, 103 and so on...
In level 03 I have Balance sheet
In level 04 I have some account groups, Assets, Liabilities and so on... and In level 05 I have individual accounts
How can I select for example company 102:s Assets from level 04 and its descendants?
Normally in adventure works I would do this if I've wanted Current Assets and its descendants:
SELECT NON EMPTY { [Measures].[Amount] } ON COLUMNS, NON EMPTY
{ (DESCENDANTS([Account].[Accounts].[Account Level 03].[Current Assets]) ) } ON ROWS
FROM [Adventure Works]
But in my Account dimension at level 04 I have Assets member as many times as I have companies in level 02.
Tuomo

Hi Tuomo Helminen,
To this requirement of yours, I would recommend you use Cascading Parameters in Reporting services, you can refer to this FAQ How do I create cascading parameters when using cube database in Reporting Services at this link
http://blogs.msdn.com/b/sqlforum/archive/2011/04/11/forum-faq-how-do-i-create-cascading-parameters-when-using-cube-database-in-reporting-services.aspx 
Thanks,
Challen Fu
TechNet
Subscriber Supportinforum
If you have any feedback on our support, please [email protected]
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Similar Messages

  • If I remove itunes and its drivers from my computer, as recommended by someone at the Apple store for a problem I'm having, I know my music will come back, but will my playlists still be there as they are now?

    If I remove itunes and its drivers from my computer, as recommended by someone at the Apple store for a problem I'm having, I know my music will come back, but will my playlists still be there as they are now? I forgot to ask.

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • Move node and its silings from one jtree to another

    Hi,
    I am trying to move JTree nodes and its siblings from one JTree to another. If anyone has the code, please post it on the website or mail to [email protected]
    Thanks
    Pavan

    Pavan,
    You may have to do a sanity check before adding it.
    Better run the program in a debugger and have a break point at the clipBoard.put() line. Else system.out.println() lines will kill enormouse programming time rather than using debugger.
    Also in following this thread, i found that you may have to be bit more thorough with the DefaultMutableTreeNode class first.
    Thanks,
    ananth
    Thomas,
    for (int p = 0; p < jtree.getSelectionCount(); p++) {
                   System.out.println(".3.......p= "+p);
    node =
    =
    (EuamDefaultMutableTreeNode)paths[p].getLastPathCompon
    nt();
                        clipBoard.put(node.toString(), node);
                   System.out.println(".4...........");
    Giving error at clipBoard.put()
    line....java.lang.NullPointerException
    ..Any idea why?
    Thanks.
    Pavan

  • How to remove a font file and its mapping from XML Publisher Administrator

    Hello,
    I am trying to remove a font file and its mapping from the XML Publisher Administrator. If this is not possible, is there a way to disable it?
    The reason why I am asking this is because we just got a new check printer, and I was able to print just fine. However, the MICR font was not coming up properly on the check, so I went ahead and configured the font with the XML Publisher Administrator. Now my check output is coming up blank after running the XML report publisher program. The only change I did was to upload the MICR font and mapped it.
    My template and rdf report file are working fine in another environment we have, so I know that's not the problem.
    Any help is appreciate it.
    Thanks.

    This is how you do it
    Font
    DELETE FROM xdo_lobs
    where lob_code like '<Font_name>';
    Font Mapping Set
    DELETE FROM xdo_font_mapping_sets_TL
    WHERE mapping_code like '<MAPPING_CODE>'

  • I have Iphone 4 and its lock from at&t, but my contract is getting over in short time. And no longer i want to use this service. So after contract gets over its my right to get factory unlock my iphone 4. so help me

    I have Iphone 4 and its lock from at&t, but my contract is getting over in short time. And no longer i want to use this service. So after contract gets over its my right to get factory unlock my iphone 4.

    jatpri1730 wrote:
    I have Iphone 4 and its lock from at&t, but my contract is getting over in short time. And no longer i want to use this service. So after contract gets over its my right to get factory unlock my iphone 4.
    Unfortunately, AT&T does not provide unlocking.
    Stedman

  • I have Iphone 4 and its lock from at

    I have Iphone 4 and its lock from at&t, but my contract is getting over in short time. And no longer i want to use this service. So after contract gets over its my right to get factory unlock my iphone 4.

    " So after contract gets over its my right to get factory unlock my iphone 4."
    It is not a right at all.
    As provided, AT&T does not unlock iphones at all.

  • I have an Adobe Flash Professionals digital classroom book for CS6 and was following all steps easily until it ask me to select the text tool and change it from classic to tfl in the property inspector. I looked and all that drops down is dynamic, static,

    I have an Adobe Flash Professionals digital classroom book and was following all steps easily until it ask me to select the text tool and change it from classic to tfl in the property inspector. I looked and all that drops down is dynamic, static, and input. Where is the TFL and Classic ? I watched adobe learning center but he was using CS5. Can anyone please help?

    Hi,
    Do you use Flash CS6 to follow the instructions in the classroom book? If yes, then you can find it under text drop down for an AS3 Document as shown below
    If you follow the instruction in Flash CC or Flash CC2014 then you will not find this option as this is deprecated.
    Thanks!
    Mohan

  • Export RAW-files and its thumbnails from iPhoto

    Hi all,
    My Canon EOS 5D makes JPEG+RAW at the same time, which is great. Normally I do not need the RAW files, I work with JPEG in iPhoto 6 (OS X 10.4.11). I only want to keep the RAW-files as "negative". With Automator I want to export the RAW-files automatically to a separate folder which I will then backup to a external HD.
    Automator should do the following:
    1. Copy all RAW-files (extension is .CR2) to a folder on my HD.
    2. Delete al RAW-files and its thumbnails from iPhoto
    I have done some tests with Automator, but I did not succeed. Can some body help me?
    Roberto

    Hi, Gary. Have you tried converting to DNG, with xmp data embedded in it, then export & burn this?

  • When I open some pages, another web site opens. I want to block that site and its URL from opening.

    When I open some pages, another web site opens. I want to block that site and its URL from opening.

    BlockSite extension.
    https://addons.mozilla.org/firefox/3145/

  • Hi Ive downloaded the free trial version of Fcpro x and its not working, an error message comes up saying: You can't use this version of the application ''final cut pro trial'' with this version of OS X You have OS X 10.8.5. it requires 10.9 or later,Help

    Hi friends.
    Ive downloaded the free trial version of Final cut pro x and its not working, an error message comes up saying: You can't use this version of the application ''final cut pro trial'' with this version of OS X You have OS X 10.8.5. it requires 10.9 or later, please can anyone Help.

    Just download Mavericks (10.9) its free and installed it (Mac App Store)

  • How can I migrate Adobe digital edition and its library from an old computer to a new one?

    How can I migrate Adobe digital edition and its library from an old computer to a new one?

    Pertains to a Windows machine..
    Definitely get other opinions on this. I last did this myself in 2010.
    The most important thing, is to make sure you have an account (which I think you must have, or you probably couldn't have posted here).
    As I recall, I downloaded ADE to my new computer, launched the software, authorized the new computer by supplying my login, and then just moved the 'My Digital Editions' folder to the new machine.
    Be sure to de-authorize your old machine after you have done all of this, or over time you could end up exceeding your 'simultaneous devices'-limit for accessing your materials. I suspect that *from within the app itself, while it is still installed on your old machine* may be your only opportunity to do this. It is certainly the best/easiest.
    Hey Internet! Have you done this more recently than I? If so, please chime in to make corrections or add detail.

  • When I first attached a cable from iphone6 to hdmi on tv, I was able to read kindle on tv. After watching movies and playing Pandora from iphone to tv through the cable, I can no longer read kindle through it. What settings do I need to change?

    When I first attached a cable from iphone6 to hdmi on tv, I was able to read kindle on tv. After watching movies and playing Pandora from iphone to tv through the cable, I can no longer read kindle through it. What settings do I need to change?

    Hi,
    Already mentioned on the following post:
       http://h30434.www3.hp.com/t5/Other-Notebook-PC-Que​stions/VGA-on-laptop-HDMI-on-TV-needs-connected/m-​...
    You need a CONVERTER, not ADAPTER The setup:
    The following list may help:
         http://www.ebay.com.au/sch/sis.html?_kw=HDMI+To+VG​A+COMPONENT+Adaptor+A+V+Digital+Converter
    Laptop (VGA) ---- Converter from VGA to HDMI ------ TV
    You also need sound, you can buy a converter with sound OR connect sound directly from laptop to TV.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • I have an abundant amount of images on my iPad and iMac and running out of storage space.  Where or what device can store these images for the least amount of money?

    I have an abundant amount of images on my iPad and iMac and running out of storage space.  Where or what device can store these images for the least amount of money?

    I would suggest
    http://www.lacie.com/fr/wheretobuy/index.htm
    LaCie Rugged Mini                            

  • Unfortunately I have deleted my entire itunes library and back up from my computer, is there any way I can copy my ipod nano back onto my computer into the itunes library? and re-download all the tunes I have purchased  from I tunes.

    Unfortunately I have deleted my entire itunes library and back up from my computer, is there any way I can copy my ipod nano back onto my computer into the itunes library? and re-download all the tunes I have purchased  from I tunes.

    Hello bigali,
    Your options are kinda limited. I would use this first:
    Downloading past purchases from the App Store, iBookstore, and ...
    Then check here for the non-purchased items:
    https://discussions.apple.com/thread/2452022
    You want to rebuild the library first, then sync the ipod.
    Here is a good idea for when your done:
    How to back up your media in iTunes
    Hope this helps.
    ~Julian

  • SQL SELECT statement Parent_child table and its related table..... HELP plz

    I have 2 tables
    Table Parent_child_table:
    ID | Parent_id | Name
    1 | NULL | Kitchen
    2 | 1 | Freezer
    3 | NULL | Garden
    4 | 3 | Grass
    Table Products:
    ID | parent_child_table_ID | Price | Comment
    1 | 2 | 111 | aaaa
    2 | 4 | 12 | vv
    I want to select Name from parent table where selected child ID are in PRODUCT table.....
    The result would like:
    |NAME|
    |Kitchen
    |Garden
    Can someone help with this SQL SELECT ?

    Raivis wrote:
    I have 2 tables
    Table Parent_child_table:
    ID | Parent_id | Name
    1 | NULL | Kitchen
    2 | 1 | Freezer
    3 | NULL | Garden
    4 | 3 | Grass
    Table Products:
    ID | parent_child_table_ID | Price | Comment
    1 | 2 | 111 | aaaa
    2 | 4 | 12 | vv
    I want to select Name from parent table where selected child ID are in PRODUCT table.....
    The result would like:
    |NAME|
    |Kitchen
    |Garden
    Can someone help with this SQL SELECT ?A guess
    select
       p.name
    from Parent_child_table p
    where p.parent_id is null
    and exists
    select
       null
    from Parent_child_table p1, products p2
    where p1.id = p2. parent_child_table_id
    and p1.parent_id = p.id
    )The reason it's a guess is because you've really done nothing to outline WHY you should get the results you say you would like. The more time you spend creating a clear question, the less time you'll have to spend weeding through useless answers.
    Cheers,

Maybe you are looking for

  • TS1372 is there any free latest software downloading for ipod touch first generation??

    i got a first generation ipod with 1.1.5 version i need to update its software to the latest one is there any updatin for free???

  • Web Site name

    Hi there, Ok so I'm new to using iWeb so please forgive me if this question has been answered before. First off, do I need to use the web.mac.com/My.MacId/PageName for my address? I am using my .mac account to design a page for my business and this w

  • Not inheriting group membership / users not showing in workgroup "Everyone"

    Hi, In the new OS X Lion Server Profile Manager, there is a default group called Everyone, that should contain all users. However, it only shows the first user I created (UID 1025). Users created after that are not automatically added to the group Ev

  • Format Macbook Pro Hard Drive Using Firewire?

    I'm selling my Macbook Pro and the buyer said when formatting my harddrive, I don't need to reinstall the OS (10.6.8) because he is going to install 10.7 on it. This is good news for me because I don't have the OS installation disk anymore. I read so

  • Variable at BW to BO integration

    Hi All, I am pulling the data from Bex-Query using CMC to BO 4.0, One variable at BEx query entry is Multple values, where as at the time of entering query designer, in WEB-I , it is asking multiple values.But when i am trying to keep that object as