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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors