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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors