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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi,
I need help with following scenario:
There are two tables AA and BB that have customer IDs in column "contact_id" and "id" respectively.
I need the distinct count of contact_id from Table-AA for who status = delivered and
Consent = TRUE in Table-BB
Table-AA
Table-BB
Solved! Go to Solution.
You could create a measure like
Num delivered & consent =
var delivered = CALCULATETABLE( VALUES(AA[contact_id]), AA[status] = "delivered")
var consent = CALCULATETABLE( VALUES(BB[id]), BB[consent] = TRUE())
return COUNTROWS( DISTINCT( INTERSECT( delivered, consent) ) )
You could create a measure like
Num delivered & consent =
var delivered = CALCULATETABLE( VALUES(AA[contact_id]), AA[status] = "delivered")
var consent = CALCULATETABLE( VALUES(BB[id]), BB[consent] = TRUE())
return COUNTROWS( DISTINCT( INTERSECT( delivered, consent) ) )
@Anonymous , if these tables are joined with each other then
calculate(count(AA[contact_id ]), filter(AA, [status] = "delivered", filter(BB, [Consent] = TRUE () ) )
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 51 | |
| 46 | |
| 23 | |
| 19 |
| User | Count |
|---|---|
| 136 | |
| 110 | |
| 50 | |
| 32 | |
| 29 |