Răspuns How to immitate NOT IN using DAX?

  • 26 iunie 2012 12:02
     
     

    I am new to DAX and I need to be able to achieve something like:

    SELECT COUNT(distinct buyer_id)

    FROM tblBuyers

    WHERE status LIKE 'Active' AND category = 2 AND buyer_id  NOT IN (SELECT buyer_id FROM tblBuyers WHERE category = 1)

    This would usually be easy to achieve, but bear in mind that tblBuyers has got multiple rows per buyer, and each buyer may have more than one category. Basically I am trying to get a coutn of buyers who are Actve and have category 2, but do not have category 1(buyers in this table have multiple categories). How can I achieve this in DAX?

Toate mesajele