How to get the first element of a list?

Hello

I have the following hierarchy:

A (first level)
-A1 (A child)
-B1 (A child)
-B11 (B1 child)
-B12 (B1 child)

I have a UDA on B11 and B12 members who have the same name as the A1, and I want to assign values to A1 to B11 and B12. After that, I want to consolidate the hierarchy so I can have B1 and with values.

I would like to use the ancestors function to do but the ancestors need a member as a parameter and the only relationship between A1 and B11, B12 is the UDA.

I can't do @ANCESTORS (@UDA (%{dimname/}, 'A1')) because of this, so I would use a function to get at least 1 member with the UDA, I want and use ancestors on this subject, but I can't seem to find a function that returns the first member of a list.

Can someone help me on this?

Thank you

Bummer, I finally shot to the top of my 11.1.2.1 instance of cloud and tried. You have (unfortunately) reason - I can spend real members names in @LANCESTORS and use it outside of a DIFFICULTY, but the minute I put in @ATTRIBUTE or @UDA he has poured out. Disappointment, because I thought that was a really cool thing.

I think still if you know z is always the parent you want to consolidate, a @IDESCENDANTS("Z") would do the trick, but maybe with inefficient - certainly less than a full size AGG.

Kind regards

Cameron Lackpour

Published by: CL 4 June 2012 10:13
Arrgh, and it's in the docs with underlining added by me:
If the function @LANCESTORS is used alone (not in a statement to FIX), you must use the function @LIST and specify names of members.

Tags: Business Intelligence

