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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Advance find functionality

Hi

 

I have the following problem problem to solve. I have two tables. the first one contains email addresses (emails_table) and the second one contains a number of keyworks (exceptions_table). 

 

what I want to achieve is to be able to tell which emails DO not contain ANY keywords in the exceptions_table. so for example if

 

emails_table contains:

[email protected]

[email protected]

[email protected]

 

and exceptions_table contains:

support

 

the resulting table should be 

[email protected]

[email protected]

 

Alternativally, I could have a new column that containts 1 if any of the support keyworks exist for that email or 0 if not. This is very easy to do with an array formula and FIND in Excel but I can't do in in PowerBI

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @Anonymous 

try column

Column = if(countrows(Filter(exceptions_table;search('exceptions_table'[exceptions];emails_table[email];1;-1)>0))>0;1;0)

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

4 REPLIES 4
ml_andrew
Regular Visitor

Hi, @Anonymous 

 

I think if you want to create a quick table the best way is to use EXCEPT to create a table

 

EXCEPT('emails_table', 'exceptions_table'), then the output table shall be the one that removes the exception lines. 

 

Thanks

Andrew

az38
Community Champion
Community Champion

@ml_andrew 

no, except function will except values which equals emails, but not values, whicnh emails contains of (like a substring)

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
az38
Community Champion
Community Champion

Hi @Anonymous 

try column

Column = if(countrows(Filter(exceptions_table;search('exceptions_table'[exceptions];emails_table[email];1;-1)>0))>0;1;0)

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

works fine. many thanks @az38 , top man

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors