The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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])
)
User | Count |
---|---|
79 | |
78 | |
37 | |
33 | |
31 |
User | Count |
---|---|
93 | |
81 | |
59 | |
49 | |
49 |