Any idea which function Essbase or a combination of function can be used to get the level zero members of a list of members.

Any idea which function Essbase or a combination of function can be used to get the level zero members of a list of members. I know that @RELATIVE or @DESCENDANTS cannot be used.

If you want to fix on all level 0 members in a member set, then maybe @ILDESCENDANTS will work for you.  Something like: @ILDESCENDANTS (@LIST (members), 0)

Tags: Business Intelligence

Similar Questions

  • an analytic function can be used to get the next largest value?

    I have a table with the values as follows:

    ID term val
    1 200720 aaa
    1 200720 bbb
    1 200720 ccc
    1 201220 ddd
    1 201220 eee

    2 200720 qqq
    2 200720 rrr
    2 200920 sss

    What I need, is to get the value of the next higher period (999999 if not exist) for each id line, like this:

    ID term val next_term
    1 200720 aaa 201220
    1 200720 bbb 201220
    1 200720 ccc 201220
    1 201220 ddd 999999
    1 eee 201220 999999

    2 200720 qqq 200920
    2 200720 rrr 200920
    2 200920 sss 999999

    I tried lead futures partitiion by id, but that just gives me the value in the next line. I watched windowing, but my eyes crossed. Any ideas? I need the next highest value not the value in the next line. The value of next_term must never be identical to the value term

    CREATE TABLE WJPTEST
    (
    ID VARCHAR2 (3 CHAR),
    VARCHAR2 (6 CHAR) TERM,
    VAL VARCHAR2 (3 CHAR)
    )
    ;

    Insert into WJPTEST
    (ID, VAL)
    Values
    ('1', '200720', 'aaa');
    Insert into WJPTEST
    (ID, VAL)
    Values
    ('1', '200720', 'bbb');
    Insert into WJPTEST
    (ID, VAL)
    Values
    ('1', '200720', 'ccc');
    Insert into WJPTEST
    (ID, VAL)
    Values
    ('1', ' 201220 ","ddd");
    Insert into WJPTEST
    (ID, VAL)
    Values
    ('1', ' 201220 ","eee");
    Insert into WJPTEST
    (ID, VAL)
    Values
    ('2', '200720', 'qqq');
    Insert into WJPTEST
    (ID, VAL)
    Values
    ('2', '200720', 'rrr');
    Insert into WJPTEST
    (ID, VAL)
    Values
    ('2', '200920', 'sss');
    COMMIT;

    Published by: wjpenfold on 12 June 2012 10:08

    wjpenfold wrote:
    what I want is the next largest value that may never be the same value as the current line. I'm working on getting the code example.

    What are the increments of TEMP? Assuming that the TERM cannot grow less than 1:

    NVL (Lead (term) OVER (PARTITION BY id ORDER BY term RANK BETWEEN 1 NEXT AND UNBOUNDED FOLLOWING), 999999)

    For example:

    select  sal,
            NVL(FIRST_VALUE(sal) OVER (ORDER BY sal RANGE BETWEEN 1 FOLLOWING AND UNBOUNDED FOLLOWING),999999) lead_sal
      from  emp
      order by sal
    /
    
           SAL   LEAD_SAL
    ---------- ----------
           800        950
           950       1100
          1100       1250
          1250       1300
          1250       1300
          1300       1500
          1500       1600
          1600       2450
    
           SAL   LEAD_SAL
    ---------- ----------
          2450       2850
          2850       2975
          2975       3000
          3000       5000
          3000       5000
          5000     999999
    
    14 rows selected.
    
    SQL>  
    

    SY.

  • EXTRACT function can be used directly in the CASE statement WHEN

    I wrote the following SELECT statement. The function 'calc_time_diff' is a stored function that subtracts two timestamps and returns the result to the total number of seconds. My DBA does not 'calc_time_diff' as a stored function, then, I replaced the third line (in bold) in the SELECT statement with this:

    COUNTY ( BOX WHEN (extract (DAY OF v_end_ts-v_st_ts) * 24 * 60 * 60) +)

    (extract (HOUR FROM v_end_ts-v_st_ts) * 60 * 60) +.

    (excerpt (v_end_ts-v_st_ts MINUTE) * 60) +.

    extract ((DEUXIÈME à PARTIR de v_end_ts-v_st_ts) < 3600 THEN 1 END) less_than_1_hrs_count

    But the CASE above does not work. It returns the same value as COUNT (*). If the total number of tickets is 32 output will be

    total_tickets less_than_1_hrs_count

    32                                 32

    If I call the "calc_time_diff" then I get the correct result. What I'm doing wrong here?

    **********************************************************************************************************************************************************************

    SELECT

    Count (*) total_tickets,

    COUNTY ( CASE WHEN END of calc_time_diff (t.created_date, h.closed_date) < 3600 THEN 1) less_than_1_hrs_count

    OF n01.cc_ticket_info t

    JOIN IN-HOUSE

    (SELECT ticket_id, MAX (created_date) closed_date

    OF n01.cc_ticket_status_history

    WHERE ticket_status = 'CLOSED' AND created_date > = 18 August 2013 ' AND created_date < (to_date('08/24/2013','MM/DD/YYYY') + interval '1' DAY)

    GROUP BY ticket_id

    ) h

    WE (t.ticket_id = h.ticket_id)

    INNER JOIN n01.cc_ticket_notes n

    WE (n.created_date = h.closed_date)

    WHERE (t. ticket_status = 'NOTIFICATION' t.ticket_status 'CLOSED' = GOLD) AND t.created_date > = 18 August 2013 ' AND t.last_changed < to_date('08/24/2013','MM/DD/YYYY') + interval '1' DAY);

    ***********************************************************************************************************************************************************

    create or replace

    FUNCTION calc_time_diff)

    p_st_ts N01.cc_ticket_info. Type of LAST_CHANGED %,

    p_end_ts N01.cc_ticket_info. Type of LAST_CHANGED %)

    RETURN NUMBER

    AS

    v_no_sec NUMBER;

    v_st_ts N01.cc_ticket_info. Type of LAST_CHANGED %;

    v_end_ts N01.cc_ticket_info. Type of LAST_CHANGED %;

    BEGIN

    v_st_ts: = p_st_ts;

    v_end_ts: = p_end_ts;

    SELECT (extract (DAY OF v_end_ts-v_st_ts) * 24 * 60 * 60) +.

    (extract (HOUR FROM v_end_ts-v_st_ts) * 60 * 60) +.

    (excerpt (v_end_ts-v_st_ts MINUTE) * 60) +.

    excerpt ((SECOND from v_end_ts-v_st_ts)

    IN v_no_sec

    DOUBLE;

    Return v_no_sec;

    END calc_time_diff;

    Hello

    You don't need a function defined by the user or the EXTRACT to find the difference between two timestamps.

    SELECT COUNT (*) AS total_tickets

    , COUNTY ( BOX WHEN h.closed_date < t.created_date="" +="" interval="" '1'=""> )

                         THEN 1

    END

    ) AS less_than_1_hrs_count

    ...

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the results desired from these data.
    Point where the above query is to produce erroneous results, and explain, using specific examples, how you get the right results from data provided in these places.
    If you change the query at all, post your modified version.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

  • Hi, I've alerted to creative cloud for windows. I bought a mac, so I would like to cancel the one for windows and Mac. "Subscriber." Any idea? I looked everywhere on adobe, but I can't find. Thanks a lot for your help!

    Hi, I've alerted to creative cloud for windows. I bought a mac, so I would like to cancel the one for windows and Mac. "Subscriber." Any idea? I looked everywhere on adobe, but I can't find. Thanks a lot for your help!

    There is no need to cancel one for Windows since CC subscriptions are not platform specific.  Your subscription allows you to use it on Windows and Mac computers, so just install Mac on Mac files.

    Download/install the desktop application, connect and install applications subscription.

    https://helpx.Adobe.com/creative-cloud/help/download-install-app.html

  • If I have the creative cloud package which has Photoshop, Indesign and Illustrator CS6, should I pay again to get the CC 2014 version?

    If I have the creative cloud package which has Photoshop, Indesign and Illustrator CS6, should I pay again to get the CC 2014 version?

    It depends really on what subscription plan, you are connected to.  Normally any programs are available through your subscription are listed for install you in the CC Office Manager application.  If you do not see some programs listed, it might be because your machine does not meet the system requirements for them... that's normally what happens with the Manager.

  • If we then use the DML in function, this function can be used inside s

    If we use the DML statement in a function, then this function can be used within the select query or any DML query?
    select f from t2;
    

    I think that you wanted to interrogate t1.

    This works if the function is a stand-alone transaction:

    create or replace function f return number
    is
    PRAGMA AUTONOMOUS_TRANSACTION;
    begin
        update t1 set c=2;
        commit;
        return 1;
    end;
    / 
    
    select f from t1
    

    But as Billy, why would you do this way DML. And it's not stand-alone procedures should be used.

    A response to an interview question, but nothing wrong with it.

  • In my laptop, when I open the itunes window there is an option 'Internet Radio' to listen to the different type of music. This "Internet radio" function can be used on my iphone5? And if so, how can I make it work?

    In my laptop, when I open the itunes window there is an option 'Internet Radio' to listen to the different type of music. This "Internet Radio" function can be used on my iphone 5? And if so, how can I make it work?

    No more. It merged with the Apple's music.

  • How can I connect to my server (which runs on windows server 2008 rc2) via IP REAL using rdp, while the VPN connection is active?

    Hello

    How can I connect to my sServer (which runs on windows server 2008 rc2) via IP REAL using rdp, while the VPN connection is active?

    Hello Marie Smith.

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the link below.

    http://social.technet.Microsoft.com/forums/en-us/winservergen/threads/

    Hope this information helps.

  • My laptop stopped recognizing wireless function. What drop-down list function should I use to get it to recognize wireless again?

    My laptop stopped recognizing wireless function.  What drop-down list function should I use to get it to recognize wireless again?

    Hello

    What is the brand and model of your laptop?

    Follow the suggestions and check out them.

    Method 1

    You can follow the procedure in the article.

    Enable or disable a network adapter

    http://Windows.Microsoft.com/en-us/Windows-Vista/enable-or-disable-a-network-adapter

    Method 2

    Windows wireless and wired network connection problems

    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    See also:

    Network adapter problems

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-network-adapter-problems

  • I currently have an ad - one that I use frequently on IE8 which does not work on IE9. How can I stop to get a message that I have new updates when IE9 is the only update?

    I currently have an ad - one that I use frequently on IE8 which does not work on IE9.  How can I stop to get a message that I have new updates when IE9 is the only update?

    Hi altak38,
     
    -What is the add-on which you speak?
    -Are you referring to Windows Update with Internet Explorer 9 update several times even if it has been installed?
     
    If so, follow the steps in the following article to resolve this problem.
     
     
    Post back with more information for the issuance of the add-on - to help you help.
  • Case function can be used as a parameter when calling a procedure, please advise...

    Case function can be used as a parameter when calling a procedure, please notify

    The daily procedure is called with the parameter 3 following one of the parameters using a function box between them as shown below.

    Daily_Ins (c1.p_mtrid, c1.p_UOM CASE WHEN "KWH" THEN 1 ELSIF 'KW' THEN 2 END, v_dateHold);

    In my opinion, using decode is illegal, so I think that I cannot say something like :

    Daily_Ins (c1.p_mtrid, ( decode c1.p_UOM, "KWH", 1 'KW', 2), v_dateHold);

    I think I just found something on the net

    SQL > DECLARE

    2 wages NUMBER: = 20000;

    3 employee_id NUMBER: 36325 =;

    4

    5 PROCEDURE give_bonus (emp_id in NUMBER, bonus_amt number) IS

    6 BEGIN

    7 DBMS_OUTPUT. Put_line (emp_id);

    8 DBMS_OUTPUT. Put_line (bonus_amt);

    9 END;

    10

    BEGIN 11

    12 give_bonus (employe_id,

    13 CASES

    14 salary when > = 10000 AND salary<=20000 then="">

    15. WHAT salary > 20000 AND salary<= 40000="" then="">

    16. WHAT > 40000 salary THEN 500

    17 0 OTHERWISE

    18 END);

    END 19;

    20.

    PL/SQL procedure successfully completed.

  • If Firefox is set as the default browser and any application tries to open a new window, it doesn't work and I get the error "Firefox is already in running... »

    Here's what I'm running:
    Microsoft Windows 7 Service Pack 1, fully updated to 04/10/2012
    New installation of Firefox 11. No add-on enabled following troubleshooting.
    I am a user has administrator rights
    SAMU is disabled.

    For starters, this has happened since Firefox 10 or more. A couple of months now.

    I am able to open Firefox. My modules worked (ABP, Flashblock, ABP Element Hiding Helper, IETAB2, Downthemall, Greasemonkey, extension of 4chan) had no problem. Firefox is defined and has been fixed for the past two years as my default browser.

    But since about 10 or so, maybe Firefox before, if I opened a session of Firefox and any other application attempts to open a session in a new window, I get the Firefox is already running but not responding do not error. »

    I tried to follow the advice of already posted troubleshooting (glance to parent.lock files left [no date], several sessionstore.js [no date] files, create a new user profile, has tried to erase the 'read only' permission in windows 7, but as soon as it is cleared, only read permission back.)

    As a last resort, I deleted the Firefox folder, the directory %APPDATA%/Mozilla in its entirety and then used CCleaner to remove all references to Firefox in the windows registry, and then made a complete re - install, without extensions installed right now.

    I checked the preferences and have the option "open new windows in a new tab" checked. The problem persists without worrying if this option is checked or not. This problem persists in or out of safe mode, even with the new facility.

    Test case:

    All cases:
    Firefox is selected as the default browser for windows 7

    Case 1: Log in to firefox. Use any other program that is trying to open a link to their Web site in a new window browser or the new browser session. "Firefox is already running" error

    Case 2: Open a firefox session. Right click on Firefox in the taskbar. Select 'open in new window '. "Firefox is already running" error

    Case 3: Open a session of firefox. Select the Firefox Menu > new tab > new window. In fact, a new window opens.

    This is the only method of opening a new window in the same browser session or profile that actually works on my system. Attempting to open a browser session from the task bar "open new window dialog" or opening a new window while a current window/session is running will not open firefox in a new window or a new tab in the current session. The "Firefox is already running, but is not responding" error will occur every time.
    

    Make sure that you do not start Firefox with the - No.-remote switch or have defined the MOZ_NO_REMOTE = 1 environment variable (Control Panel > system > advanced > environment variables).

  • Function of @Allocate can't seem to get the right syntax

    Hi friends,

    I need to make a linear distribution (all equal amounts) of value has prompted at least (for a given combination of year-round version scenario entity etc.)

    I'm yeartotal-quarters and months.

    I can't use the usual period of spread I need produce whole numbers and the standard distribution introduced decimal numbers.

    I thought I'd be able to use @allocate to do something like that, but I'm having trouble him to validate both calcmgr and eas with what I thought was a pretty simple attempt, that is, difficulty on the account will be allocated and relevant narrowing and then assign a value to the range of months using propagation and rounding and applying the difference to the higher member or the first in the range:

    DIFFICULTY (' 21 ',' e080201 ', 'HSP_InputValue', 'FY11","Local","Run business', 'Mensualización 1', "YearTotal")
    @ALLOCATE (12000, @levelmbrs(Period,0), Monto, spread, SKIPNONE, roundAmt,-3, errorsToHigh);
    ENDFIX;
    .

    But I get a syntax error: error: 1012000 syntax not v lida. None are un comando c calculation [@ALLOCATE].

    I'm at my wits end. Anyone know what I'm doing wrong here and if allocate work even for what I try to achieve?

    If not what other submissions do something like this don't you have?

    I need to come up with more later as well guests to make the amount a variable and the range invited as well, but for now if I pass it I'll be happy.

    Agnete

    Hello

    'Re missing you the 4th parameter. Also try to put a member in the left part of the equation.

    Try 'Member' = @ALLOCATE (12000, @levelmbrs(Period,0), Monto, propagation, SKIPNONE, roundAmt,-3, errorsToHigh);

    Note the comma before "propagation."

    Thank you
    JM

  • Lost my icon to send new messages in mail (appears in the toolbar, but not active). Can not send a new message in the drop-down list box. Any ideas on how to solve this problem? I tried to use the toolbar Customize to drag an icon to the toolbar.

    Lost my icon to send new messages in mail (appears in the toolbar, but not active). Can not send a new message in the mailbox (impossible to select) drop.  I tried to use the toolbar Customize to drag an icon to the toolbar, but it doesn't work anymore. Using Mail 9.2 and OS X 10.11.2.  Any help is appreciated.

    The Send button will not be activated unless the message can be sent. Are you sure that you have entered a recipient and the account is online?

    The connection doctor (window menu) displays errors.

  • Did XP - typing in Word document, does not have to 'save' and he lost. Any ideas on how to find it or if I can get it all back?

    Looking for how to retrieve a document (text) to the word Perfet hat was unsaved - no file. Have more old XP computer w updates

    Hello

    If the document has never been saved, there is nothing to recover. The exception is if the Word crashed, in which case there might be a file of ASR left; We should give this file the next time that you start Word.

    For your reference: How to recover a lost Word document: http://support.microsoft.com/kb/316951

    Hope this information is useful.

Maybe you are looking for