Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance 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 |
---|---|
73 | |
69 | |
36 | |
25 | |
22 |
User | Count |
---|---|
97 | |
92 | |
53 | |
45 | |
40 |