The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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])
)