Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi all,
Here my data model :
I'd like to get the number of distinct apps (with Cost> 0), whatever the source
EXPECTED RESULT in a DAX mesure : 2 (to show this figure into a card chart.)
From now, I get 3 because APP01 is counted twice because it's matching into both sources
I thank you in advance for tips and advice.
if the mapping table is filtering source1 and source2, try something like this
App count = COUNTROWS(FILTER(VALUES('MAPPING TABLE'[APPS NAME])
,CALCULATE(COUNTROWS(SOURCE1), SOURCE1[Cost]>0) + CALCULATE(COUNTROWS(SOURCE2),SOURCE2[Cost]>0) >0))