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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Responsive Resident
Responsive Resident

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
Responsive Resident
Responsive Resident

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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