Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17878

DAX Measure

$
0
0

How do I do the equivalent of the following SQL code in a DAX measure:

 

selectdistinct(Table1.Client)

from Table1

where Table1.Product='AUTO'AND Table1.InsuranceCompany='AMCO'

 

INTERSECT

 

selectdistinct(Table1.Client)

from Table1

where Table1.Product ='FIRE' AND Table1.InsuranceCompany  ='Allied P & C Ins. Company'

 

Another piece is that I don't want to hard code values. I want Product and InsuranceCompany fields to be slicers.

 

Thanks in advance.

 


Viewing all articles
Browse latest Browse all 17878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>