Forum Discussion
spyder_pk
2 years agoFrequent Visitor
Count values in one table based on values from another table
Hi! Need help with DAX. I have 2 tables. I need to show the percentage of distinct count of ItemID from Table A with multiple countries of sale from Table B. Table A ItemID 3 4 2 1 ...
- 2 years ago
=DIVIDE(COUNTROWS(FILTER(ALLSELECTED(TableA[ItemID]),CALCULATE(DISTINCTCOUNT(TableB[Country]))>1)),COUNTROWS(ALLSELECTED(TableA[ItemID]))
wdx223_Daniel
2 years agoCommunity Champion
=DIVIDE(COUNTROWS(FILTER(ALLSELECTED(TableA[ItemID]),CALCULATE(DISTINCTCOUNT(TableB[Country]))>1)),COUNTROWS(ALLSELECTED(TableA[ItemID]))