Filter By AND e not for OR/AND

  •  

    Good evening
    I need your valuable help. For the following example:

    =en-us>

    In this DataSet:

    ="result_box">

    The tables data:


    I create the next report:


    What I want to see are the salesof customers who buy Bikes and Phones. And not those who buy Bikes and/or Phone.
    In other words, I wanted se the Clients sto buy the two products. The following output.


     

    Can you help me? I'm working on SSAS Azure.
    Thank you.

     

  • You maybe able to use a count function and count the Number of ProductID's and filter out > 1.

    Regards,
    Matt

  • I don't know squat about SSAS.  Can it actually use a T-SQL query where you need it?  If it can, I have a high performance method for doing this.  It may require dynamic SQL based on your request but that should be no biggee to do in an SQL Injection Proof manner.  It will require some new indexes if they're not in place already.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • Jeff Moden - Thursday, January 4, 2018 7:53 AM

    I don't know squat about SSAS.  Can it actually use a T-SQL query where you need it?  If it can, I have a high performance method for doing this.  It may require dynamic SQL based on your request but that should be no biggee to do in an SQL Injection Proof manner.  It will require some new indexes if they're not in place already.

    SSAS uses MDX, which is completely different from T-SQL.  It's been a long time since I used MDX, so I can't really give any pointers here.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Hello everyone.

    Thank you in advance for your prompt assistance.
    The development of the cube is to be done in SSAS Tabular Technology, that actually use DAX.
    The MDX is used for SSAS Multidimensional Cube.

    Thanks again to all. 🙂
    Greetings,

  • This was removed by the editor as SPAM

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply