Parent child hierhecy in customer dimension how can select parent gogrphey when we select parent id in MDX

i have customer dimension
CustomerId
CustomerName
CustomerParentID
State
Region
my requiremnt is when i select parent id automatically my parent state select using MDX query.

Hi Manishcal,
According to your description, you want to get parent state based on the parent id, right?
We can use the parent function and member properties function to retrival the dimension attribute. I have tested it on my local environment, the sample query below is for you reference.
with member [measures].[Parent]
as
[Employee].[Employees].currentmember.parent.name
member [measures].[ParentHireDate]
as
[Employee].[Employees].currentmember.parent.properties("Hire Date")
select {[measures].[Parent],[measures].[ParentHireDate]} on 0,
[Employee].[Employees].[Employee Level 06].members on 1
from
[Adventure Works]
Regards,
Charlie Liao
TechNet Community Support

Similar Messages

  • Filtering Parent-Child Hierarchy in SSAS Dimension

    Hello,
    I have a parent child hierarchy in ssas dimension. Parents level can be vary. As an example, I have 4 levels and parent may exist in level 1, level 2 or level 3.
    What I need to do is filter those parents using one of the attributes in that dimension. I can't do it as normal, because once I apply a filter to parents, that will be affected to its children as well. 
    what normally happens
    Parent1(attribute=true) - > Child 1(attribute=true) -> Child 2 (attribute=true)
    Parent 2(attribute=true) -> Child 3 (attribute=true)
    what I need
    Parent1(attribute=true) - > Child 1 -> Child 2
    Parent 2(attribute=true) -> Child 3 
    How can I achieve this?

    Finally descendant function worked for me. I had to filter necessary properties first.
    WITH SET ParentCodes AS (
    Descendants(
    FILTER(
    [DimX].[Code].members,
    [DimX].[Code Parent].currentmember.Properties("Area") 
    = "Northern"),,
    SELF)
    SELECT
    {[Measures].[TotalAmount]} ON 0,
    {ParentCodes } ON 1
    FROM [Cube]
    Hope this helps

  • I just recently purchased a mini iPad for my child. It was set up in the Apple store with my Apple id. I now want to create an Apple id for my child and switch it over, how can I go about that. I already downloaded some of the games from my account.

    I just recently purchased a mini iPad for my child. It was set up in the Apple store with my Apple id. I now want to create an Apple id for my child and switch it over, how can I go about that. I already downloaded some of the games from my account.

    With a new account, you'll need to rebuy the games.
    Each user should have their own icloud account, otherwise they end up getting the same emails, contacts, calendars, notes, reminders, etc. - usually not what you want.  But if all have been sharing the same itunes ID, keep it that way, you can have different IDs for itunes and icloud.
    If you already have another icloud account, and want to set it up on a device, then go to Settings>icloud, scroll to bottom of screen and tap Delete Account.  This only disconnects the device from that account, no data is lost on icloud.  Then enter the account ID that you want to use.
    To create a new icloud account, go to
    http://www.apple.com/icloud/setup/

  • How can we retrieve the name of the Parent Space from the subspace?

    We wish to use a hyperlink in a subspace template which allows a user to link back from the subspace to its parent space.
    This hyperlink should show the name of the parent space.
    These Expression Language Expressions return parent information, but they so not show the Name of the parent space or other details like the Parent Space URL.
    #{spaceContext.currentSpace.parent}
    #{spaceContext.space['bpo'].parent}
    How can we retrieve the name of the Parent Space?

    I agree!
    I can't top this approach.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How can I increase resolution when burning a dvd with elements 11 premiere

    How can I increase resolution when burning a dvd with elements 11 premiere
    I am trying to generate a slide show DVD....the pictures on the TV are poor quality

    Welcome to the forum.
    As Steve points out, a DVD-Video is set in resolution, to 720 x 480 (for NTSC), in either Standard 4:3, or Widescreen 16:9. That is as good as it can get, and is not a limitation of PrE, but of the DVD-Video specs, which were written a long time ago.
    The best that one can get is to play that DVD-Video on an up-rezzing DVD player, or most BD players, that also have up-rezzing, to an HD TV monitor. Those players have dedicated chips, JUST for up-rezzing.
    Then, and per Peru Bob's questions, I attain the ultimate Still Images to DVD-Video, by doing my Scaling in Photoshop, and using either the Bicubic Sharper, or Bicubic Smoother Scaling algorithms. I Scale my Camera RAW Images to match my Project's Frame Size, and Crop, where necessary to match the Aspect Ratio of my Images, to the Aspect Ratio of the Project, i.e. if going to a 16:9 Widescreen, I will lose some pixels top and bottom, but I account for that, per my asesthetic.
    Note: some PrE users insist that the Scaling in PrE is as good as Photoshop's, but my critical eyes point to using PS. Also, I do NOT use JPEG, which is a lossy, compressed format, and will Save_As PSD from Photoshop, for ultimate quality.
    Good luck, and please let us know the pixel x pixel dimensions of your Images.
    Hunt

  • How can I pre-define the default selection in a SelectOneChoice?

    How can I pre-define the default selection in a SelectOneChoice?
    (1) Here's my JSF-code:
    <af:selectOneChoice label="#{res['usercreate.input.sex']}"
    value="#{bindings.Sex.inputValue}"
    binding="#{SelectListBean.sexlist}"
    readOnly="false" autoSubmit="false">
    <af:selectItem label="#{res['data.sex.women']}" value="1"/>
    <af:selectItem label="#{res['data.sex.man']}" value="2"/>
    </af:selectOneChoice>
    (2): manged bean: to set the default value to be the first in the list, my managed bean as follows:
    import oracle.adf.view.faces.component.core.input.CoreSelectOneChoice;
    public class MBSListBean {
    private CoreSelectOneChoice sexlist;
    public MBSListBean() {
    public void setSexlist(CoreSelectOneChoice sexlist) {
    this.sexlist = sexlist;
    this.sexlist.setValue(1);
    public CoreSelectOneChoice getSexlist() {
    return sexlist;
    (3) when i launch the page, it often gives me such warnings:
    WARNUNG: Could not find selected item matching value "1" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=_id7]
    how to solve the problem ?
    Thanks,
    wzzdx

    You could also set the default on your entity or viewobject, in the properties of your attribute.

  • On switching on, a message says 'Firefox is already running but not responding...........' then tells me to close it and restart but how can I close it when the page isn't yet displayed?

    When I switch on my computer I get the desktop then I try to click on Mozilla Firefox but get the message, 'Firefox is already running but not responding. To open a new window you must first close the existing Firefox process or resart your system.' I looked up how to close but I need to click on 'file' then 'exit'. How can I do that when I can't see the page yet? IE is working fine.

    See also [[Firefox is already running but is not responding]]

  • How can you change your line access selection?  I have found where you can change your plan selection, but can you change the line access fee or is that a set amount?

    How can you change your line access selection?  I have found where you can change your plan selection, but can you change the line access fee or is that a set amount?

        DIVAB71,
    Great question. The line access fees for the account are a set amount and can not be changed unless you are going from a basic to a smartphone or vice versa. If you are wondering about adding the month to month discount if you are out of contract Ann154 has provided great information on how to access and add the feature.
    LindseyT_VZW
    Follow us on Twitter @VZWSupport

  • I am with a university and i purchased the adobe photoshop elements for a faculty member of mine, how can he download it when it is in my name but he is the one needing it?

    i am with a university and i purchased the adobe photoshop elements for a faculty member of mine, how can he download it when it is in my name but he is the one needing it?

    There is nothing to prevent him from downloading and installing the trial version (Adobe - Download free trial version Adobe Photoshop Elements 12 | Adobe).  At the point all you need to do is provide him with the serial number so that he can activate it.  If the intent is that he be the owner of the software then you might want to see about transfering the license...
    Transfer an Adobe product license

  • How can I download itunes when I get the following errors...have installed and uninstalled a dozen times with various fixes...b noir for example and used Revo to clean up..ituneshelper did not install correctly error 7

    How can I download itunes when I get the following errors  ..ituneshelper did not install correctly error 7..I .have installed and uninstalled a dozen times with various fixes...b noir for example and used Revo to clean up.
    This has been a problem for 6 weeks now, I retry when I have time and patience and use my other laptop which is also Windows 7 and runs with no problem.
    Every attempt fails when all seems fine on the desktop and I try to log on to Itunes I get the errors.
    Any help greatly appreciated.
    billymac

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features(Later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (If this won't uninstall press on)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    See also HT1925: Removing and Reinstalling iTunes for Windows XP or HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    Should you get the error iTunes.exe - Entry Point Not Found after the above reinstall then copy QTMovieWin.dll from:
    C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    and paste into:
    C:\Program Files (x86)\iTunes
    The above paths would be for a 64-bit machine. Hopefully the same fix with the " (x86)" omitted would work on 32-bit systems with the same error.
    tt2

  • How can i delete Record when i click on Delete Link in a report

    hi,
    i have to create report
    select S_NO,BILL_NO,LED_NAME,PUR_LED,VAT,BILL_DATE,ST_GRP_UND,GODOWN_NAME,
    ITEM_NAME,UNIT,QTY,RATE,PER,DIS,AMOUNT,'Delete' from DUMY_AC_LED_PURASEI want to delete corressponding record when i click on Delete Link.
    Here S_NO is P.k.
    How can i delete Record when i click on Delete Link.

    Manoj,
    If something does not work then you should report back on the same thread so that there is continuity to the whole episode. Be as lucid as you can be so that people know whats the scenario. E.g. is not working is not enough. What happens? Does is show error , go blank, goes to another page... all that is important.
    Its for posterity, down the line others will also visit the thread (may be).
    Regards,

  • I've lost my iPhone 4... How can I find it when the device is offline when using "find my iPhone app"????? Any way of getting a location from it????

    I've lost my iPhone 4... How can I find it when the device is off linesmen using "find my iPhone app"????? Any way of getting a location from it?????

    No. It must be online in order to locate it.
    What To Do If Your iDevice Is Lost Or Stolen
    iPhone, iPod Touch, and iPad
    If you activated Find My Phone before it was lost or stolen, you can track it only if it is connected to the Internet by Wi-Fi or cellular. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
    If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
    This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T. Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. iCloud- Use Lost Mode
      6. What to do if your iOS device is lost or stolen
      7. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      8. Find My iPhone
      9. Report Stolen iPad | Stolen Lost Found Online
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on iCloud
      3. OS X Lion/Mountain Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)

  • HOW CAN I HAVE THE NUMBER OF SELECTED ROWS IN ALV GRID?

    HI.
    HOW CAN I HAVE THE NUMBER OF SELECTED ROWS IN ALV GRID????
    GABRY =)

    You need to use
    data : grid1  type ref to cl_gui_alv_grid.
      call method grid1->get_selected_rows
        importing
          et_index_rows = i_sel_alvrows[].

  • On slide No. 13 of my Keynote presentation, I have varous pictures that go through automatically just as I programmed them, but if I I want to get by clicking to the next slide , it does not let me. How can I program so when I want goes to next slide?

    On slide No. 13 of my Keynote presentation, I have varous pictures that go through automatically just as I programmed them, but if I I want to get by clicking to the next slide , it does not let me. How can I program so when I want goes to next slide?

    Keynote is programmed to execute all of the effects in a build sequence before it will move to the next slide.
    If you want tobe able to move to the next slide at any time in a sequence of builds, you will need to set all of the builds on that slide to:  "on click". You will then need to execute each build by pressing the space bar or click the left mouse button for each object.

  • How can I make invoice when down payment is bigger than item value ?

    Dear all,
    please, I need make invoice with bigger down payment than the item value.
    How can I make invoice when down payment clearing value is bigger than the item value ?
    When I do Release To Accounting, I have got a massage:
    "Total of down payment to be billed too high. See billing document item XXXXX"
    Please, how can I solve this problem?
    Thank you
    Peter

    Hello,
      I would like to underline that this is not a problem, but a standard, and in my opinion rightful behaviour of SAP: in a dowpayment process, when you create the invoice document, you should deduct only an amount less or equal to the invoice amount. And in the following invoices you will deduct the remaining downpayment amounts still open.
    Also under al legal and fiscal point of view, I guess how would you print the invoice? With a minus value?
    Best regards,
    Andrea

Maybe you are looking for

  • My mac pro wont start. I push the power button and I get a click sound. A few seconds later another click sound and that it.

    My mac pro wont start. I push the power button and I get a click sound. A few seconds later another click sound and that it. I've tried different power plugs. Going direct into the wall, through a power strip. By iteslf, with other devices plugged in

  • Internet drops when Starcraft 2 patches

    Hey, So I installed SC2 the day before yesterday and as soon as it started patching the problems began. Everytime I open SC2 and begin to patch my internet drops. Airport wont drop or anything, just the internet will stop working. If I go to network

  • Brand new iPod won't turn on.

    I've recently purchased a 30GB iPod video, but it does not seem to work. I've studied the help documents to the best of my abilities and consulted friends who also own iPods, but have yet to find out how to solve my problem. As the subject line says,

  • IPhoto email fails

    Trying to send a photo by email but the email address disappears from the address block.

  • PS everytime must start it twice

    i use CS Extended on imac 10.10.2, Problem 1: When i open a file, i have to start it everytime twice before the file open. Problem 2. how i can stop the Adobe info if i like to join it. (see pict) many thanks for the support Stephan