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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors