MDX member names

When I run an MDX query it returns aliases...how can I return member names?
Thanks,
er

You’re not going to be happy with the way it looks.
SELECT{[Year]} ON AXIS(0),
{[Product].members} PROPERTIES [MEMBER_NAME] on AXIS(1)
FROM Sample.Basic
As Spofford points out in his book, “While the values of the properties requested with the PROPERTIES statement in an MDX query are returned, along with all other result information in the result data structures, it is up to the client application to retrieve and utilize this information.”
I haven’t been able to come up with a cleaner way to do it. MDX really isn’t a report language, its one step below a reporting language, so it has a number of limitations on how the data looks when you pull it and defers to the front end application pulling the data.

Similar Messages

  • List of avaliable MDX properties / Always show member name instead of alias

    Hi all,
    does anyone know if there is a list of ALL available MDX properties which can be used in an MDX query with Essbase?
    There is a very small list in the technical documentation (http://docs.oracle.com/cd/E12825_01/epm.111/esb_techref/mdx_properties.htm), however I know there are a lot more properties.
    E.g. one property which is not documented is ANCESTOR_NAMES:
    WITH MEMBER [Year].[dummy] AS '0', SOLVE_ORDER = 0
    SELECT {[Year].[dummy]} on columns,
    [Account].Members properties ANCESTOR_NAMES on rows
    FROM [App.Db];
    Anyone knows if there is such a list?
    And another question:
    The Query always brings up the alias of the members (e.g. [Account].Members). Is there a way that per default the member name instead of the alias is used? Without using the MEMBER_NAME property?
    Essbase version: 11.1.1.3
    Thanks
    Th

    amaerki wrote:
    For the second question regarding the member name try the following statement in a MaxL session:
    alter session set dml_output alias off;works like a charm, many thanks.
    Anyone an idea on the list of properties?
    Edit: found something related to XMLA: http://docs.oracle.com/cd/E12825_01/epm.111/aps_admin/ch03s03s07.html
    However, e.g. the porperty PARENT_UNIQUE_NAME does not work. Also the Book MDX solutions has a list with it with e.g. PARENT_UNIQUE_NAME specified which does not work...
    Anyone an idea how to get a list of all properties valid with MDX using Essbase?

  • How to extract Member Names in MDX script?

    I have a MDX script that by default gives me member aliases. How can I change it so it'd give me member names? I know I can use something like that:
    NON EMPTY [Employee].Levels(0).Members DIMENSION PROPERTIES [Employee].[Member_Name]ON AXIS(4)
    but then it gives me member aliases AND member names, and I need the names only.
    Thanks!

    The syntax you have is the way to get the member names, but as I said you wouldn't like the way it is displayed. MDX is not a reporting language and so it does not have the nice formatted selections. You will get both alias and member name by using the properties. you could run the output through some sort of parser (Perl perhaps) to get the format you want

  • 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.

  • How to compare substitution variable name to static member names (not data)?

    Is there a way to write a BSO member formula that compares a substitution variable against the name of a static member (not the data value of the member)
    For example, I have a BSO database that has the sub variable &CurrMth (which is set the real current month), and I am trying to use it in the Q1/Q2/Q3/Q4 member formulas
    IF(&CurrMnth <> "Jan" AND &CurrMnth <> "Feb")
       "Mar";
    The intention of the above is: if &CurrMnth is neither Jan nor Feb, then the Mar value will be used. However, the system is actually comparing the values of &CurrMnth and Jan/Feb, rather than the names/text string of "Jan"/"Feb".
    I have been looking around the tech references, but I was unable to find any functions that will compare the text strings of member names as they all appear to compare against the data itself.
    Please let me know if there are any ways to compare the member names themselves in a member formula, not the data values.
    Thanks!

    Thanks Celvin, that looks like it works!
    However, I do need to do the same function in the equivalent quarter members in our ASO cube as well. Do happen know know if there's a similar MDX function I could use in the ASO cube to acheive the same result? I was using the following to achieve this in ASO (which obviously did not work):
    IIF([Time Periods].[Jan] <> &CurrMth AND [Time Periods].[Feb] <> &CurrMth,
       [Mar],

  • Duplicate member names in member formulae

    How do you reference duplicate member names in a member formulae? In Excel or dimension building you say i.e. [TEST].[test1]. That format doesn't work in member formulae. Is anyone using duplicate name? If you do, maybe you have an answer.

    In System 9 databases, you can use a "duplicate member name" outline, in which case when you have the same member name more than once in an outline, Essbase automatically tells them apart. For example, you could have a Gen3 member named "New York" with a child named "New York", or many different states with children named "Springfield", for example. Or you could have a product code named "100" and also a customer code named "100".<BR><BR>You don't have any control over how the names are constructed, and unfortunately the automatically-generated name for a member may change if a duplicate for it is introduced in the outline, so you really don't want to use the "unique name" values returned from API calls. You can always refer to them by using a full ancestor path, like this:<BR><BR>[Geography].[East].[New York].[New York]<BR><BR>I don't know for sure but I would imagine the same is true in calc scripts and non-MDX member formulas:<BR><BR>"Geography"."East"."New York"."New York"<BR><BR>HTH<BR>

  • Validation Rule Error :Invalid Member Name In Lookup ({|0|}) value

    We defined fdm validation rule as follows.
    |Actual, April, 2010, YTD, ENTITY CURRENCY, Mumbai, TotalAssets, [NONE], [NONE], [NONE], [NONE], [NONE]|-|Actual, April, 2010, YTD, ENTITY CURRENCY, Mumbai, TotalLiabilities, [NONE], [NONE], [NONE], [NONE], [NONE]|= 0
    After testing the above rule definition, it gives below error message.
    Err = Invalid Member Name In Lookup ({|0|}) value in ID indicates invalid member)
    Scenario: ACTUAL [1]
    Year: 2010 [2010]
    Period: APRIL [83886080]
    View: YTD [2]
    Entity: MUMBAI [7]
    Parent Entity: MUMBAI [7]
    Value: ENTITY CURRENCY [-1]
    Account: TOTALASSETS [150]
    ICP: [NONE] [-1]
    C1: [MISSING_VALUE] [-1]
    C2: [NONE] [0]
    C3: [NONE] [0]
    C4: [NONE] [0]
    Lookup Error (2)
    Err = Invalid Member Name In Lookup ({|0|}) value in ID indicates invalid member)
    Scenario: ACTUAL [1]
    Year: 2010 [2010]
    Period: APRIL [83886080]
    View: YTD [2]
    Entity: MUMBAI [7]
    Parent Entity: MUMBAI [7]
    Value: ENTITY CURRENCY [-1]
    Account: TOTALLIABILITIES [-1]
    ICP: [NONE] [-1]
    C1: [MISSING_VALUE] [-1]
    C2: [NONE] [0]
    C3: [NONE] [0]
    C4: [NONE] [0]
    Also we could see in the Expression after lookup substitution (scratch pad): we are getting 0-0=0.
    Please provide you inputs.

    I have not looked closely, but C1 is showing as "Missing Value". Have you checked to see if [None] is a valid member for the account you have selected (TotalLiabilities)?

  • Selecting Member Name and also Alias in Web Analysis report

    I have made a web analysis report and now i want to show member names as well as alias of the members which i have selected on row side. How can i do that?
    Thanks in advance.

    in the member properties, you have an option to show alias, member name, or both. Click on both / alias as per the requirement

  • How can I pass value based on member names in a script in 11.1.1.3

    I want to pass a value to only those members of CostCenter dimension which has "5" in their name.
    Eg.
    C12345100
    C34565210
    C34217890
    So in the above case the value should exist only in the above 2 cost centers.
    Can someone guide me in the right direction to accomplish this ?
    Thanks in advance

    Just now I got more clearance on the requirement.
    I want to create blocks only on the selected Cost Centers & Business Unit combination.
    I have the following members in both these dimensions
    Cost Centers
    C12345980
    C12345981
    C12345982
    Business Unit
    BU5980
    BU5981
    BU5555
    Now I want to pass a value to one of the dense dimension members from Measure dimension (member name = CrtBlk) to only those CCs & BUs where the last 4 digit matches.
    So in this case it will be for only the first 2 cost centers.
    Thanks in advance.

  • Backup 3.1 V356 .Mac member name or password is not set

    Hello,
    I recently changed my .Mac Password and since I have done so, backup fails with .Mac member name or password is not set when I try and backup my personal data to my iDisk.
    I read on the Backup help to delete all associations with .Mac in the Keychain, which I did (I had this error before deleting the Keychain error: Invalid .Mac user name or password
    Unable to complete backup at this time.) I believe I deleted all of them and now how the Member name or password is not set. My way of trying to fix this was by going to the finder and clicking on the iDisk. I did this, it prompted me for the Username and Password, I re-opened backup and still no joy.
    Can anybody else think of anything?
    Do I need to delete backup and re-install it or something?

    Things to try
    System Preferences in the Internet section, under the Account table, re-enter your .mac email address and password
    On your hard drive go to Library/Keychain and see if there are any values for .mac
    JTS

  • Can we use Aliases instead of member name in Calc Manager

    We migrated business rules to Calc Manager. After migration Calc Managers are not getting validated (stating the member is missing in the database). Later found out that in the script it has alias name instead of member name which was causing this error.
    example
    Member name = C001
    Alias = Texas
    in the script it is mentioned Texas = 5; (this statement throws an error while validating, stating Texas is not present in the outline, even though Texas is present in the Alias table as an alias for C001).
    Once I modify the script to C001 = 5; it gets validated without any issue.
    Does this mean in Calc Manager we cannot use Aliases unlike business rules and Calc Scripts?
    Please advice.

    The 'Defects Fixed' section of the release notes for 11.1.2 includes...
    "Calculation scripts validate inconsistently in Essbase and Calculation Manager (8800397)."
    ...which is pretty broad!
    Can you run the rules OK? If so, I'd just ignore the Calculation Manager validation message.

  • Changing a member name in Essbase

    In my ASO cube - I need to change both a level 0 and parent member name in EAS. Is it as easy as edit member properties and typing in the new name? Does the existing data follow? Also, does going from lower case to upper case create a similar change in the outline?
    Thanks,
    Paul

    Hi Paul
    In my ASO cube - I need to change both a level 0 and parent member name in EAS. Is it as easy as edit member properties and typing in the new name? Does the existing data follow? Also, does going from lower case to upper case create a similar change in the outline?you can also use rule file to change the alias name if you are trying to change the alias name in bulk, but if you have to do for few members then goto edit member properties and change the alias it will be an easy process,
    change of alias name doesnot harm your datayes going from Lower Case to Upper Case create similar change to outline
    Thanks,
    Avneet Singh

  • Reading data from a text file into PAS - Dimension member names truncated

    Hi,
    I created a procedure to dump variables and data into a text file to load into another model. I used a semicolon as a field seperator.
    The data, measures and dimension members are dumped properly into a text file and no dimension member names are truncated .
    However when I read the data into  a measure, and I issue a peek command, dimension meber names are read in truncated
    and remain full names in the text file. Any reason for this? What do I need to do to prevent this from happening?
    THanks.
    Lungile

    Hi Lungile,
    The problem that you're likely having is that you haven't created a file description for the file from which you're reading.  When loading data into Application Server from a text file, you would normally go through three steps:
    1. Enter the ACCESS EXTERNAL subsystem
    2. Specify the name of the file to be read
    3. Specify the format of the file field names, types, widths, and positions.
    If you go into the Application Server help, select "Application Server Help", then "Application Server at the command level", then "Variables and reading in data", and then "Reading an external file", you will have the process of the steps you need to follow outlined for you, including links to the help topic for each command you need to issue.
    So what I think you need to do is use the DESCRIPTION command to specify the names of your fields, their type, and also their width, in order to ensure no truncation of data on the load.
    The same DESCRIPTION statement is required if you want to use your text file as the source of a dimension.
    Hope this helps,
    Robert

  • Susbtitution Variables in rules file to replace a member name with another

    Hi everybody,
    Can I use substitution variables to replace a member name with another name in rules file?
    Please let me know if we can use substitution vars.
    Essbase version :11.1.2
    Thanks,
    K.as

    Are you the same guy?
    http://www.network54.com/Forum/58296/thread/1287447433/Susbtitution+Variables+in+rules+file+to+replace+a+member+name+with+another+name
    The answer is still, "No".
    Regards,
    Cameron Lackpour

  • How to truncate the last 4 characters of a member name?

    <p>Hi,</p><p> </p><p>I've got a few accounts with names ending with the 4 characters:".FCT"</p><p> </p><p>The accounts names are of different length like PL20100.FCT andMK110.FCT</p><p> </p><p>I'm trying to create a rule like PL20100.FCT = PL20100</p><p> </p><p>I've tried to FIX on the accounts without the ".FCT"and to concatenate to get the ".FCT" but it's not allowedto concatenate a member name used on the left hand side.</p><p> </p><p>Any suggestion to do this in a smart way would be greatlyappreciated.</p>

    Try wrapping in a calc block<BR><BR>"PL20100"(<BR>@MEMBER(@CONCATENATE(@NAME("PL20100"), ".FCT")) = "PL20100";<BR>)<BR><BR>You might have to play with this a little, but the idea should work.

Maybe you are looking for

  • Pavilion g6

    Pavilion g6 replaced cracked screen and now message states hard drive not found. Hard drive crash? Did screen breaking cause this? Could I have disconnected hard drive while replacing screen? Can the data be recovered?

  • Why can't I drag a single song to an album in itunes 10.5.2

    I have an album with 12 tracks in it but the Number 1 track some how got left out. Now I'm trying to drag it to the Album in album view but it won't go in.  I also went to get info and told it was a compulation and re-named everything to match and it

  • Cloning a new MacBook Pro

         I bought a new MacBook Pro a couple of weeks ago which had 10.8.1 installed. I attempted to use Migration Assistant to transfer files from my Mac Pro which was also using 10.8.1. Migration Assistant hung up. So I simply cloned my Mac Pro (early

  • Servlet and EJB on different machine: Security propagation

    Hi all, I have an application, where my servlets and EJBS are deployed on the same machine.So when in my servlet a user need to authenticate himself, security credentials are propagated to the EJB automatically.I'd like to know in the case where the

  • Downloading already purchased material

    Okay- so I accidentally rebooted my computer. Is there any way to download purchases that I bought before I became stupid? That's a ton of money down the drain if I can't. I don't want to have to smack a iTunes. Anyone? <edited by host>