MDX - Filter members using AND operator in Query designer or otherwise

Hi,
I have the following table:
ID
Column A 
1
ValA
1
ValA
1
Special
2
ValA
3
ValA
I need to return only IDs which has a Special value in Column A. So the output would be:
ID
Column A 
1
ValA
1
ValA
1
Special
I thought that one way would be to use the MDX operator but there is very little documentation on it. I am a real beginner of MDX.
Thanks in Advance.

Hi RiddlerInPlay,
After testing the issue in my environment, we can add a group grouped on ID, then use an expression to control the row visibility to achieve your requirement. For more details, please see:
In the Row Groups pane, right-click the Details1 group to add a group grouped by ID field.
Delete the first column with “Delete columns only” option.
Right-click the details row to open the Row Visibility dialog box.
Use the expression below in the “Show or hide based on an expression” text box:
=iif(Fields!Column_A.Value="Special",false,true)
The following screenshot is for your reference:
If there are any other questions, please feel free to ask.
Regards,
Katherine Xiong
Katherine Xiong
TechNet Community Support

Similar Messages

  • Using Boolen Operations in Query Designer

    Hi All,
    Below are the new formula which i have created in query designer
    1.Number of years of service
    2.Gratuity if years of service is greater than 20.
    3.Gratuity if years of service is lessthan 20.
    Now in report output i need to display Gratuity if years of service is greater than 20, or Gratuity if years of service is lessthan 20 based on Number of years of service.
    In boolen function i have done as below
    Number of years of service>=20==Gratuity if years of service is greater than 20
    But in report output iam getting zero(0).
    Is there any other way pls let me know
    Regards
    Albaik

    HI Pravinder,
    Number of years of service>=20=Gratuity
    so how do we display this.
    what does * indicate and where do we find this
    (Number of years of service>=20) * Gratuity
    Please let me know in detail
    where do we find IF<Logic Expression IS IT IN BOOLEN OPERATION or MATHEMATICAL FUNCTION
    In BEx you can follow this while writing a formula:
    Follow this
    IF<Logic Expression> THEN <Expression1> ELSE <Expression2>
    this expression can be made using a formula in the form
    <Logic Expression> * <Expression1> + NOT <Logic Expression> * <Expression2>
    Please helpme
    Regards
    Albaik

  • Filter Information for two parameters in Query Designer

    Hi Gurus !!
    I have a problem for filter information for two parameters in Query Designer,
    the first parameter correspond a Ejercise-Period, the second parameter correspond
    a Compensation Date of document, both parmeters must have date less than or equal to
    to the parameter date input for screen (mm.aaaa).
    Internally the Report must filter countable information for Countable Date <= Parameter Input and
    Compensation Date of document <= Parameter Input.
    If i assign two filter parameter in Query Designer, not could realise this.
    Exist any simple form to realise this ??
    Wait for yours responses.
    Thank You.

    Hi shanthi bhaskar,
    Thanks a lot for your answer.
    I have one doubt about it:  with this solution that you propoused the user will be able to select the values for plant?.
    I mean, the user make the selection of the value for Zone, then he wants to see the in plan´s variable the values that corresponds with this Zone for make a new selection of plan.
    What happens if I need this dependency also in another variable like time variable?
    Thanks  a lot

  • What is the use of Condition is Query Designer  ??

    What is the use of Condition in Query Designer  ??
    How to use condition in   Query Designer  ??

    Hi,
    Conditions in a query can be defined for both characteristic combinations and key figures.
    Characteristic combinations can be used using the ranking list functionality (e.g Top N or Last N customers with highest sales).
    Key figures can be assigned the value limit conditions ( for e.g. display only rows in the query for which the key figure > 10 ).
    For your specific requirements in which you need to display only a limited set based on the key figures, then you can go for conditions.
    The conditions can be allowed to work on all the drill down characteristics independently, single characteristics or combination as well based on your requirement.
    While execution the report, you can activate or deactivate the condition anytime by right clicking on the data cells.
    Regards,
    VA

  • Select Query using AND operation

    Hello,
    I am developing RFC which will retrieve some records from SAP HR module table.
    Input will be one structure (INPUT_TABLE) containing 4 fields. User may enter values for any fields, and my requirement is to perform a AND operation on those entered fields only. Currently i am writing query as follows :
    SELECT DISTINCT apernr aVORNA aNACHN acname a~gbdat FROM
                  PA0002 as a INTO CORRESPONDING FIELDS OF TABLE Z_PD_TABLE
                                                WHERE apernr = INPUT_TABLE-pernr AND aVNAMC = INPUT_TABLE-VORNA AND aNCHMC = INPUT_TABLE-NACHN AND agbdat = INPUT_TABLE-GBDAT .
    If only 2 values are entered by user out of 4 , it will perform AND operation by taking other values as blank or 000000. I want to skip these AND operation on fields which are not entered by user.
    Please help for writing query.
    Thanks in advance,
    Prashant

    Hi,
    Create dynamic where condition based upon user input.
    Try like this....
    IF NOT INPUT_TABLE-pernr IS INITIAL.
          CLEAR : lv_pernr_condition.
          CONCATENATE 'PERNR' ' = ' '''' INPUT_TABLE-pernr ''''  INTO
          lv_pernr_condition.
    ENDIF.
    IF NOT INPUT_TABLE-vnamc IS INITIAL.
          CLEAR : lv_vnamc_condition.
          CONCATENATE 'VNAMC' ' = ' '''' INPUT_TABLE-vnamc ''''  INTO
          lv_vnamc_condition.
    ENDIF.
    IF NOT INPUT_TABLE-vorna IS INITIAL.
          CLEAR : lv_vorna_condition.
          CONCATENATE 'VORNA' ' = ' '''' INPUT_TABLE-vorna ''''  INTO
          lv_vorna_condition.
    ENDIF.
    IF NOT INPUT_TABLE-nchmc IS INITIAL.
          CLEAR : lv_nchmc_condition.
          CONCATENATE 'NCHMC' ' = ' '''' INPUT_TABLE-nchmc ''''  INTO
          lv_nchmc_condition.
    ENDIF.
    IF NOT INPUT_TABLE-gbdat IS INITIAL.
          CLEAR : lv_gbdat_condition.
          CONCATENATE 'GBDAT' ' = ' '''' INPUT_TABLE-gbdat ''''  INTO
          lv_gbdat_condition.
    ENDIF.
    IF NOT lv_pernr_condition IS INITIAL.
          CONCATENATE lv_pernr_condition lv_condition
          INTO lv_condition SEPARATED BY space.
    ENDIF.
    IF NOT lv_vnamc_condition IS INITIAL.
          IF lv_condition IS INITIAL.
            CONCATENATE lv_vnamc_condition lv_condition
                INTO lv_condition SEPARATED BY space.
          ELSE.
            CONCATENATE lv_condition 'AND' lv_vnamc_condition
                INTO lv_condition SEPARATED BY space.
          ENDIF.
    ENDIF.
    IF NOT lv_vorna_condition IS INITIAL.
          IF lv_condition IS INITIAL.
            CONCATENATE lv_vorna_condition lv_condition
                INTO lv_condition SEPARATED BY space.
          ELSE.
            CONCATENATE lv_condition 'AND' lv_vorna_condition
                INTO lv_condition SEPARATED BY space.
          ENDIF.
    ENDIF.
    IF NOT lv_nchmc_condition IS INITIAL.
          IF lv_condition IS INITIAL.
            CONCATENATE lv_nchmc_condition lv_condition
                INTO lv_condition SEPARATED BY space.
          ELSE.
            CONCATENATE lv_condition 'AND' lv_nchmc_condition
                INTO lv_condition SEPARATED BY space.
          ENDIF.
    ENDIF.
    IF NOT lv_gbdat_condition IS INITIAL.
          IF lv_condition IS INITIAL.
            CONCATENATE lv_gbdat_condition lv_condition
                INTO lv_condition SEPARATED BY space.
          ELSE.
            CONCATENATE lv_condition 'AND' lv_gbdat_condition
                INTO lv_condition SEPARATED BY space.
          ENDIF.
    ENDIF.
    SELECT DISTINCT pernr VORNA NACHN cname gbdat FROM
    PA0002 INTO CORRESPONDING FIELDS OF TABLE Z_PD_TABLE
    WHERE lv_condition .   " Dynamic where condition
    Hope it will helps

  • Using "AND" operator in expression.

    Hi All,
    I am new to crystal reports. In formula editor my report i am using one expression to evaluate some calcualtions. please find the sample expression like which i am using.
    numberVar iSubCause := 65 AND 15;
    hexadecimal of 65 AND with hexadecimal of 15 results 1.
    iSubCause in the above case should be 1.
    Let me know How to have such kind of expressions in CR's.
    Regards,
    Pradeep.

    Hi Sastry,
    thats fine. if we do AND operation between them(65 and 15) we will get 1. That i want to have it in that variable. Is there any other way to do same operation which results as 1 in crystal reports.
    How to check least significant bits of any number??
    - Pradeep.

  • Pb with language logon and data display Query designer

    Hello,
    I do the translations (FR => EN) via RSA1 and SE63 of my variables of my Query for the query designer.
    It works I have no technical name that appears in the query designer.
    But when I run my query using the query designer, the query is displayed in French while I am logged in English.
    I want the query is displayed in english when I'm logged into English.
    How can I do?
    Thank you pour votre aide.
    Edited by: KhalidTaibi on Jul 6, 2010 6:31 PM

    Hello,
    Per I can understand, you are executing the query from Query Designer.
    So, if you are using Query designer 7.0, you are calling the Enterprise Portal.
    Even with English on Query Designer, you have to logon as english on the
    Portal, as well.
    Try to check your Browser configuration.
    On Internet Explorer:
    Tools
    Internet Option
    Language
    Check if English is configured as the first language.
    Also, ensure the query1s objects exists on english version.
    Best regards,
    Edward John

  • Still using BW 3.5 query designer for BI 7.0 backend

    Has anyone worked on an upgrade where only the backend has been upgraded to 7.0 but still using query designer 3.5?
    Have there been any query performance issues?
    Would you recommend upgrading the query designer to 7.0 soon?

    We upgraded to 7.0 a long time ago and there are still some reports running as 3.x queries. It's no problem but there are so many benefits to working with the 7.0 query designer that I don't see the point in not upgrading.
    Kind regards,
    Alex

  • Using float amount in query designer

    Hello,
    I have an amount key figure of type fltp (float) with unit currency.
    When I look at the data in cube or multiprovider the key figure has float precision.
    When using the key figure in the query designer the value is rounded for two decimals.
    This is independent of the display settings in bex or bex default settings in the infoobject (for example: when setting the value to 5 decimals, the kf will look like y.xx000 - rounded and filled with 0 - in the query).
    Same problem when using the key figure in a formula.
    Any ideas?
    Regards,
    Christoph

    Hi Abhijeet,
    the value is being calculated by a formula in transfer rules (like 5.50 u20AC / 30) and therefore has more than 2 decimals.
    As I said using listcube will show the result I need.
    When used in querydesigner the value is rounded to 2 decimals.
    Christoph

  • Broadcasting to Enterprise Portal using Bex Broadcaster from Query Designer

    I have already been able to broadcast from Query Designer using BEx Broadcaster to the portal based on a role or a user.
    I select "Export into Enterprise Portal" as the Distribution Type. 
    I then select "Export Document to Personal Portfolio" and then enter a role.
    Then I check "User-specific" because I want it to be user specific.
    This all works fine. 
    Now I get to my question.
    Can I go one step further and broadcast to a folder call... lets say "Sales" inside of their Personal Portfolio?

    Hi Eric,
    I have the same problem. Were you able to resolve it?

  • Using IN Operator in Query Parameter querying an Oracle dataset

    I have created a main data set querying from Oracle in which I have two query parameters that are multi-valued lists.  I created a data set for each of those multi-valued lists.  These two parameters are configured to be multi-valued and selected
    from the query.  On the main data set, the parameters are set to an expression: = Join(Parameter.Field.Value, ",").  If I sent just one value as a default in each of those parameters, works great.  If I select "Select All"
    in my drop down and rerun the report then I get "Query execution failed for dataset" and "rsErrorExecutingCommand".  I am using Report Builder 3.0.  I have seen some older posts saying you have to use a stored procedure to generate
    a string from the selects to be passed to the parameter?  I don't get this.  Obviously I want to stick with using a query parameter for the performance gain.  Is there an easy way to make this work?
    Grateful for any help!  Laurie

    Laurie, you are right that the execution time is too long.  Your instinct is correct to put the burden on the database to return the correct resultset, rather than filtering it in the report.  
    I think I wasn't clear about my explanation and you may have made this more complicated than it needs to be.  The functionality that you want is already in ReportBuilder.  Please check out this example from MS:
    http://technet.microsoft.com/en-us/library/aa337396(v=sql.105).aspx
    This is the correct syntax:
    AND soh.SalesPersonID IN (@BusinessPersonID)
     Is this how you have your query configured? If not, could you supply an example.
    Hope that helps,
    Mark

  • Using variables in the Query Designer

    Hi,
    I have 2 variables 'Z_COMP_CODE' and 'Z_BUS_AREA'. The type of 'Z_COMP_CODE' is single value ,customer exit and ready for input . The type of  'Z_BUS_AREA' is selection option,customer exit and not ready for input. I want the 2 variables to work like this: when 'Z_COMP_CODE' has the value '3000', 'Z_BUS_AREA' should have all the values excluding '2106'. Now in CMOD I have written the following codes for 'Z_BUS_AREA', But it does not work. 'Z_BUS_AREA' get no value while the query is running.Can somebody tell me how to correct it?thx.
    WHEN 'Z_BUS_AREA'.
    IF i_step = 2.
             READ TABLE i_t_var_range INTO l_s_range_v
                WITH KEY vnam = 'Z_COMP_CODE'.
             IF sy-subrc EQ 0.
               IF l_s_range_v-low = '3000'.
                 l_s_range-low = '2106'.
                 l_s_range-sign = 'E'.
                 l_s_range-opt = 'EQ'.
                 INSERT l_s_range INTO TABLE e_t_range.
               ENDIF.
             ENDIF.
           ENDIF.

    It should be Customer Exit only.
    Your code looks like ok to me. Have you tried to debug it? is l_s_range taking values?
    Also i don't know much abt insert statement...may be same as append...but just try with append statement also.
    Message was edited by:
            KJ (Kamaljeet)

  • Name of column using text variable in Query Designer

    Hello!
    I have 3 columns with amounts, 1 characteristic value variable and 1 text variable.
    For example, names of this columns - 2005 year, 2006 year, 2005/2006.
    I fill names using only one text variable and I can call first 2 column. I use set offset of variables for second column.
    How can I call third column ''2005/2006"?

    Hi,
    u need a second Text varaible and u need to correct your existing text variable.
    Prerequisite: u need for your key figures the same KF-variable
    1. Edit your existing text variable  lets say its called &Text1&
    2. Select your Text variable and go to tab "replacement path"
    3. Choose a) InfoObject b) Choose key
    4. In section "use value range" choose from  value
    5. Create a new text variable lets call it &Text2&
    6. make exact the same settings as for your first text variable butchoose for "value range" to value
    Now u use this text variables for your KF:
    KF 1 -> &Text1&
    KF 2 -> &Text1&
    KF 3 -> &Text1& / &Text2&
    This should make it!!
    Regards
    Tobias

  • How to pass variable into lov sql query using like operator

    hi.
    i want to use a lov where i want to pass a variable using like operator.
    my query is
    select empno,name from table where empno like ':ed%';
    my empno is A001 TO A199 AND B001 TO B199 so i want show either A% or B% empno
    how can i do this ?
    reagrds

    kindly press Shift+F1 at a time you face this error to see the exact Oracle error message.
    and provide us with that detail
    and its better if you start new topic for that error... because that will be new error,,,
    -- Aamir Arif
    Edited by: Aamiz on Apr 7, 2010 12:27 PM

  • Using 'And' in BI Publisher

    Hi Experts,
    Is it possible to use "AND" operator in BI Publisher.
    For example if a>10 And a<20.
    Please let me know the syntax if it is possible.
    Thanks and Regards,
    Andy

    <?if:a>20 and b<20?>In small letters.
    you can use 'or' , 'and'

Maybe you are looking for

  • A suitable Queue

    Hi all, First, sorry for the long messages, but I want to describe my problems in details :) I am building an application that read messages from a UDP socket. The server that provide those messages is very fast. if my application is slower than the

  • When downloading getting message, "Installation aborted via the rollback feature." Help please.

    I want to download a game from a website I have used before with no problems and now it wont let me, due to "the rollback feature"? I haven't changed any of my settings except the firefox update to the new version. Any help would be great.

  • Run internet service - miniapp

    Hi, I’m a developer and I’d like to run the standard Internet Service DNO_NOTIF – support desk, on SAP WAS 6.10, but I really don’t know how to fill the parameters of the Internet Transaction Server (SE80-> Utilities->Settings) Can you help me? Best

  • Miix 3 10 inch tablet , No windows 10 update option ! help please

    Hi , I bought the tablet around 2 weeks ago , I had a Yoga 8 2 before and that was showing the update....My Miix 3 tablet is fully upto date  it came with the keyboard dock and is the 1080p display, anyone offer any help , as I would really like to g

  • Computation Question

    Is it possible to call a computation from a report query on the same page if the computation returns more than one row? The computation is on an item within the same page. I have been unsuccessful at returning any rows from the query. I've tried both