MDX Where with two itens value error

Hello, I'm with a strange problem...
SELECT
{[Cliente].[Segmentos].[Segmento]}ON 1,
{ [Measures].[Valor Liq Item] } ON 0
FROM [Bright Cube]
WHERE ( { [Cliente].[Cliente].&[66471517000177] } )
This result is 9,946,052.03 (Correct)
SELECT
{[Cliente].[Segmentos].[Segmento]}ON 1,
{ [Measures].[Valor Liq Item] } ON 0
FROM [Bright Cube]
WHERE ( { [Cliente].[Cliente].&[13008312000193] } )
This result is 16,239,050.14 (Correct)
SELECT
{[Cliente].[Segmentos].[Segmento]}ON 1,
{ [Measures].[Valor Liq Item] } ON 0
FROM [Bright Cube]
WHERE ( { [Cliente].[Cliente].&[66471517000177], [Cliente].[Cliente].&[13008312000193] } )
This result is 286,976,802.29 (Wrong, this is the [All] value)
Any idea why this is happening?
I tried with others dimensions and hierarchies and the result is the same.
Also tried using UNION and +, but no effect.
Can't find much about it, maybe i'm searching wrong.
Any clue is welcome.
Thanks!

I was able to get the desired result like this:
SELECT
{[Cliente].[Segmentos].[Segmento]}ON 1,
{ [Measures].[Valor Liq Item] } ON 0
FROM ( SELECT { [Cliente].[Cliente].&[66471517000177], [Cliente].[Cliente].&[13008312000193] } ON 0 FROM [Bright Cube] )
Is sub query the best way to do it? 
The Where clause would only slice the entire hierarchy?

