Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
propionic
Regular Visitor

Search values in "Mail" column

Hi all,

 

In Power Bi i do not find how to use function on an email column

ex: To make difference of Internal and external people of my company, the "-ext" is added to the email

 

EmailInternal
toto@mycompany.comtrue
toto-ext@mycompany.comfalse
test@mycompany.comtrue

 

I used the CONTAINS function but does not work with "Email" column.. any idea??

 

External User = CONTAINS(Users,Users[email], "-ext")

 

Thanks you for your help.

2 ACCEPTED SOLUTIONS
malagari
Continued Contributor
Continued Contributor

Check out this post: https://community.powerbi.com/t5/Desktop/If-text-column-CONTAINS-specified-value-give-me-what-I-want...

 

Rather than using CONTAINS, you can use SEARCH and return True/False in the conditional IF statement.

Dan Malagari
Consultant at Headspring

View solution in original post

v-qiuyu-msft
Community Support
Community Support

Hi @propionic,

 

You can also use Find() function to create a calculated column below: 

 

Internal = IF(FIND("-ext",'Table2'[Email],,BLANK())>0,FALSE(),TRUE())

 

w3.PNG

 

Best Regards,
Qiuyun Yu 

 

 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

Hi @propionic,

 

You can also use Find() function to create a calculated column below: 

 

Internal = IF(FIND("-ext",'Table2'[Email],,BLANK())>0,FALSE(),TRUE())

 

w3.PNG

 

Best Regards,
Qiuyun Yu 

 

 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
malagari
Continued Contributor
Continued Contributor

Check out this post: https://community.powerbi.com/t5/Desktop/If-text-column-CONTAINS-specified-value-give-me-what-I-want...

 

Rather than using CONTAINS, you can use SEARCH and return True/False in the conditional IF statement.

Dan Malagari
Consultant at Headspring

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.