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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have 3 tables below
Table 1
| ID | |
| 1 | abc@contoso.com |
| 2 | xyz@contoso.com |
| 3 | test@contoso.com |
| 4 | 123@contoso.com |
| 5 | 321@contoso.com |
Table 2
| ID | |
| 1 | abc@contoso.com |
| 2 | 321@contoso.com |
Table 3
| ID | |
| 1 | 123@contoso.com |
| 2 | aaa@contoso.com |
Tables 2 and 3 have a relationship with Table 1 on email. I want to create a measure to get the count of emails from Table 1 which have matching emails in Table 2 and Table 3. In the above scenario, the measure should return 3.
Solved! Go to Solution.
Hi,
MailCount =
CALCULATE(
COUNT('Table 1'[Email]),
'Table 1'[Email] IN VALUES('Table 2'[Email]) ||
'Table 1'[Email] IN VALUES('Table 3'[Email])
)
Hi,
MailCount =
CALCULATE(
COUNT('Table 1'[Email]),
'Table 1'[Email] IN VALUES('Table 2'[Email]) ||
'Table 1'[Email] IN VALUES('Table 3'[Email])
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 61 | |
| 46 | |
| 40 | |
| 38 | |
| 22 |
| User | Count |
|---|---|
| 178 | |
| 127 | |
| 117 | |
| 77 | |
| 56 |