Similar Messages

  • Field in the selection screen as a select option with two default values

    Hi All,
    can anybody tell me how to put field in the selection screen with two defaul values.
    for ex:  selection screen the Account Group KNA1-KTOKD as a select option. The defeault value should be Y001 and Y005.
    please reply ASAP. Its urgent.
    Thanks in advance,
    Madhu

    Hi Madhu,
    Since Select options are nothing but ranges, you can use the following code to add two distinct values to the select options by default.
    s_ktokd-sign = 'I'.
    s_ktokd-option = 'EQ'.
    s_ktokd-low = 'Y001'.
    append s_ktokd.
    s_ktokd-low = 'Y005'.
    append s_ktokd.
    clear s_ktokd.
    However, if you want to mention a range like all the values between these given two values to be considered then u may use,
    select-options : s_ktokd for KNA1-KTOKD default 'Y001' to 'Y005'.
    or
    s_ktokd-sign = 'I'.
    s_ktokd-option = 'BT'.
    s_ktokd-low = 'Y001'.
    s_ktokd-high = 'Y005'.
    append s_ktokd.
    Reward if helpful.

  • Multiple Account assignment with cost distribution value error

    Hello Experts,
    We are facing the below issue,
    We are trying to create Limit SC with MAA cost center with cost distribution "By Value". we distribute the total value to 5 cost centers. when we try to order the SC, system is not allowing us to order, we got the error message "Multiple account assignment only with percentage less than 100%".
    Please advise how to resolve this issue.
    Regards,
    Santhosh Kumar.G

    Hi
    Check this OSS notes : 1644804
    Regards
    G.Ganesh Kumar

  • How to do arithmetic with two attribute values in a jsp in JDev 10.1.2?

    Hi!
    I need to compute Density value using two attributes being shown in my jsp (i.e. bindings.Spacing and bindings.Area), Density = bindings.Area/bindings.Spacing.
    How can I do this in JDev 10.1.2 in my jsp?

    Hello pino,
    Can you show me how to create a backing bean in JDev 10.1.2? What I usually work on is the DataForwardAction code in this version of JDev. Is this the "backing bean" you're talking about? If so, can you give me sample code?
    Thanks and hope you can help me!

  • JSpinner with two date values

    Hi,
    how is it possible, to create a JSpinner with hour and minute values?
    like: 10.45 (24H)
    By pressing the next value button, the time should be increased at 15 minutes. The previous button should decrease at 15 minutes.
    thanks

    Check out the link shown below:
    http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/JSpinner.DateEditor.html
    ;o)
    V.V.

  • Howto select all entries with two fields value

    Hi all,
    I have the following SELECT stmt:
          SELECT SUM( betrw )
            INTO l_real_t
            FROM dfkkop
           WHERE opbel = l_opbel
             AND hvorg <> gc_hvorg_dun_fee
             AND tvorg <> gc_tvorg_dun_fee.
    Now I get no lines, where hvorg = gc_hvorg_dun_fee OR tvorg = gc_tvorg_dun_fee.
    But my intention is to get no lines, where BOTH conditions are met.
    What am I doing wrong here?
    Kind Regards, Matthias

    Check this..
    SELECT SUM( betrw )
            INTO l_real_t
            FROM dfkkop
           WHERE opbel = l_opbel
             AND NOT ( hvorg EQ gc_hvorg_dun_fee
             AND tvorg EQ gc_tvorg_dun_fee).

  • Concatenate property with two other dimension values in REC statement

    Greetings,
    I am attempting to concatenate a member property with two member values to create a this dimension member ID in a REC statement, as in the example:
                      *REC(FACTOR=1, COSTCENTER = PROFITCENTER.PCID + %DEPARTMENT% + %COMPANY%)
    So the COSTCENTER member is the concatenation of the PCID property of the current PROFTCENTER member and the ID of the current DEPARTMENT member and the ID of the current COMPANY member.
    I appreciate your help.
    Regards,
    Craig
    P.S. This syntax works fine in the Microsoft version
    Edited by: Craig Tennant on Oct 27, 2010 9:58 AM

    Gersh,
    I have tried:
    *REC(FACTOR=1, COSTCENTER = [PROFITCENTER].PCID %DEPARTMENT%) //PROFITCENTER has brackets around it and there is a space between the two.
    When I validate and save it tells me "Attribute PCID%DEPARTMENT% does not exist in dimension PROFITCENTER"
    *REC(FACTOR=1, COSTCENTER = [PROFITCENTER].PCID_%DEPARTMENT%) //PROFITCENTER has brackets and there is an underscore between the two.
    When I valiudate and save it tells me "Attribute PCID_%DEPARTMENT% does not exist in dimension PROFITCENTER"
    *REC(FACTOR=1, COSTCENTER = [PROFITCENTER].PCID [DEPARTMENT].ID) //PROFITCENTER and DEPARTMENT have brackets around them and there is a space between the two.
    When I validate and save it tells me "Member [PROFTCENTER].PCID[ does not exist"
    *REC(FACTOR=1, COSTCENTER = [PROFITCENTER].PCID_[DEPARTMENT].ID) //PROFITCENTER and DEPARTMENT have brackets around them and there is an underscore between the two.
    When I validate and save it tells me "Member [PROFTCENTER].PCID[_ does not exist"
    Again I appreciate your help and insight
    Cheers,
    Craig

  • RSBKCHECKBUFFER job scheduled twice and both canceling suddenly with two er

    Hello,
    This job RSBKCHECKBUFFER  is scheduled to run two times in production system starting at same time 12:00 pm and it was running fine till 12.04.11 but both the jobs started failing suddenly since 12.05.11 with two different sql errors at times
    DBIF_RSQL_SQL_ERROR
    CX_SY_OPEN_SQL_DB
    1. Database error text........: "SQL1224N The database manager is not able to
      accept new requests, has terminated all requests in progress, or has
      terminated the specified request because of an error or a forced interrupt.
      SQLSTATE=55032 row=1"
    2. Database error text........: "SQL0911N The current transaction has been rolled
     back because of a deadlock or timeout. Reason code "2". SQLSTATE=40001 row=1"
    Also both the job is scheduled to run with two different parameters
    Parameters
    &0000000000001
    &0000000000000
    Can anyone let me know what could be the reason of sudden failure since 12.05.11.
    Also if I schedule the job to run only once in the system will it solve the problem ?

    Hello Shradha,
    1. Database error text........: "SQL1224N The database manager is not able to accept new requests, has terminated all requests in progress, or has   terminated the specified request because of an error or a forced interrupt.
      SQLSTATE=55032 row=1"
    - As far as I know this is serious problem in production environment. Looks like your DB was being restarted at that time. Please have your DBA team to review db2diag.log for error details.
    2. Database error text........: "SQL0911N The current transaction has been rolled  back because of a deadlock or timeout. Reason code "2". SQLSTATE=40001 row=1" .
    - Looks like second job was overlapped with first one. Please try to run the job once in a day or change of schedule of both jobs to ensure no overlap.
    Thanks,
    Siva Kumar

  • How to fetch data where reference with two values

    Hello Gurus,
    How to fetch data from database table with two values for reference. like
             SELECT  < FIELDS>
                              FROM <DB>
                              INTO TABLE TAB2
                              FOR ALL ENTRIES IN
                              TAB1
                              WHERE
                               FIELD1 = TAB1-FIELD1 AND
                               FIELD1 =  TAB1-FIELD2.

    Hi,
    If you want to get data for both fields then Instead of AND use OR
            SELECT  < FIELDS> 
                              FROM <DB>
                              INTO TABLE TAB2
                              FOR ALL ENTRIES IN
                              TAB1
                              WHERE
                               FIELD1 = TAB1-FIELD1 OR
                               FIELD1 =  TAB1-FIELD2.
    Or if you want that only common data for both fields should be fetched then create new internal table. Append data of both fields into that table. Sort new table and do delete adjust duplicate. Now use new internal table in your select query.
    Let me know if this helps.
    Regards,
    Jigar Thakkar.

  • How to handle dbms_xmldom with no data values.(no_data_found error in dom)

    hi,
    i have below block,
    DECLARE
    doc dbms_xmldom.DOMDocument;
    node dbms_xmldom.DOMNode;
    elem dbms_xmldom.DOMElement;
    cur_node dbms_xmldom.DOMNode;
    root_elem_data dbms_xmldom.DOMElement;
    root_elem_tab dbms_xmldom.DOMElement;
    root_node_data dbms_xmldom.DOMNode;
    mode_elmn dbms_xmldom.DOMElement;
    mode_node dbms_xmldom.DOMNode;
    mode_text dbms_xmldom.DOMText;
    doc1 DBMS_XMLDOM.DOMDOCUMENT;
    root_node_data1 DBMS_XMLDOM.DOMNODE;
    child_document DBMS_XMLDOM.DOMDOCUMENT;
    child_rootnode DBMS_XMLDOM.DOMNODE;
    V_CLOB CLOB;
    v_doc CLOB;
    v_EMP CLOB;
    v_output_filename VARCHAR2(300) := 'SPOOL_DIR/'||'EMP_XML_FILE.xml';
    l_xmltype XMLTYPE;
    BEGIN
    doc := dbms_xmldom.newDOMDocument;
    node := dbms_xmldom.makeNode(doc);
    dbms_xmldom.setversion(doc, '1.0');
    dbms_xmldom.setCharset(doc, 'UTF8');
    elem := dbms_xmldom.createElement(doc, 'PartnerInfo');
    dbms_xmldom.setAttribute(elem,'xmlns','EMP');
    cur_node := dbms_xmldom.appendChild(node, dbms_xmldom.makeNode(elem));
    mode_elmn := dbms_xmldom.createElement(doc, 'EMPLOYEE');
    mode_node := dbms_xmldom.appendChild(cur_node,dbms_xmldom.makeNode(mode_elmn));
    BEGIN
    SELECT value(e) INTO l_xmltype
    FROM TABLE(XMLSequence(Cursor(SELECT * FROM EMP1 where EMPNO=7501))) e;
    child_document := DBMS_XMLDOM.newDOMDocument(l_xmltype);
    root_node_data1 := dbms_xmldom.importNode(doc,dbms_xmldom.makeNode(dbms_xmldom.getDocumentElement(child_document)),TRUE);
    root_node_data1 := DBMS_XMLDOM.appendChild(root_node_data, root_node_data1);
    EXCEPTION
    WHEN OTHERS THEN
    Dbms_Output.Put_Line('Error in SELECT stmt(UC_PARTNER_MS):::'||'error::'||SQLERRM);
    END;
    dbms_lob.createtemporary(v_doc, true);
    dbms_xmldom.writeToClob(doc,v_doc,'UTF8');
    v_EMP:= v_doc;
    dbms_xmldom.writeToFile(DOC,v_output_filename,'UTF8');
    dbms_xmldom.freeDocument(doc);
    --Dbms_Output.Put_Line('THE OUTPUT IS::'||V_EMP);
    EXCEPTION
    WHEN OTHERS THEN
    Dbms_Output.Put_Line('Error in SELECT stmt(UC_PARTNER_MS):::'||'error::'||SQLERRM);
    END;
    The xml file is 'EMP_XML_FILE.xml'
    <empno>U++kYmcVuGchxbh+++++++++++++++1+</empno>
    <empname>J</empname>
    suppose the empno 7501 is not available in our emp table,
    i got error
    ORA-03113: end-of-file on communication channel
    how to handle xmldom with no data values.
    by
    siva

    hi,
    please give the solution
    by
    siva

  • I have a problem with two PDF's when trying to open them through a link on a web page. The two PDF's open fine with Adobe on my own PC and on the server I have copied it to but when they are opened through a link on a web page (pointing to the server wher

    I have a problem with two PDF's when trying to open them through a link on a web page. The two PDF's open fine with Adobe on my own PC and on the server I have copied it to but when they are opened through a link on a web page (pointing to the server where the PDFs open fine) I get an error 'There was an error processing a page. Invalid function resource' The other one just doesn't open at all. Can anyone help with this please?

    Hello,
    Are the pdf linked correctly in the website? Is this a public website? If yes, please post the link here.
    ~Deepak

  • Popup screen with two check box and a text area for the user to enter value

    hi,
    i have a requirement when a button is clicked a popup screen should appear with two check box and a text box where the user can enter a value.
    is there any function module which has that functionality

    Hello,
    You can create a new screen and select the screen type as <b>model dialog box</b>.This will give you a<b> pop-up screen</b> and you can call this model dialog box screen in the PAI of the screen where the button is present.(At user-command).
    <b>case ok_code.
    when 'BUTTON'.
    call screen 200 starting at 10 10.</b>
    You can design the PBO of this pop-up screen as per your needs.
    Regards,
    Beejal
    **Reward if this helps.

  • Why does final cut x not recognize the sharp PN- K321 monitor ( European version ) as output video monitor and premiere it? Working with two cinema display and PN- K321 and I can not preview the output video at 4K for DisplayPort, whereas with premie

    Why does final cut x not recognize the sharp PN- K321 monitor ( European version ) as output video monitor, and premiere yes?
    Working with two cinema display and PN- K321 and I can not preview the output video at 4K by DisplayPort, whereas with premiere and after effects I have no problems

    Look, you can build an HD DVD with an SD movie, just as you can build an SD DVD with an HD movie. This is not a bug, it is most likely user error. Apple will not be addressing it.
    Just start over, and ensure you are building an SD DVD by bringing up the inspector for the disc (click on the background in the Graphical tab).
    Make sure SD DVD is selected:
    (If you do the same thing on your ill fated project, you'll see that HD DVD is selected)
    Build your DVD and you'll be fine.
    Patrick
    P.S. You will need to google HD DVD and Blu-Ray if you want to understand the difference between the formats. The reason that DVDSP included HD DVD was that its format was similar to SD DVD's. Blu-Ray is something else entirely.

  • SAS MPIO Driver Server 2012 HCT Fails with "make sure two ports are connected" error even with two ports connect

    We are running the Server 2012 HCT against a SAS MPIO driver for a server platform with dual redundant storage controllers.  The test fails with this error:
    (x) For non-iSCSI test environment, please make sure at least two HBA ports are connected to the storage target.
    File=testsrc\driverstest\storage\wdk\mpiotest\logotest\devicelib\mpiodevice.cpp Line=2772
    Error: 0x0, Error 0x00000000
    The system does have two ports connected so the cause of the error is unclear to us.  We do not have any problems when running the 2008R2 HCT.  Are there any known issues or fixed or workarounds for this problem?

    Sorry, maybe I should say WLK rather than HCT.  We are trying to submit the SAS MPIO driver for WHQL signing.
    Here is a sample MPIO snapshot where you can see our driver is controlling five drives each with two paths.
    MPIO Storage Snapshot on Wednesday, 17 April 2013, at 18:31:40.275
    Registered DSMs: 2
    ================
    +--------------------------------|-------------------|----|----|----|---|-----+
    |DSM Name                        |      Version      |PRP | RC | RI |PVP| PVE |
    |--------------------------------|-------------------|----|----|----|---|-----|
    |Microsoft DSM                   |006.0002.09200.16384|0120|0003|0001|030| True|
    |Intel(R) Storage Controller MPIO|004.0001.00140.0002|0120|0003|0001|030| True|
    +--------------------------------|-------------------|----|----|----|---|-----+
    Microsoft DSM
    =============
    No devices controlled by this DSM at this time!
    Intel(R) Storage Controller MPIO Driver
    =======================================
    MPIO Disk4: 02 Paths, Fail Over Only, Explicit Only
            SN: 2263015539BAB                                                   
            Supported Load Balance Policies: FOO RR RRWS LQD
        Path ID          State              SCSI Address      Weight
        0000000077000001 Standby            000|000|001|004   0
            TPG_State: Standby           , TPG_Id: 1, TP_Id: 6
            Adapter: LSI Adapter, SAS 3000 series, 4-port ...  (B|D|F: 004|000|000)
            Controller: EBF4115500000000         (State: No Controller)
        0000000077000000 Active/Optimized   000|000|000|004   0
          * TPG_State: Active/Optimized  , TPG_Id: 0, TP_Id: 3
            Adapter: LSI Adapter, SAS 3000 series, 4-port ...  (B|D|F: 004|000|000)
            Controller: D1FBD25300000000         (State: No Controller)
    MPIO Disk3: 02 Paths, Fail Over Only, Explicit Only
            SN: 22201556966AB                                                   
            Supported Load Balance Policies: FOO RR RRWS LQD
        Path ID          State              SCSI Address      Weight
        0000000077000001 Active/Optimized   000|000|001|003   0
          * TPG_State: Active/Optimized  , TPG_Id: 1, TP_Id: 6
            Adapter: LSI Adapter, SAS 3000 series, 4-port ...  (B|D|F: 004|000|000)
            Controller: EBF4115500000000         (State: No Controller)
        0000000077000000 Standby            000|000|000|003   0
            TPG_State: Standby           , TPG_Id: 0, TP_Id: 3
            Adapter: LSI Adapter, SAS 3000 series, 4-port ...  (B|D|F: 004|000|000)
            Controller: D1FBD25300000000         (State: No Controller)
    MPIO Disk2: 02 Paths, Fail Over Only, Explicit Only
            SN: 226E01556E6C5F                                                  
            Supported Load Balance Policies: FOO RR RRWS LQD
        Path ID          State              SCSI Address      Weight
        0000000077000001 Active/Optimized   000|000|001|002   0
          * TPG_State: Active/Optimized  , TPG_Id: 1, TP_Id: 6
            Adapter: LSI Adapter, SAS 3000 series, 4-port ...  (B|D|F: 004|000|000)
            Controller: EBF4115500000000         (State: No Controller)
        0000000077000000 Standby            000|000|000|002   0
            TPG_State: Standby           , TPG_Id: 0, TP_Id: 3
            Adapter: LSI Adapter, SAS 3000 series, 4-port ...  (B|D|F: 004|000|000)
            Controller: D1FBD25300000000         (State: No Controller)
    MPIO Disk1: 02 Paths, Fail Over Only, Explicit Only
            SN: 227C01558F689E                                                  
            Supported Load Balance Policies: FOO RR RRWS LQD
        Path ID          State              SCSI Address      Weight
        0000000077000001 Standby            000|000|001|001   0
            TPG_State: Standby           , TPG_Id: 1, TP_Id: 6
            Adapter: LSI Adapter, SAS 3000 series, 4-port ...  (B|D|F: 004|000|000)
            Controller: D1FBD25300000000         (State: No Controller)
        0000000077000000 Active/Optimized   000|000|000|001   0
          * TPG_State: Active/Optimized  , TPG_Id: 0, TP_Id: 3
            Adapter: LSI Adapter, SAS 3000 series, 4-port ...  (B|D|F: 004|000|000)
            Controller: 6E9AD05300000000         (State: No Controller)
    MPIO Disk0: 02 Paths, Fail Over Only, Explicit Only
            SN: 22F10155FB941D                                                  
            Supported Load Balance Policies: FOO RR RRWS LQD
        Path ID          State              SCSI Address      Weight
        0000000077000001 Standby            000|000|001|000   0
            TPG_State: Standby           , TPG_Id: 1, TP_Id: 6
            Adapter: LSI Adapter, SAS 3000 series, 4-port ...  (B|D|F: 004|000|000)
            Controller: D1FBD25300000000         (State: No Controller)
        0000000077000000 Active/Optimized   000|000|000|000   0
          * TPG_State: Active/Optimized  , TPG_Id: 0, TP_Id: 3
            Adapter: LSI Adapter, SAS 3000 series, 4-port ...  (B|D|F: 004|000|000)
            Controller: 6E9AD05300000000         (State: No Controller)
    MSDSM-wide default load balance policy: N\A
    No target-level default load balance policies have been set.
    ================================================================================

  • Using An Update with a Literal Value Based on Equality Between Two Tables

    I need to update table1 code_val with a literal value: 'Y' where table1 column grpid matches table2 column grpid.
    I have found all sort of info on the web about updating a value from, for example, a table2 field into table1, but I can't find anything where i assign the value where two table columns match.
    It would be something like this:
    update table1
    set code_val = 'Y'
    Where table1.grpid = table2.grpid
    Thanks for any assistance!

    user12296489 wrote:
    I need to update table1 code_val with a literal value: 'Y' where table1 column grpid matches table2 column grpid.
    I have found all sort of info on the web about updating a value from, for example, a table2 field into table1, but I can't find anything where i assign the value where two table columns match.
    It would be something like this:
    update table1
    set code_val = 'Y'
    Where table1.grpid = table2.grpid
    update table1
    set code_val = 'Y'
    Where table1.grpid in (SELECT grpid from table2);

Maybe you are looking for