Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hi everyone,
I'm brand new here in the forum, but couldn't find a post/qestion that helped solve the issue I'm currently facing.
I have a column ('Practitioners'[PractitionerEmail]) that shows all the emails of our users/customers.
Now, I want to create a measure that counts the unique emails, but leaves out emails with our own domain (i.e. @gmail.com).
So far, I've done:
Solved! Go to Solution.
@Anonymous,
You're close. Add a double ampersand (AND) and it should work:
Unique Email Addresses =
CALCULATE (
DISTINCTCOUNTNOBLANK ( Practitioners[PractitionerEmail] ),
FILTER (
ALL ( Practitioners[PractitionerEmail] ),
NOT CONTAINSSTRING ( Practitioners[PractitionerEmail], "@gmail.com" )
&& NOT CONTAINSSTRING ( Practitioners[PractitionerEmail], "@hotmail.com" )
)
)
Proud to be a Super User!
@Anonymous,
Try this measure:
Unique Email Addresses =
CALCULATE (
DISTINCTCOUNTNOBLANK ( Practitioners[PractitionerEmail] ),
FILTER (
ALL ( Practitioners[PractitionerEmail] ),
NOT CONTAINSSTRING ( Practitioners[PractitionerEmail], "@gmail.com" )
)
)
Proud to be a Super User!
Thank you so much DataInsights!
That helped, yes!
However, is it possible to add more filters than just "@gmail.com"? For instance if I want it to filter out both "@gmail.com" and "@hotmail.com" etc.?
I tried to add another line, but that didnt work😐
@Anonymous,
You're close. Add a double ampersand (AND) and it should work:
Unique Email Addresses =
CALCULATE (
DISTINCTCOUNTNOBLANK ( Practitioners[PractitionerEmail] ),
FILTER (
ALL ( Practitioners[PractitionerEmail] ),
NOT CONTAINSSTRING ( Practitioners[PractitionerEmail], "@gmail.com" )
&& NOT CONTAINSSTRING ( Practitioners[PractitionerEmail], "@hotmail.com" )
)
)
Proud to be a Super User!
Thank you so much!!!
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 21 | |
| 20 | |
| 14 |
| User | Count |
|---|---|
| 59 | |
| 52 | |
| 41 | |
| 33 | |
| 32 |