Similar Questions

  • How to get the first day of the week on the calendar?

    Hello

    I'm storing calendar weeks in my database. for example 30/2013.

    How can I get the first day of this week (Monday)? in this case, it is 22.07.2013

    THX

    Anja

    with your_table as)
    Select 30-2013' double your_column
    )

    Select
    trunc)
    TO_DATE ("0101"
    || (substr (your_column,-4), 'MMDDYYYY'), 'IW')
    + to_number (substr (your_column, 1, 2)) * 7-7
    start_of_week
    from your_table

    START_OF_WEEK
    22/07/2013

    Post edited by: chris227
    Corrected example

  • How to get the 6th element of a C.V. value column

    Hi all

    I use Oracle Business Intelligence 11.1.1.7.131017.

    I have a column with the following formula: C.V. ("Tickets". "Number of tickets"), but since we want to only show the values advocated by the past 6 months and which is an accumulative column, we added the rank function in the filter and placed as: grade (C.V. ("Tickets". " Number of tickets')) < = 6 and for the final formula, we need the minimum value that is placed in 6th place...

    My problem is how to get the value assigned to this position?

    Here's the column values:

    30719 (value I pretend-> min)

    31357

    32025

    32595

    33652

    34616 (I also use this value-> max)

    Any idea on how to get the value placed on tier 6?

    Thanks for the help and have a good week.

    Kind regards

    Frederico.

    I found a solution (poor, but it works)...

    As a minimum I want is always located in the row = 6 I put a case when row = 6, then returns the value I'm pretending, else return 0, so after that I need only the max of all values, as they are 0 or the value that I'm pretending, like this:

    MAX (CASE WHEN (GRADE (C.V. ("Tickets". "Number of tickets')) = 6) THEN of C.V. (FILTER ("Tickets"." Number of tickets' using 'status '. ((("" Resolved "="Resolvido")) END ELSE 0)

    I want to thank you all for the help, normally I post in the forum of the ADF but its good to know I can get a lot of support here as well...

    Many thanks to all,

    Frederico.

  • How to get the first and last record

    Hai All

    I have a table called T1 and there are more than 8 lakhs Archives and I have a column named Timestamp, so I need to get the first record value and time stampvalue and last record and time stamp value so that I can conclude that for example
    form June 13 to 15 June data are here


    Kind regards

    SrikkanthM

    What is the problem with:

    select min(timestamp),max(timestamp)
    from T1;
    

    ?

  • How to get the child elements of the ArrayCollection collection?

    Hi all

    I want to analyze collection ArrayCollection and want the child node element.

    How to parse the arraycollection collection?

    for (var i: int = 0; i<>

    {if (arrayCollectionObject.getItemAt (i). Item is "requireditem")}

    your code

    break;

    }

    }

    Let me know if it helps

  • How to get the name element and xml comment in a page?

    I need to list all the name element and comment on a page

    You can use below methods.

    IXMLUtils::GetElementIndices()

    IFrameList::QueryFrameContaining()

  • : last-child vs: first child - how to isolate the last element in a list?

    http://mayakaimal.BusinessCatalyst.com/index

    In an attempt to remove the red dot the last item in the list, I added this to the css:

    #menu ul > li a: last child, #menu ul > li a: hover: last-child {background: #fff ;}}

    I don't understand why this removed the point of the FIRST item in the list, as well. I have to specify a new first child selector?

    MOOKIE

    -Change

    #menu ul li + li + li + li + li + li + li a {background-color: #FFF ;}}

    on this subject.

    #menu ul li + li + li + li + li + li + li a {background-color: #FFF; background-image: none ;}}

  • How to get the checkbox value when value list changed in the classic report

    Hello
    I worked with apex 4.2 and I create normal classic report with a checkbox column and a single column change to select list (named loved) now, when I want change to user list
    take the value of the checkbox element and display it in the message.

    SQL for the report

    {
    SELECT
    "" "< INPUT TYPE ="checkbox"NAME ="f01"VALUE =" "
    || SEQ
    |'">"SEQ, "
    ID,
    DEPT_NO,
    EMP_NAME} I change the column attributes of Dept_NO to display as the selection of the name of the Department (named lov) list.

    now, I want when change of user name of the Department, the value of the MESSAGE ALERT SHOW IN SEQ

    I create JavaScript on the page

    function test (pThis) {}
    var f01_value = $('select[name="f01"]').value;

    Alert ("#SEQ:" + f01_value);

    }
    < /script >
    I call this javascript function when the change in the list, but the value undefined...

    My Question:

    How can get this value or any value of the point in reports

    concerning
    Ahmed

    Hello
    Check your page now.

    As mentioned earlier, you must use APEX_ITEM. CHECKBOX2.

    APEX_ITEM.CHECKBOX2(2,EMP.EMPNO,null,null,null,'f02_'||lpad(ROWNUM,4,'0')) NO,
    

    And the javascript function will be

    
    

    You cannot use $v to get the value of the checkbox element such that it works differently for the boxes, see http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/javascript_api.htm #BGBGDGIH.
    Therefore, you use the jQuery val().

    See you soon,.

  • How to get the name of a Poplist list item

    Hello

    How can I get a poplist, not the value element name list. When the user has selected a value of the list item,
    I need the name and the value, I can get by: BLOCK. Name of the LIST, but how can I get the name of element.
    Value & Elament name is different in my example,

    Work with Forms 10g


    Thanks in advance

    Rizly

    You will need to loop...
    Take a look at the example of the [built-in GET_LIST_ELEMENT_COUNT | http://www.oracle.com/webapps/online-help/forms/10g/state?navSetId=_&navId=3&vtTopicFile=f1_help/builtg/getlecnt.html]

  • How to install the first elements 12 without DVD/CD - a case of camera player

    Hello!

    I just bought a canon 5 d mark III, it included first items 12 and 5 of Lightroom.

    I would like to install these for my computer laptop windows 7 that is not DVD or CD Rom drive

    I know I could install the trial of 13 items and give the DVD serial number, but it's version 12.

    Have not tried this, because guess the trouble...

    The question could be: "where to download the trial version of first 12 items?".

    Or some other way?

    Thanks for the help!

    You can download the demo version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.
                                   
    Photoshop/Premiere Elements 12: http://prodesigntools.com/photoshop-elements-12-direct-download-links-premiere.html

  • How to get the first 5 records the table max

    Hello Experts,

    I had a rqmt to extract first five columns in a table for the past 6 years, I have implemented the function Rank and doing this, but it does not work, can anyone suggest me how to implement this?

    Thank you.

    Hello...

    Define first five... is this

    Select * from table_name
    where rownum<6>

    Then, create a column inside fx: RCOUNT (1), then filter this column: less than 6.
    ------------------------
    or is it based on a few rows?
    just explain.

    Check if correct/help
    Bachelot

  • How to get the first node in a XMLList have thong.

    Hello, I have this XMLList:

    < content >
    < TextFlow color = "#000000' columnCount '2' = >
    < p > < /p > one
    < / TextFlow >
    < / content >

    I need to get < textFlow > as a XMLList and String.

    then iterate over the XML (e.target.data). TextFlow table.

  • How to launch the first elements 12 trial version?

    I apologize for the rudimentary nature of this issue, but the download does not start.

    The Downloader gave me two folders, 12 pre and Readme.  Or contains a launcher program.

    This Adobe help page indicates a shortcut should appear in the list of programs to start, but nothing like that appeared.

    I downloaded the demo twice, make sure that it wasn't a mistake.  If the error is obviously to me - what Miss me?

    Hi Bryan,.

    After downloading the file, you need to install it. Open the downloaded Pre12 folder and the file reun executable .exe to start the installation.

  • How to get the first 6 digits and the last 4 digits of a string?

    Greetings people.

    A small question and probably quite simple for a lot of guys out there.

    I have a string which can be anywhere between 15 and 20 characters (not a fixed length)

    I can't be divided into 3 segments.
    Segment 1 : 123456 ( 6 digits )
    
    Segment 2 : Everything else in the string from where Segment 1 ends (+1) and Segment 3 begins (-1).
    
    Segment 3 : 1234 ( 4 digits )
    Any help is appreciated!

    Thank you
    select substr (str, 1, 6)
         , substr (str, 7, length (str) -10)
         , substr (str, -4)
      from test
    
  • How to get the numbers to remember a list of answers column on nine or more tables using the same format

    I'm new to numbers but were mainly use it to organize only a simple way to display the cases that arise in a criminal background check. So for a table, I can type driving while license revoked (DWLR) as the load and from there on the charge will fill itself or offer similar responses after typing a single key.  A well appreciated time saver but problems I can sort and summarize the criminal history for 10 people or more at a time and need to do it urgently often.   However when I opened a new table I have to cross and type a new the precise wording of a charge, its disposal (Guilty, voluntary dismissal etc.)  and just know that there is an easy way for the numbers to know in a new table that, if finished it is a list annoyingly long term broken criminal code list and do not have to do that in each new table so that it can take.  I know I'm missing something very basic, but any help would save hours for me and the other poor interns who spend twice as long just to undestand the case and troubleshoot.  Thanks for all the ideas!

    David

    Hi D,

    The AutoComplete feature provides suggestions picked on data entered in the cells above the one you are working in. You can automate the process by preparing a "full menu" table containing ALL the possible inputs for each column in the rows below the header lines.

    The checkbox in cell A1 is a switch, is used to insert the word HIDE in the cell that contains the list of AutoComplete terms. Cells in this area are filled with bright red to draw attention to them when indicated.

    A rule to reorganize (shown and applied below) hiding these lines when the box is checked.

    Hide the lines does not affect the operation of auto-complete, as shown in the table below:

    When the form is competed, action depends on how the result will be recorded and filed.

    If there is no need to edit/modify the file, it can be converted to a PDF using the print dialog. This produces a copy of the displayed part of the document only.

    If the document will require more editing, you can remove the lines containing AutoComplete suggestions. Clear the check box, select all the red lines filled, click the triangle in the row reference tabs and choose Remove.

    Formula in A2 - A10: = IF(A$1,"HIDE","")

    Kind regards

    Barry

Maybe you are looking for